/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 20px;
    transition: color 0.3s ease;
}

.nav-brand:hover {
    color: #3b82f6;
}

.nav-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.nav-brand-text {
    font-weight: 700;
    font-size: 20px;
    color: #1a1a1a;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link i.fa-external-link-alt {
    font-size: 12px;
    margin-right: 6px;
    opacity: 0.7;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #3b82f6;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #3b82f6;
}

.nav-link:hover::after {
    width: 100%;
}


.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #1a1a1a;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
}

.mobile-menu-toggle:hover {
    color: #3b82f6;
}

/* Dropdown Styles */
.nav-dropdown {
    position: relative;
}

.dropdown-trigger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.dropdown-trigger i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-trigger i,
.nav-dropdown.active .dropdown-trigger i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 12px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 8px 0;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 20px;
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: #f8fafc;
}

.dropdown-item i {
    font-size: 20px;
    color: #3b82f6;
    margin-top: 2px;
}

.dropdown-item-title {
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.dropdown-item-title i.fa-external-link-alt {
    font-size: 10px;
    margin-right: 4px;
    opacity: 0.6;
}

.dropdown-item-desc {
    font-size: 12px;
    color: #64748b;
}

/* Hide mobile nav by default */
.mobile-nav {
    display: none;
}

/* Mobile button styles */
.btn-mobile {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-top: 12px;
}

.mobile-user-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    margin-top: 12px;
}

.mobile-user-info .username {
    font-weight: 600;
    color: #1a1a1a;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Hide desktop nav and actions on mobile */
    .desktop-nav {
        display: none !important;
    }
    
    .nav-actions {
        display: none !important;
    }
    
    /* Show and style mobile nav */
    .mobile-nav {
        display: flex;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px 24px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease;
        gap: 0;
    }
    
    .mobile-nav.active {
        max-height: 600px;
        opacity: 1;
        overflow-y: auto;
    }
    
    .mobile-nav .nav-link {
        padding: 14px 0;
        display: block;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .mobile-nav .nav-link:last-of-type {
        border-bottom: none;
    }
}
