/* HEADER STYLES */
.header {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}
.header .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}
.header .logo img,
.header .logo img.header-logo-img {
    max-height: 40px;
    display: block;
    width: auto;
}
.header .logo span.header-logo-text {
    /* Keep default span styling logic for backward compatibility if user used html */
}
.header .logo span.header-logo-text span {
    color: var(--primary);
}
.header .logo span.header-title-text {
    color: var(--text-color);
    font-size: 1.2rem;
    border-left: 2px solid var(--glass-border);
    padding-left: 0.8rem;
}
.header .nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.header .nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}
.header .nav a:hover {
    color: var(--primary);
}
.header .theme-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.header .theme-btn:hover {
    color: var(--primary);
}
.header .profile-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: var(--transition);
}
.header .profile-link:hover {
    border-color: var(--primary);
}
.header .profile-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}
.header .profile-icon {
    font-size: 1.5rem;
}
.header .nav .btn-nav {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}
.header .nav .btn-nav.active {
    background: var(--primary);
    color: white;
    border: none;
}

/* FOOTER STYLES */
.footer {
    margin-top: 4rem;
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0;
    background: rgba(0,0,0,0.02);
}
.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}
.footer-links a:hover {
    opacity: 1;
    color: var(--primary);
}
.footer-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Notifications (Header) */
.notification-dropdown { position: relative; display: flex; align-items: center; }
.notification-btn { position: relative; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); border-radius: 50%; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-color); font-size: 1.3rem; transition: var(--transition); flex-shrink: 0; }
.notification-btn:hover { background: rgba(99,102,241,0.15); border-color: rgba(99,102,241,0.4); color: var(--primary); }
.notif-badge { position: absolute; top: -5px; right: 0; background: #ef4444; color: white; font-size: 0.65rem; font-weight: bold; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.notification-menu { display: none; position: absolute; top: 100%; right: 0; width: 320px; background: var(--bg-color); border: 1px solid var(--glass-border); border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); z-index: 9999; overflow: hidden; margin-top: 1rem; }
.notification-menu.show { display: block; }
.notification-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem; border-bottom: 1px solid var(--glass-border); }
.notification-header h4 { margin: 0; font-size: 1rem; }
.notification-list { max-height: 350px; overflow-y: auto; }
.notif-item { padding: 1rem; border-bottom: 1px solid var(--glass-border); display: block; text-decoration: none; color: var(--text-color); transition: background 0.2s; }
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: rgba(255,255,255,0.05); }
.notif-item.unread { background: rgba(99,102,241,0.08); }
.notif-item.unread:hover { background: rgba(99,102,241,0.12); }
.notif-text { font-size: 0.85rem; margin-bottom: 0.3rem; }
.notif-date { font-size: 0.75rem; color: var(--text-muted); }
.mark-read-btn { background: none; border: none; color: var(--primary); cursor: pointer; font-size: 0.8rem; }
.notif-empty { padding: 1rem; text-align: center; color: var(--text-muted); }
.d-none { display: none !important; }

/* Mobile Menu Styles */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}
.mobile-menu-btn:hover {
    color: var(--primary);
}

@media (max-width: 900px) {
    .notification-menu {
        position: fixed;
        top: 75px;
        left: 5%;
        right: 5%;
        width: 90%;
        max-width: none;
        margin: 0;
        box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    }
    .header .container {
        position: relative;
    }
    .header .logo {
        position: static;
        transform: none;
    }
    .header-right-actions {
        display: flex;
    }
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .header .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-color); /* better than glass-bg for solid background */
        border-bottom: 1px solid var(--glass-border);
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem;
        gap: 0.2rem;
        z-index: 100;
    }
    .header .nav.active {
        display: flex;
    }
    .header .nav a {
        padding: 0.5rem 1rem;
        text-align: center;
        border-radius: 8px;
    }
    .header .nav a:hover {
        background: rgba(255,255,255,0.05);
    }
    .header .nav .btn-nav {
        text-align: center;
    }
    .header-icons-group {
        justify-content: center;
        margin: 0.5rem 0;
    }
    .notification-dropdown {
        justify-content: center;
    }
    .notification-menu {
        right: 50%;
        transform: translateX(50%);
        width: 90vw;
        max-width: 320px;
    }
    .header .profile-link {
        justify-content: center;
    }
}
