/* Inflation Calculator Light Theme */


/* Dark mode overrides */
[data-theme="dark"] {
    --tool-bg: #0f172a;
    --tool-border: #334155;
    --tool-border-hover: #475569;
    --tool-text: #f8fafc;
    --tool-text-secondary: #94a3b8;
    --tool-input-bg: #1e293b;
    --tool-input-border: #334155;
    --tool-button-bg: #1e293b;
    --tool-button-hover: #334155;
    --tool-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
    --tool-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --surface-color: #1e293b;
    --surface-hover: #334155;
    --background-color: #0f172a;
    --text-color: #f8fafc;
    --status-info: rgba(96, 165, 250, 0.2);
    --status-success: rgba(34, 197, 94, 0.2);
    --status-error: rgba(248, 113, 113, 0.2);
    --bg-color: #0f172a;
}

/* Dark mode element overrides */
[data-theme="dark"] .tool-card {
    background: var(--bg-card, #1e293b);
    border-color: var(--border-color, #334155);
}

[data-theme="dark"] .tool-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background: var(--input-bg, #1e293b);
    color: var(--text-primary, #f8fafc);
    border-color: var(--border-color, #334155);
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: var(--text-muted, #64748b);
}

[data-theme="dark"] .tab-btn.active {
    color: white;
}

[data-theme="dark"] label {
    color: var(--text-primary, #f8fafc);
}

[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3,
[data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6 {
    color: var(--text-primary, #f8fafc);
}

[data-theme="dark"] p {
    color: var(--text-secondary, #cbd5e1);
}
.calculator-card {
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin-bottom: 24px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--bg-secondary);
}

.card-header h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

/* Mode Selection */
.calculation-mode {
    display: flex;
    gap: 8px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: 8px;
}

.mode-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.mode-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.mode-btn.active {
    background: #007bff;
    color: var(--bg-primary);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

/* Input Sections */
.calculation-section {
    margin-bottom: 24px;
}

.calculation-section.hidden {
    display: none;
}

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

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
}

/* Currency Input */
.currency-input {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-weight: 500;
    z-index: 2;
}

.amount-input {
    width: 100%;
    padding: 12px 12px 12px 32px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--bg-primary);
}

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

/* Rate Input */
.rate-input {
    position: relative;
    display: flex;
    align-items: center;
}

.rate-input-field {
    width: 100%;
    padding: 12px 32px 12px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.rate-input-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.rate-symbol {
    position: absolute;
    right: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Year Input */
.year-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

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

/* Calculate Button */
.calculate-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: var(--bg-primary);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.calculate-btn:active {
    transform: translateY(0);
}

/* Results Card */
.results-card {
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin-bottom: 24px;
}

.results-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 8px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.action-btn:hover {
    background: var(--bg-tertiary);
    transform: translateY(-1px);
}

/* Results Content */
.results-placeholder {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.results-placeholder h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.error-state {
    text-align: center;
    padding: 48px 24px;
    color: #dc3545;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.error-state h4 {
    color: #dc3545;
    margin-bottom: 8px;
}

/* Results Summary */
.results-summary {
    margin-bottom: 32px;
}

.result-primary {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #e9ecef 100%);
    border-radius: 12px;
    margin-bottom: 24px;
    border: 2px solid #e1e5e9;
}

.result-amount {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.amount-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.amount-value {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.amount-context {
    color: var(--text-muted);
    font-size: 1rem;
}

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

.result-item {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.result-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

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

.result-value.negative {
    color: #dc3545;
}

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

/* Analysis Section */
.analysis-section {
    margin-top: 32px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.analysis-section h4 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.analysis-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.analysis-content p:last-child {
    margin-bottom: 0;
}

/* Projection Table */
.projection-table {
    margin-top: 32px;
}

.projection-table h4 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.table-container {
    background: var(--bg-primary);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.projection-table table {
    width: 100%;
    border-collapse: collapse;
}

.projection-table th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid #e1e5e9;
}

.projection-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--bg-secondary);
    color: var(--text-secondary);
}

.projection-table tr:hover {
    background: var(--bg-secondary);
}

.table-summary td {
    text-align: center;
    font-style: italic;
    color: var(--text-muted);
}

.table-final td {
    font-weight: 600;
    background: var(--bg-secondary);
}

/* Historical Data Card */
.historical-data-card {
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin-bottom: 24px;
}

.data-view-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
}

.loading-historical {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.loading-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

/* Historical Tables */
.historical-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.historical-table th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid #e1e5e9;
}

.historical-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--bg-secondary);
    color: var(--text-secondary);
}

.historical-table tr:hover {
    background: var(--bg-secondary);
}

.historical-table .positive {
    color: #dc3545;
}

.historical-table .negative {
    color: var(--text-success);
}

/* Decades Data */
.decades-data {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.decade-item {
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.decade-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.decade-period {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.decade-rate {
    font-weight: 600;
    font-size: 1.1rem;
}

.decade-rate.positive {
    color: #dc3545;
}

.decade-rate.negative {
    color: var(--text-success);
}

.decade-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

/* Events Data */
.events-data {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-item {
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.event-year {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.event-rate {
    font-weight: 600;
    font-size: 1.1rem;
}

.event-rate.positive {
    color: #dc3545;
}

.event-rate.negative {
    color: var(--text-success);
}

.event-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.event-impact {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Information Cards */
.info-card {
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin-bottom: 24px;
}

.info-card h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Example Buttons */
.example-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.example-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.example-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.example-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.example-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.example-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.example-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Economic Stats */
.economic-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.stat-item .stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.stat-item .stat-value {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.stat-item .stat-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Concept List */
.concept-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.concept-item h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.concept-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Impact Examples */
.impact-examples {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.impact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.impact-item.positive {
    background: rgba(40, 167, 69, 0.05);
    border-color: rgba(40, 167, 69, 0.2);
}

.impact-item.negative {
    background: rgba(220, 53, 69, 0.05);
    border-color: rgba(220, 53, 69, 0.2);
}

.impact-item.neutral {
    background: rgba(108, 117, 125, 0.05);
    border-color: rgba(108, 117, 125, 0.2);
}

.impact-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.impact-content h4 {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.impact-content p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

/* Tips List */
.tips-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.tip-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.tip-item span:last-child {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .input-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .calculation-mode {
        flex-direction: column;
        gap: 4px;
    }
    
    .mode-btn {
        text-align: center;
    }
    
    .amount-value {
        font-size: 2rem;
    }
    
    .example-btn {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .decade-header,
    .event-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .results-actions {
        align-self: flex-end;
    }
}


