/* Financial Calculators - Main Styles */
.fc-calculator {
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
    font-family: var(--e-global-typography-text-font-family, inherit);
    color: var(--e-global-color-text, inherit);
}

.fc-calculator * {
    box-sizing: border-box;
}

/* Header Styles */
.fc-calculator-header {
    text-align: center;
    margin-bottom: 2rem;
}

.fc-calculator-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: var(--e-global-color-primary, #333);
    font-family: var(--e-global-typography-primary-font-family, inherit);
}

.fc-calculator-description {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    color: var(--e-global-color-text, #666);
    opacity: 0.9;
}

/* Body Styles */
.fc-calculator-body {
    background: transparent;
}

/* Form Styles */
.fc-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.fc-section {
    margin-bottom: 2rem;
}

.fc-section:last-child {
    margin-bottom: 0;
}

.fc-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--e-global-color-primary, #007bff);
    color: var(--e-global-color-primary, #333);
    font-family: var(--e-global-typography-primary-font-family, inherit);
}

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

.fc-form-group {
    margin-bottom: 1.5rem;
}

.fc-form-group:last-child {
    margin-bottom: 0;
}

.fc-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--e-global-color-text, #333);
    font-size: 0.95rem;
}

.fc-form-group input[type="text"],
.fc-form-group input[type="number"],
.fc-form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    color: var(--e-global-color-text, #333);
    font-family: var(--e-global-typography-text-font-family, inherit);
}

.fc-form-group input:focus,
.fc-form-group select:focus {
    outline: none;
    border-color: var(--e-global-color-primary, #007bff);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.fc-form-group small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: var(--e-global-color-text, #666);
    opacity: 0.8;
}

.fc-form-group input[type="checkbox"] {
    margin-right: 0.5rem;
    width: auto;
}

/* Slider Styles */
.fc-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.1);
    outline: none;
    margin: 0.5rem 0;
    -webkit-appearance: none;
}

.fc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--e-global-color-primary, #007bff);
    cursor: pointer;
    transition: all 0.3s ease;
}

.fc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.fc-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--e-global-color-primary, #007bff);
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.fc-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

.fc-slider-value {
    text-align: center;
    font-weight: 600;
    color: var(--e-global-color-primary, #007bff);
    font-size: 1.1rem;
    margin-top: 0.25rem;
}

/* Button Styles */
.fc-form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.fc-button {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--e-global-typography-text-font-family, inherit);
    flex: 1;
    min-width: 150px;
}

.fc-button-primary {
    background: var(--e-global-color-primary, #007bff);
    color: #ffffff;
}

.fc-button-primary:hover {
    background: var(--e-global-color-primary, #0056b3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.fc-button-secondary {
    background: rgba(0, 0, 0, 0.1);
    color: var(--e-global-color-text, #333);
}

.fc-button-secondary:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Results Styles */
.fc-results {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.fc-results-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    color: var(--e-global-color-primary, #333);
    text-align: center;
    font-family: var(--e-global-typography-primary-font-family, inherit);
}

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

.fc-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.fc-result-label {
    font-weight: 500;
    color: var(--e-global-color-text, #666);
    font-size: 0.95rem;
}

.fc-result-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--e-global-color-text, #333);
}

.fc-result-value.fc-highlight {
    color: var(--e-global-color-primary, #007bff);
    font-size: 1.25rem;
}

.fc-result-value.fc-positive {
    color: #10b981;
}

.fc-result-value.fc-negative {
    color: #ef4444;
}

.fc-highlight-box {
    background: rgba(0, 123, 255, 0.1);
    border: 2px solid var(--e-global-color-primary, #007bff);
    grid-column: 1 / -1;
}

/* Summary Cards */
.fc-result-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.fc-summary-card {
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.fc-summary-card h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--e-global-color-text, #666);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fc-summary-card .fc-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--e-global-color-primary, #333);
}

.fc-summary-card.fc-income .fc-amount {
    color: #10b981;
}

.fc-summary-card.fc-essential .fc-amount {
    color: #ef4444;
}

.fc-summary-card.fc-non-essential .fc-amount {
    color: #f59e0b;
}

.fc-summary-card.fc-surplus .fc-amount {
    color: var(--e-global-color-primary, #007bff);
}

/* Future Value Highlight */
.fc-fv-highlight {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(34, 197, 94, 0.1));
    border: 2px solid var(--e-global-color-primary, #007bff);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.fc-fv-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--e-global-color-text, #666);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fc-fv-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--e-global-color-primary, #007bff);
    line-height: 1;
}

/* Chart Container */
.fc-chart-container {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.fc-chart-container canvas {
    max-height: 400px;
}

/* Tax Breakdown */
.fc-tax-breakdown {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.fc-tax-breakdown h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--e-global-color-primary, #333);
}

.fc-tax-breakdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fc-tax-breakdown li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--e-global-color-text, #666);
}

.fc-tax-breakdown li:last-child {
    border-bottom: none;
}

/* Life Expectancy */
.fc-life-expectancy {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.fc-life-expectancy h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--e-global-color-primary, #333);
}

.fc-life-expectancy p {
    margin: 0;
    color: var(--e-global-color-text, #666);
    line-height: 1.6;
}

/* Breakdown Table */
.fc-breakdown-table {
    margin: 2rem 0;
}

.fc-breakdown-table h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--e-global-color-primary, #333);
}

.fc-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.fc-breakdown-table table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.5);
}

.fc-breakdown-table th {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--e-global-color-text, #333);
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.fc-breakdown-table td {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--e-global-color-text, #666);
}

.fc-breakdown-table tr:last-child td {
    border-bottom: none;
}

.fc-breakdown-table tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

/* Disclaimer */
.fc-disclaimer {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    border-radius: 4px;
}

.fc-disclaimer p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--e-global-color-text, #666);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fc-calculator-title {
        font-size: 1.5rem;
    }
    
    .fc-form,
    .fc-results {
        padding: 1.5rem;
    }
    
    .fc-result-grid,
    .fc-result-summary {
        grid-template-columns: 1fr;
    }
    
    .fc-form-actions {
        flex-direction: column;
    }
    
    .fc-button {
        width: 100%;
    }
    
    .fc-fv-value {
        font-size: 2rem;
    }
    
    .fc-table-container {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .fc-calculator-title {
        font-size: 1.25rem;
    }
    
    .fc-section-title {
        font-size: 1.1rem;
    }
    
    .fc-form,
    .fc-results {
        padding: 1rem;
    }
    
    .fc-result-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}
