/* Savings Calculator */
.savings-calculator {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

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

.savings-header h2 {
    font-size: 1.75rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.savings-subtitle {
    color: #64748b;
    font-size: 0.95rem;
}

.savings-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.savings-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .savings-inputs {
        grid-template-columns: 1fr;
    }
}

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

.savings-input-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.savings-input-group input,
.savings-input-group select {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    background: #ffffff;
    transition: all 0.2s;
}

.savings-input-group input:focus,
.savings-input-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.savings-calculate-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    border-radius: 0.75rem;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    align-self: flex-end;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.savings-calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.savings-results {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.savings-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: center;
}

@media (max-width: 768px) {
    .savings-comparison {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .savings-vs {
        text-align: center;
    }
}

.savings-station {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s;
}

.savings-station:hover {
    transform: scale(1.02);
}

.savings-cheapest {
    border-color: #86efac;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.savings-expensive {
    border-color: #fca5a5;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.savings-station-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.savings-cheapest .savings-station-badge {
    background: #16a34a;
    color: #ffffff;
}

.savings-expensive .savings-station-badge {
    background: #dc2626;
    color: #ffffff;
}

.savings-station-name {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.savings-station-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.savings-station-cost {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.savings-station-cost span {
    font-size: 1.1rem;
    font-weight: 700;
    color: #475569;
}

.savings-station-cost small {
    font-size: 0.75rem;
    color: #64748b;
}

.savings-go-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.savings-go-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.savings-go-btn i {
    font-size: 0.9rem;
}

.savings-vs {
    font-size: 1.5rem;
    font-weight: 900;
    color: #94a3b8;
    text-align: center;
}

.savings-summary {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 2px solid #93c5fd;
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.savings-summary-icon {
    font-size: 3rem;
}

.savings-summary-text {
    flex: 1;
}

.savings-summary-text strong {
    display: block;
    font-size: 0.9rem;
    color: #1e40af;
    margin-bottom: 0.25rem;
}

.savings-amount {
    font-size: 2rem;
    font-weight: 900;
    color: #1e40af;
    display: block;
}

.savings-summary-detail {
    font-size: 0.9rem;
    color: #1e40af;
    margin-top: 0.75rem;
    line-height: 1.5;
}

/* Dark mode savings */
body.theme-dark .savings-header h2 {
    color: #e5e7eb;
}

body.theme-dark .savings-subtitle {
    color: #94a3b8;
}

body.theme-dark .savings-content {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
}

body.theme-dark .savings-input-group label {
    color: #94a3b8;
}

body.theme-dark .savings-input-group input,
body.theme-dark .savings-input-group select {
    background: #0f172a;
    border-color: #334155;
    color: #e5e7eb;
}

body.theme-dark .savings-station {
    background: #0f172a;
    border-color: #334155;
}

body.theme-dark .savings-cheapest {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
    border-color: #059669;
}

body.theme-dark .savings-expensive {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
    border-color: #dc2626;
}

body.theme-dark .savings-station-name,
body.theme-dark .savings-station-price {
    color: #e5e7eb;
}

body.theme-dark .savings-station-cost span {
    color: #cbd5e1;
}

body.theme-dark .savings-go-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

body.theme-dark .savings-summary {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    border-color: #3b82f6;
}

body.theme-dark .savings-summary-text strong,
body.theme-dark .savings-summary-detail {
    color: #dbeafe;
}

body.theme-dark .savings-amount {
    color: #ffffff;
}