/* Custom Navigation Styles */
:root {
    --teal-50: #effcfc;
    --teal-100: #d5fafa;
    --teal-200: #aff3f2;
    --teal-300: #6de7e5;
    --teal-400: #2dcecb;
    --teal-500: #14b8b5;
    --teal-600: #0d9794;
    --teal-700: #0f7775;
    
    --blue-50: #eef8ff;
    --blue-100: #d9efff;
    --blue-200: #bae5ff;
    --blue-300: #8fd4ff;
    --blue-400: #45b4fc;
    --blue-500: #1a91e4;
    --blue-600: #0a72c2;
    --blue-700: #0c5a9e;
    --blue-800: #0e4377;
    --blue-900: #0f2d4a;
    
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

/* Updated Navbar Styles */
.navbar {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    height: 70px;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.brand-name {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--blue-800);
    margin-left: 0.75rem;
}

/* Center Navigation */
.main-nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--gray-700);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--teal-600);
    background-color: var(--teal-50);
}

.nav-link.active {
    color: var(--teal-600);
    font-weight: 600;
}

/* Right Side Actions */
.nav-text-link {
    color: var(--gray-700);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    margin-right: 1rem;
    transition: all 0.2s ease;
}

.nav-text-link:hover {
    color: var(--blue-700);
}

.nav-button {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--teal-600), var(--blue-600));
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 1.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.nav-button i {
    margin-left: 0.5rem;
}

.nav-button:hover {
    background: linear-gradient(135deg, var(--teal-700), var(--blue-700));
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: white;
}

/* User Profile Section */
.user-profile-section {
    display: flex;
    align-items: center;
}

.user-profile-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-role-badge {
    display: flex;
    align-items: center;
}

.badge-admin, .badge-operator, .badge-user {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-admin {
    background-color: #fbdddd;
    color: #b91c1c;
}

.badge-operator {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-user {
    background-color: #e0f2fe;
    color: #0369a1;
}

.user-profile-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.2s;
    background-color: rgba(0, 0, 0, 0.025);
}

.user-profile-display:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal-500), var(--blue-600));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-800);
}

.dropdown-menu {
    min-width: 220px;
    padding: 0.5rem 0;
    margin: 0.5rem 0 0;
    border: 1px solid var(--gray-200);
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--gray-700);
    transition: all 0.15s;
}

.dropdown-item:hover {
    background-color: var(--teal-50);
    color: var(--teal-700);
}

.dropdown-divider {
    margin: 0.25rem 0;
    border-top: 1px solid var(--gray-200);
}

.login-link {
    color: var(--teal-600);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.login-link:hover {
    background-color: var(--teal-50);
    color: var(--teal-700);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 0.5rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .user-profile-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}