/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Container Layout */
.container {
    display: -webkit-flex;
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem 0;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.nav-header h2 {
    color: white;
    text-align: center;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.nav-menu {
    list-style: none;
    padding: 0 1rem;
}

.nav-menu li {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    background: rgba(255,255,255,0.1);
    -webkit-transform: translateX(5px);
    transform: translateX(5px);
}

.nav-link.active {
    background: rgba(255,255,255,0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Main Content */
.main-content {
    margin-left: 250px;
    flex: 1;
    padding: 2rem;
    min-height: 100vh;
}

/* Hero Header with Nature Graphic */
.hero-header {
    position: relative;
    height: 400px;
    margin-bottom: 3rem;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.header-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* Main Title */
.main-title {
    position: relative;
    z-index: 10;
    font-size: 4rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    text-align: center;
    letter-spacing: -0.02em;
}

/* Content Section */
.content-section {
    max-width: 800px;
    margin: 0 auto;
}

.description {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.description p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.8;
}

/* Settings Page Styles */
.settings-container {
    max-width: 600px;
    margin: 0 auto;
}

.settings-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.settings-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #333;
}

.setting-group {
    margin-bottom: 2rem;
}

.setting-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #555;
}

.setting-select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s ease;
}

.setting-select:focus {
    outline: none;
    border-color: #667eea;
}

.color-scheme-options {
    display: -webkit-flex;
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.color-option {
    -webkit-flex: 1;
    flex: 1;
    padding: 1.5rem;
    border: 2px solid #e1e5e9;
    border-radius: 15px;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    text-align: center;
}

.color-option:hover {
    border-color: #667eea;
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
}

.color-option.active {
    border-color: #667eea;
    background: #f8f9ff;
}

.color-option-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.color-option-desc {
    font-size: 0.9rem;
    color: #666;
}

/* Color Scheme Themes */
.new-day-theme {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
}

.settling-in-theme {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
}

/* Settling In Theme - White Titles */
.settling-in-theme h1 {
    color: white !important;
}

.settling-in-theme .settings-title {
    color: white !important;
}


/* Decision Making Tool Styles */
.decision-step {
    display: none;
    margin-bottom: 2rem;
}

.decision-step.active {
    display: block;
}

.step-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.step-card h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.step-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #555;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-help {
    font-size: 0.9rem;
    color: #888;
    margin-top: 0.5rem;
}

/* Button Styles */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e1e5e9;
}

.btn-secondary:hover {
    background: #e9ecef;
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
}

/* Factors Container */
.factors-container {
    min-height: 200px;
    border: 2px dashed #e1e5e9;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 2rem;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 0.5rem;
}

.factor-bubble {
    display: block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    cursor: move;
    -webkit-user-select: none;
    user-select: none;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    position: relative;
    width: -webkit-fit-content;
    width: fit-content;
    min-width: 150px;
    -webkit-touch-callout: none;
}

.factor-bubble:hover {
    -webkit-transform: scale(1.02);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.factor-bubble.dragging {
    opacity: 0.7;
    -webkit-transform: rotate(2deg);
    transform: rotate(2deg);
    z-index: 1000;
}

.factor-bubble.drag-over {
    border: 2px dashed #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.factor-bubble.drag-over::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px dashed #667eea;
    border-radius: 25px;
    pointer-events: none;
}

/* Weights Container */
.weights-container {
    margin-bottom: 2rem;
}

.weight-item {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.weight-factor {
    flex: 1;
    font-weight: 500;
    color: #333;
}

.weight-input {
    width: 80px;
    padding: 0.5rem;
    border: 2px solid #e1e5e9;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
}

.weight-input:focus {
    outline: none;
    border-color: #667eea;
}

.weight-input:disabled {
    background: #e9ecef;
    color: #6c757d;
}

/* Comparison Table */
.comparison-container {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: center;
    border: 1px solid #e1e5e9;
}

.comparison-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.option-input {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid #e1e5e9;
    border-radius: 5px;
    font-size: 0.9rem;
}

.option-input:focus {
    outline: none;
    border-color: #667eea;
}

.rating-select {
    padding: 0.5rem;
    border: 2px solid #e1e5e9;
    border-radius: 5px;
    background: white;
    font-size: 0.9rem;
}

.rating-select:focus {
    outline: none;
    border-color: #667eea;
}

.comparison-actions {
    text-align: center;
    margin-top: 2rem;
}

/* Results Container */
.results-container {
    margin-bottom: 2rem;
}

.result-item {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border-left: 5px solid #667eea;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.result-rank {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin-right: 1.5rem;
    min-width: 60px;
}

.result-details {
    flex: 1;
}

.result-option {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.result-score {
    font-size: 1rem;
    color: #666;
}

.results-actions {
    text-align: center;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
    
    .main-content {
        margin-left: 200px;
        padding: 1rem;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .hero-header {
        height: 300px;
    }
    
    .description {
        padding: 2rem;
    }
    
    .step-card {
        padding: 1.5rem;
    }
    
    .comparison-table {
        font-size: 0.9rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
    }
}

@media (max-width: 600px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .step-card {
        padding: 1rem;
    }
    
    .btn {
        width: 100%;
        margin-right: 0;
    }
    
    .comparison-actions,
    .results-actions {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
}
