/* Common styles for all app pages */
* {
    box-sizing: border-box;
}

/* Navbar Styles */
.app-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #0a0a0a;
    border-bottom: 1px solid #00FF00;
    z-index: 1000;
    font-family: 'JetBrains Mono', monospace;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;  /* Changed from space-between to center */
    padding: 0 20px;
    position: relative;  /* Added for absolute positioning */
}

/* Logo Section */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-logo {
    color: #00FF00;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    transition: opacity 0.3s ease;
}

.nav-logo:hover {
    opacity: 0.8;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;  /* Added to center menu items */
}

.nav-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover {
    color: #00FF00;
}

.nav-link.active {
    color: #00FF00;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    /* background: #00a86b; */
}

/* User Section */
.nav-user {
    position: absolute;  /* Changed to absolute */
    right: 20px;  /* Added */
    top: 50%;  /* Added */
    transform: translateY(-50%);  /* Added */
}

.user-menu-toggle {
    background: transparent;
    border: 1px solid #333;
    color: #FFA500;
    padding: 8px 16px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.user-menu-toggle:hover {
    border-color: #FFA500;
}

.username {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: #0a0a0a;
    border: 1px solid #333;
    min-width: 200px;
    display: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.user-dropdown.show {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 12px 20px;
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.dropdown-item:hover {
    background: rgba(0, 255, 0, 0.1);
    color: #00FF00;
}

.dropdown-divider {
    height: 1px;
    background: #333;
    margin: 5px 0;
}

.logout-btn {
    color: #FF4444;
}

.logout-btn:hover {
    background: rgba(255, 68, 68, 0.1);
    color: #FF6666;
}

/* Mobile Styles */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid #333;
    color: #00FF00;
    font-size: 24px;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;  /* Added */
    left: 20px;  /* Added */
    top: 50%;  /* Added */
    transform: translateY(-50%);  /* Added */
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0a0a0a;
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid #333;
        display: none;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    }
    
    .nav-menu.mobile-menu.show {
        display: flex;
    }
    
    .nav-link {
        width: 100%;
        padding: 15px 20px;
        border-bottom: 1px solid #1a1a1a;
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    .nav-link.active {
        background: rgba(0, 255, 0, 0.1);
    }
}

/* Adjust main content for fixed navbar */
body.app-page {
    padding-top: 60px;
}

/* Add smooth transitions */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}