/* Base Navbar Styles */
.navbar {
    background: white;
    color: #2d3748;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 110px;
    border-bottom: 3px solid #667eea;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.nav-logo {
    height: 100px;
    width: auto;
}

.nav-brand-text {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Desktop Navigation Links */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    background: #f7fafc;
    color: #667eea;
}

/* User Menu */
.nav-user {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.profile-link {
    color: #4a5568;
    text-decoration: none;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.user-icon {
    font-size: 1.25rem;
}

.user-email {
    font-size: 0.9rem;
    color: #4a5568;
}

.logout-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #4a5568;
    border-radius: 3px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-menu.active {
    display: block;
    opacity: 1;
}

.mobile-menu-header {
    background: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #2d3748;
    font-size: 1.25rem;
    font-weight: bold;
    border-bottom: 3px solid #667eea;
}

.mobile-menu-logo {
    height: 50px;
    width: auto;
}

.close-menu {
    background: none;
    border: none;
    color: #4a5568;
    font-size: 2rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
}

.mobile-menu-links {
    background: white;
    height: calc(100vh - 90px);
    overflow-y: auto;
    padding: 2rem;
}

.mobile-menu-links a {
    display: block;
    padding: 1rem;
    color: #2d3748;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    border-bottom: 1px solid #e2e8f0;
    min-height: 44px;
}

.mobile-menu-links a:hover,
.mobile-menu-links a.active {
    background: #f7fafc;
    color: #667eea;
}

.mobile-user-info {
    padding: 1rem;
    margin-top: 2rem;
    background: #f7fafc;
    border-radius: 8px;
    color: #4a5568;
    font-size: 0.9rem;
}

.mobile-logout-btn {
    width: 100%;
    margin-top: 2rem;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    min-height: 44px;
}

/* Footer Styles */
.footer {
    background: #2d3748;
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
}

.footer-copyright {
    color: #cbd5e0;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0.75rem 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .user-email {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-container {
        min-height: 80px;
    }

    .nav-logo {
        height: 70px;
    }

    .nav-brand-text {
        font-size: 1.25rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .nav-user .logout-btn {
        display: none;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

/* Responsive Tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .table-responsive table {
        font-size: 0.85rem;
    }

    .table-responsive th,
    .table-responsive td {
        padding: 0.75rem 0.5rem;
        white-space: nowrap;
    }
}
