/* --- Global Theme & Stacking Context --- */
:root {
    --sea-green: #2e8b57;
    --sea-green-light: rgba(46, 139, 87, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #e9fbd2 0%, #ffffff 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #333;
}

/* --- Enterprise Glass Components --- */
.glass-card, .navbar, .card {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* --- Navbar & Brand --- */
.navbar {
    animation: fadeIn 0.8s ease-in-out;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-img:hover {
    transform: scale(1.08);
}

/* --- Button Styling --- */
.btn {
    transition: all 0.3s ease;
    border-radius: 8px;
}

.btn-sea {
    background-color: var(--sea-green);
    color: white;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 139, 87, 0.3);
}

/* Fix for Logout Button Visibility */
.navbar-nav .nav-item .btn-danger.logout-btn {
    visibility: visible !important;
    opacity: 1 !important;
    display: inline-flex !important;
    align-items: center;
    border-radius: 8px;
}

/* --- Card Hover Effects --- */
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--sea-green) !important;
}

.card a:hover {
    color: var(--sea-green);
    text-decoration: underline;
}

/* --- CRITICAL: Modal Z-Index Fixes --- */
/* This ensures the modal content is always on top of the glass background */
.modal-backdrop {
    z-index: 1060 !important;
    backdrop-filter: blur(4px);
}

.modal {
    z-index: 1070 !important;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    border: 1px solid var(--sea-green);
    border-radius: 20px;
}

/* --- Animations --- */
/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

#audioOverlay {
    animation: slideIn 0.5s ease-in-out;
}

