/**
 * Mobile Navigation CSS
 * Include this in <style> or <link> to enable burger menu
 * Theme: Purple gradient matching Admin Activity Log
 */

/* Header styling - consistent across all pages */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 20px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

/* Navigation links - consistent styling */
.nav-links {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background 0.3s;
    font-size: 14px;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.2);
}

/* Burger Menu - Fixed position within header */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    border-radius: 3px;
    transition: 0.3s;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.mobile-nav-overlay.active {
    display: block;
}

/* Purple gradient theme matching Activity Log */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 1000;
    transition: right 0.3s ease;
    padding-top: 60px;
    box-shadow: -2px 0 10px rgba(0,0,0,0.3);
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background 0.3s;
    font-size: 15px;
}

.mobile-nav a:hover {
    background: rgba(255,255,255,0.2);
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    /* Hide desktop nav, show burger */
    .nav-links {
        display: none !important;
    }

    .burger-menu {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }

    .header h1 {
        font-size: 18px;
    }
}

