/* --- Footer Buttons (Simulate & Set Home) --- */
/* --- Footer Container Layout (Centered) --- */
.footer-content {
    display: flex;
    flex-direction: column; /* Stack vertically */
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 3px;
    text-align: center;
}

.footer-text {
    font-size: 15px; /* Slightly larger text */
    line-height: 1.5;
    color: #e2e8f0;
}

.footer-actions {
    display: flex;
    justify-content: center; /* Center buttons horizontally */
    align-items: center;
    gap: 10px; /* More space between buttons */
    width: 100%;
}

/* --- Base Button Styles (Larger) --- */
.footer-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 44px; /* Taller (was 36px) */
    padding: 0 24px; /* Wider (was 16px) */
    border-radius: 22px;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 15px; /* Larger font (was 13px) */
    font-weight: 700; /* Bolder */
    color: white;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
/* Simulate Button (Cosmic Blue/Purple) */
.simulate-btn {
    background: linear-gradient(135deg, #a955f76e 0%, #6365f150 100%);
    /* box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3); */
}

.simulate-btn:hover {
    transform: translateY(-2px);
    /* box-shadow: 0 6px 16px rgba(51, 52, 107, 0.738); */
}

/* Set Home Button (Emerald Green) */
.home-btn {
    background: linear-gradient(135deg, #10b98180 0%, #0596685a 100%);
    /* box-shadow: 0 4px 12px rgba(10, 93, 65, 0.3); */
}

.home-btn:hover {
    transform: translateY(-2px);
    /* box-shadow: 0 6px 16px rgba(14, 119, 84, 0.281); */
}

.home-btn:disabled {
    opacity: 0.7;
    cursor: default;
    transform: none;
    background: #008d60; /* Solid darker green when saved */
}

/* --- Custom Alert Popup (The Modal) --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

.popup-modal {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.popup-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.popup-title {
    color: white;
    font-size: 20px;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.popup-text {
    color: #94a3b8;
    margin-bottom: 24px;
    line-height: 1.5;
}

.popup-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popup-btn-primary {
    background: #3b82f6;
    color: white;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.popup-btn-primary:hover {
    background: #2563eb;
}

.popup-btn-secondary {
    background: transparent;
    color: #94a3b8;
    padding: 12px;
    border: 1px solid #334155;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.popup-btn-secondary:hover {
    background: #334155;
    color: white;
}

/* Animations */
@keyframes fadeIn { to { opacity: 1; } }
@keyframes popIn { to { transform: scale(1); } }


/* styles/components.css - Additions */

.main-stat {
    display: block;
    font-size: 15px;
    color: #38bdf8; /* Cyan highlight */
    font-weight: 500;
    margin-top: 2px;
}

.sub-stat {
    display: block;
    font-size: 13px;
    color: #94a3b8; /* Muted Slate */
    font-style: italic;
    margin-top: 4px;
}

/* Fix that White X button once and for all */
.footer-close {
    background: transparent !important;
    border: none !important;
    color: #64748b;
    font-size: 18px;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    width: 30px; 
    height: 30px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    border-radius: 50%;
}
.footer-close:hover {
    background: rgba(255,255,255,0.1) !important;
    color: white;
}