:root {
    --primary-color: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --background-color: #f8fafc;
    --surface-color: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --success-color: #22c55e;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --header-height: 80px;
    --accent-color: #3b82f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-primary);
    padding-top: var(--header-height);
    min-height: 100vh;
}

/* Site Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--surface-color);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

.site-header nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.logo-first {
    font-weight: 900;
}

.logo-second {
    font-weight: 600;
    font-style: italic;
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
}

.nav-links .cta-button {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    margin-left: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 6px;
    font-weight: 600;
}

/* Advisor Content Styles */
.advisor-content {
    min-height: calc(100vh - var(--header-height));
    padding: 2rem 1rem;
}

.advisor-container {
    max-width: 1200px;
    margin: 0 auto;
}

.advisor-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.advisor-header h1 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.advisor-header .subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
}

h2 {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-icon {
    font-size: 1.2rem;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0 1rem;
}

.input-section {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 0.5rem;
}

label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
}

.input-wrapper {
    position: relative;
}

input, select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    background-color: var(--surface-color);
    transition: all 0.3s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.8rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.button-icon {
    font-size: 1rem;
}

.results-section {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-container {
    background-color: var(--surface-color);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
    width: 100%;
}

.asset-allocation {
    aspect-ratio: 1;
    max-width: 400px;
    margin: 0 auto;
}

.projections {
    aspect-ratio: 16/9;
}

canvas {
    width: 100% !important;
    height: 100% !important;
}

#summaryDetails {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.summary-item {
    background-color: var(--background-color);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.summary-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.summary-item h4 {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.summary-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.allocation-breakdown {
    grid-column: 1 / -1;
    background-color: var(--background-color);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    margin-top: 1rem;
}

.allocation-breakdown h4 {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.breakdown-details {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.breakdown-details p {
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.breakdown-details strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.mobile-menu-toggle .hamburger {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger {
    transform: rotate(45deg);
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    body {
        padding-top: var(--header-height);
    }

    .advisor-content {
        padding: 1rem 0;
    }

    .advisor-container {
        padding: 0;
    }

    .advisor-header {
        padding: 0 1rem;
    }

    .advisor-header h1 {
        font-size: 1.5rem;
    }

    .advisor-header .subtitle {
        font-size: 0.9rem;
    }

    .content-wrapper {
        padding: 0 1rem;
    }

    .input-section,
    .results-section {
        padding: 1.5rem;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    h2 {
        font-size: 1.2rem;
    }
    
    h3 {
        font-size: 1rem;
    }
    
    .breakdown-details p {
        font-size: 0.8rem;
    }
    
    .allocation-breakdown {
        padding: 1.2rem;
    }

    .site-header nav {
        padding: 0 1rem;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--surface-color);
        padding: 1rem;
        box-shadow: var(--shadow-md);
        display: none;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}
