/* PropInvest Pro - Professional Property Investment Styling */

:root {
    --primary-500: #0057FF;
    --primary-600: #0045CC;
    --primary-700: #003399;
    --secondary-500: #6B7280;
    --success: #059669;
    --warning: #D97706;
    --error: #DC2626;
    --background-50: #F8FAFC;
    --background-100: #F1F5F9;
    --background-200: #E2E8F0;
    --background-300: #CBD5E1;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --border-light: #E2E8F0;
    --border-medium: #CBD5E1;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-50);
    font-size: 16px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Header */
.header {
    background: white;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

.nav-brand h1 {
    color: var(--primary-500);
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background-color: var(--background-100);
    color: var(--primary-500);
}

.nav-link.active {
    background-color: var(--primary-500);
    color: white;
}

/* Main Content */
.main-content {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* Page Title */
.page-title {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Quick Access Cards */
.quick-access {
    padding: 4rem 0;
    background: white;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

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

.access-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.access-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-500);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.access-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.access-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Market Overview */
.market-overview {
    padding: 4rem 0;
    background: var(--background-50);
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.market-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.market-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.market-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.change {
    font-size: 0.875rem;
    font-weight: 600;
}

.change.positive {
    color: var(--success);
}

.change.negative {
    color: var(--error);
}

.market-yield {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Calculator Styles */
.calculator-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: white;
    padding: 0.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    background: var(--background-100);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--primary-500);
    color: white;
}

.calculator-section {
    display: none;
}

.calculator-section.active {
    display: block;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.input-panel h3,
.results-panel h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-medium);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(0, 87, 255, 0.1);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.result-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Portfolio Styles */
.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.portfolio-actions {
    display: flex;
    gap: 1rem;
}

.portfolio-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.summary-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.summary-card h3 {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.property-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.property-title h3 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 1.125rem;
}

.property-type {
    background: var(--background-100);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.lvr-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.lvr-good {
    background: #D1FAE5;
    color: var(--success);
}

.lvr-warning {
    background: #FEF3C7;
    color: var(--warning);
}

.lvr-danger {
    background: #FEE2E2;
    color: var(--error);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.detail-value {
    font-weight: 600;
    color: var(--text-primary);
}

.detail-value.positive {
    color: var(--success);
}

.detail-value.negative {
    color: var(--error);
}

.property-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

/* Opportunity Engine */
.opportunity-engine {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    margin-top: 3rem;
}

.engine-header {
    text-align: center;
    margin-bottom: 2rem;
}

.engine-header h2 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.engine-header p {
    color: var(--text-secondary);
}

.engine-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.opportunity-inputs {
    display: grid;
    gap: 1rem;
}

.opportunity-results {
    display: grid;
    gap: 1rem;
}

.opportunity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--background-50);
    border-radius: 0.5rem;
}

.opportunity-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.opportunity-value {
    font-weight: 600;
    color: var(--text-primary);
}

.engine-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Reports Styles */
.reports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.report-actions {
    display: flex;
    gap: 1rem;
}

.report-types {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: white;
    padding: 0.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.report-type-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.report-type-btn:hover {
    background: var(--background-100);
    color: var(--text-primary);
}

.report-type-btn.active {
    background: var(--primary-500);
    color: white;
}

.report-content {
    display: none;
}

.report-content.active {
    display: block;
}

.report-section {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.report-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.report-summary {
    margin-bottom: 2rem;
}

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

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--background-50);
    border-radius: 0.5rem;
}

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

.property-report {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
}

.property-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.stat {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

/* Scenario Analysis */
.scenario-analysis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.scenario-card {
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 2px solid;
}

.scenario-card.conservative {
    background: #F8FAFC;
    border-color: #CBD5E1;
}

.scenario-card.moderate {
    background: #EFF6FF;
    border-color: var(--primary-500);
}

.scenario-card.optimistic {
    background: #F0FDF4;
    border-color: var(--success);
}

.scenario-card h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.scenario-metric {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.scenario-metric:last-child {
    border-bottom: none;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary-500);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-600);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--background-100);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
    background: var(--background-200);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.form-grid {
    display: grid;
    gap: 1rem;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-brand h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .calculator-grid,
    .engine-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .portfolio-actions {
        justify-content: stretch;
    }
    
    .portfolio-actions .btn {
        flex: 1;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-links {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .calculator-tabs,
    .report-types {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .tab-btn,
    .report-type-btn {
        flex: 1;
        min-width: 120px;
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
    
    .modal-content {
        width: 95%;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-error { color: var(--error); }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* Lead Capture Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.close:hover {
    color: var(--text-primary);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-medium);
    border-radius: 6px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(0, 87, 255, 0.1);
}

/* Strategy Panel Styles */
.strategy-panel {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    overflow: hidden;
}

.strategy-header {
    background: var(--primary-500);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.strategy-header h3 {
    margin: 0;
    color: white;
}

.strategy-content {
    padding: 1.5rem;
}

.action-items {
    margin-bottom: 2rem;
}

.action-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

.action-item input[type="checkbox"] {
    margin: 0;
}

.action-item input[type="text"] {
    flex: 1;
    border: none;
    padding: 0.25rem;
    background: transparent;
}

.action-item button {
    background: none;
    border: none;
    color: var(--error);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
}

.action-item button:hover {
    background: var(--background-100);
    border-radius: 4px;
}

.meeting-notes textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-medium);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
}

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

.risk-factor {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.risk-factor label {
    font-weight: 500;
    color: var(--text-primary);
}

.risk-factor select {
    padding: 0.5rem;
    border: 1px solid var(--border-medium);
    border-radius: 6px;
    background: white;
}

/* Utility Classes */
.btn-success {
    background: var(--success);
    color: white;
    border: 1px solid var(--success);
}

.btn-success:hover {
    background: #047857;
    border-color: #047857;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-small:hover {
    background: var(--primary-600);
}

/* Testimonials Section */
.testimonials {
    background: var(--background-100);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.testimonial {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.testimonial-text {
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.5;
}

.testimonial-result {
    color: var(--success);
    font-weight: 600;
    margin-top: 0.5rem;
}

/* White Label Branding */
.branding-panel {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.branding-input {
    margin-bottom: 1rem;
}

.branding-input label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.branding-input input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-medium);
    border-radius: 6px;
}

/* Lead Magnet Features */
.lead-magnet-banner {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
}

.lead-magnet-banner h2 {
    margin-bottom: 1rem;
    color: white;
}

.cta-button {
    background: white;
    color: var(--primary-500);
    padding: 1rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Scenario Planner Styles */
.scenario-planner,
.collaboration-panel {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    overflow: hidden;
}

.scenario-header,
.collaboration-header {
    background: var(--primary-500);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.scenario-header h3,
.collaboration-header h3 {
    margin: 0;
    color: white;
}

.scenario-content,
.collaboration-content {
    padding: 1.5rem;
}

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

.variable-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.variable-group label {
    font-weight: 500;
    color: var(--text-primary);
}

.variable-group input[type="range"] {
    width: 100%;
}

.variable-group span {
    font-weight: 600;
    color: var(--primary-500);
    text-align: center;
}

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

.impact-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: var(--background-50);
    border-radius: 6px;
    border: 1px solid var(--border-light);
}

.impact-item label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.impact-item span {
    font-weight: 600;
    color: var(--success);
    font-size: 1.1rem;
}

/* Collaboration Panel Styles */
.team-notes,
.decision-log {
    margin-bottom: 2rem;
}

.team-notes textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-medium);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    margin-bottom: 1rem;
}

.decision-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.decision-item label {
    flex: 1;
    cursor: pointer;
}

.decision-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Enhanced Modal Styles */
.modal-content h2 {
    color: var(--primary-500);
    margin-bottom: 0.5rem;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .variable-grid,
    .impact-grid {
        grid-template-columns: 1fr;
    }
    
    .strategy-content,
    .scenario-content,
    .collaboration-content {
        padding: 1rem;
    }
    
    .action-items .action-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .report-actions {
        flex-direction: column;
    }
}

/* CRM Navigation Dropdown - Enhanced Alignment & Styling */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    border: none;
    cursor: pointer;
    background: transparent;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    position: relative;
}

.dropdown-toggle:hover {
    background: var(--background-100);
    color: var(--primary-500);
}

.dropdown-toggle.active {
    background: var(--primary-500);
    color: white;
}

.dropdown-toggle::after {
    content: ' ▾';
    font-size: 0.8em;
    margin-left: 0.25rem;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-xl);
    min-width: 220px;
    z-index: 1000;
    padding: 0.5rem 0;
    animation: dropdownSlideIn 0.2s ease;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: white;
    border: 1px solid var(--border-light);
    border-bottom: none;
    border-right: none;
    transform: translateX(-50%) rotate(45deg);
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    gap: 0.75rem;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background: var(--background-50);
    color: var(--primary-500);
    border-left-color: var(--primary-500);
    transform: translateX(2px);
}

.dropdown-item:first-child {
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}

.dropdown-item:last-child {
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
}

.dropdown-item-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.dropdown-item:hover .dropdown-item-icon {
    color: var(--primary-500);
}

.dropdown-item-text {
    flex: 1;
    font-weight: 500;
}

.dropdown-separator {
    height: 1px;
    background: var(--border-light);
    margin: 0.5rem 0;
    padding: 0;
}

/* CRM Specific Styles */
.crm-header {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-light);
}

.crm-title {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.crm-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.crm-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.filter-bar {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

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

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.filter-group input,
.filter-group select {
    padding: 0.5rem;
    border: 1px solid var(--border-medium);
    border-radius: 0.375rem;
    font-size: 1rem;
}

.lead-card, .meeting-card, .client-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
}

.lead-card:hover, .meeting-card:hover, .client-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 0;
}

.card-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-hot { background: #FEE2E2; color: #DC2626; }
.badge-warm { background: #FEF3C7; color: #D97706; }
.badge-cold { background: #DBEAFE; color: #2563EB; }
.badge-new { background: #E0E7FF; color: #4F46E5; }
.badge-contacted { background: #FCE7F3; color: #BE185D; }
.badge-qualified { background: #D1FAE5; color: #059669; }
.badge-proposal { background: #FEF3C7; color: #D97706; }
.badge-closed { background: #D1FAE5; color: #059669; }

.card-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pipeline-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.pipeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-medium);
}

.pipeline-title {
    font-weight: 600;
    color: var(--text-primary);
}

.pipeline-count {
    background: var(--primary-500);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.pipeline-item {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    cursor: move;
    transition: all 0.2s;
}

.pipeline-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-500);
}

.pipeline-item:active {
    cursor: grabbing;
}

.pipeline-column {
    background: var(--background-100);
    border-radius: 0.5rem;
    padding: 1rem;
    min-height: 300px;
    transition: background 0.2s;
}

.pipeline-column:hover {
    background: var(--background-200);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border-light);
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    overflow: hidden;
}

.calendar-day {
    background: white;
    padding: 0.75rem;
    min-height: 100px;
    position: relative;
}

.calendar-day.today {
    background: var(--background-100);
}

.calendar-day-number {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.calendar-event {
    background: var(--primary-500);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.stat-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-500);
}

.stat-change {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.stat-change.positive {
    color: var(--success);
}

.stat-change.negative {
    color: var(--error);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .pipeline-board {
        grid-template-columns: 1fr;
    }
    
    .calendar-grid {
        font-size: 0.85rem;
    }
    
    .calendar-day {
        min-height: 80px;
        padding: 0.5rem;
    }
}


/* ============================================================================ */
/* CLIENT SURVEY STYLES */
/* ============================================================================ */

.survey-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.survey-progress-container {
    margin-bottom: 3rem;
}

.survey-progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--background-100);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.survey-progress-fill {
    height: 100%;
    background-color: var(--primary-500);
    transition: width 0.3s ease;
}

.survey-progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.progress-step {
    flex: 1;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.5rem;
    position: relative;
}

.progress-step.active {
    color: var(--primary-500);
    font-weight: 600;
}

.progress-step.completed {
    color: var(--success);
}

.progress-step::before {
    content: '';
    display: block;
    width: 32px;
    height: 32px;
    background-color: var(--background-100);
    border: 2px solid var(--border-light);
    border-radius: 50%;
    margin: 0 auto 0.5rem;
}

.progress-step.active::before {
    background-color: var(--primary-500);
    border-color: var(--primary-500);
}

.progress-step.completed::before {
    background-color: var(--success);
    border-color: var(--success);
}

.survey-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.survey-step-content {
    background: white;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.survey-step-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.survey-step-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.survey-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.survey-navigation .btn {
    min-width: 120px;
}

.survey-navigation .btn-secondary {
    margin-right: auto;
}

.survey-navigation .btn-primary,
.survey-navigation .btn-success {
    margin-left: auto;
}

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

.form-row .form-group {
    margin-bottom: 0;
}

.property-entry {
    background: var(--background-50);
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.property-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.property-entry-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.remove-property-btn {
    background: none;
    border: none;
    color: var(--error);
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.remove-property-btn:hover {
    transform: scale(1.2);
}

.add-property-btn {
    width: 100%;
    margin-top: 1rem;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease;
}

.checkbox-label:hover {
    background-color: var(--background-50);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.review-content {
    background: var(--background-50);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.review-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.review-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.review-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-500);
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.review-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.review-value {
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
}

.success-message {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: var(--success);
    color: white;
    font-size: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.success-message h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.success-message p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.success-message ul {
    text-align: left;
    max-width: 500px;
    margin: 1rem auto 2rem;
    list-style-position: inside;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Survey Responsive Design */
@media (max-width: 768px) {
    .survey-step-content {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .survey-navigation {
        flex-direction: column;
    }
    
    .survey-navigation .btn {
        width: 100%;
        margin: 0 !important;
    }
    
    .progress-step {
        font-size: 0.7rem;
        padding: 0.25rem;
    }
    
    .progress-step::before {
        width: 24px;
        height: 24px;
    }
}


/* ============================================================================ */
/* ADVANCED CALCULATOR STYLES */
/* ============================================================================ */

.calculator-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: flex-start;
}

.tab-btn {
    padding: 0.75rem 1.25rem;
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
}

.tab-btn:hover {
    border-color: var(--primary-500);
    background: var(--background-50);
}

.tab-btn.active {
    background: var(--primary-500);
    color: white;
    border-color: var(--primary-500);
}

.amort-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: var(--shadow-sm);
    border-radius: 0.5rem;
    overflow: hidden;
}

.amort-table thead {
    background: var(--primary-500);
    color: white;
}

.amort-table th,
.amort-table td {
    padding: 1rem;
    text-align: left;
}

.amort-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.amort-table tbody tr:nth-child(even) {
    background: var(--background-50);
}

.amort-table tbody tr:hover {
    background: var(--background-100);
}

#growthChartContainer {
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
}

#nextPurchaseRecommendation {
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-500);
    box-shadow: var(--shadow-sm);
}

#nextPurchaseRecommendation h4 {
    color: var(--primary-500);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

#nextPurchaseRecommendation ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
    line-height: 1.8;
}

#nextPurchaseRecommendation li {
    margin-bottom: 0.5rem;
}

.calculator-section h4 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-500);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Responsive calculator tabs */
@media (max-width: 1024px) {
    .calculator-tabs {
        justify-content: center;
    }
    
    .tab-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .calculator-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
        text-align: center;
    }
    
    .amort-table {
        font-size: 0.85rem;
    }
    
    .amort-table th,
    .amort-table td {
        padding: 0.5rem;
    }
    
    #growthChartContainer {
        padding: 1rem;
    }
    
    #nextPurchaseRecommendation {
        padding: 1rem;
    }
}


/* Toast notification animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}


/* ============================================================================ */
/* SCENARIO & SENSITIVITY MODELLING STYLES */
/* ============================================================================ */

.section-header {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-500);
}

.scenario-panel {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

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

.scenario-control-group {
    background: var(--background-50);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-500);
}

.scenario-control-group h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.toggle-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.toggle-btn {
    padding: 0.6rem 1.2rem;
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.toggle-btn:hover {
    border-color: var(--primary-500);
    background: var(--background-50);
}

.toggle-btn.active {
    background: var(--primary-500);
    color: white;
    border-color: var(--primary-500);
}

.custom-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.custom-input-group label {
    font-weight: 500;
    color: var(--text-secondary);
}

.custom-input-group input {
    width: 100px;
    padding: 0.5rem;
    border: 1px solid var(--border-light);
    border-radius: 0.25rem;
    font-size: 0.9rem;
}

.slider-container {
    margin-top: 0.5rem;
}

.slider-container input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, var(--primary-500) 0%, var(--primary-500) 50%, var(--background-200) 50%, var(--background-200) 100%);
    outline: none;
    -webkit-appearance: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-500);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.slider-container input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-500);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: none;
}

.slider-value {
    margin-top: 0.5rem;
    font-weight: 600;
    color: var(--primary-500);
    font-size: 1.1rem;
}

.scenario-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-light);
}

/* Sensitivity Dashboard */
.sensitivity-dashboard {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.sensitivity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.sensitivity-card {
    background: var(--background-50);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-500);
}

.sensitivity-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.impact-indicator {
    background: white;
    border-radius: 0.25rem;
    height: 30px;
    position: relative;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.impact-bar {
    height: 100%;
    border-radius: 0.25rem;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.5rem;
}

.impact-value {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    font-size: 0.85rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.sensitivity-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Comparison Section */
.comparison-section {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.comparison-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.comparison-table-container {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 600px;
}

.comparison-table thead {
    background: var(--primary-500);
    color: white;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.comparison-table tbody tr:hover {
    background: var(--background-50);
}

.comparison-table .metric-label {
    font-weight: 600;
    color: var(--text-primary);
}

.comparison-table td:not(.metric-label) {
    font-weight: 600;
    color: var(--primary-500);
}

/* Chart Section */
.chart-section {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.chart-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--background-50);
    border-radius: 0.25rem;
}

.chart-controls label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}

.chart-controls input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Monte Carlo Section */
.monte-carlo-section {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

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

.stat-box {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.stat-box .stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-box .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
}

.chart-container {
    margin-top: 1.5rem;
}

/* Saved Scenarios */
.saved-scenarios-section {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.scenario-card {
    background: var(--background-50);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-500);
    transition: all 0.3s ease;
}

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

.scenario-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.scenario-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.scenario-card-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .scenario-grid {
        grid-template-columns: 1fr;
    }
    
    .sensitivity-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .monte-carlo-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .scenario-panel,
    .sensitivity-dashboard,
    .comparison-section,
    .chart-section,
    .monte-carlo-section,
    .saved-scenarios-section {
        padding: 1rem;
    }
    
    .toggle-group {
        flex-direction: column;
    }
    
    .toggle-btn {
        width: 100%;
        text-align: center;
    }
    
    .scenario-actions {
        flex-direction: column;
    }
    
    .scenario-actions .btn {
        width: 100%;
    }
    
    .comparison-table {
        font-size: 0.85rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
    }
    
    .chart-controls {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .scenarios-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-box .stat-value {
        font-size: 1.5rem;
    }
}

/* Special styling for scenario modelling tab button */
.tab-btn[onclick*="scenario-modelling"] {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
    border: none;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.tab-btn[onclick*="scenario-modelling"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.tab-btn[onclick*="scenario-modelling"]:hover::before {
    left: 100%;
}

.tab-btn[onclick*="scenario-modelling"].active {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}
