/* ===================================
   NAVBAR STYLES - Modern Design
   Matches sidebar orange theme
   =================================== */

/* Navbar */
.navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 1030;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(244, 119, 33, 0.1);
    box-shadow: 0 2px 20px rgba(244, 119, 33, 0.05);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When sidebar is present, navbar starts after it */
body.has-sidebar .navbar-custom {
    left: 240px;
}

body.has-sidebar.sidebar-minimized .navbar-custom {
    left: 60px;
}

.navbar-left,
.navbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(244, 119, 33, 0.02) 50%, rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
}

/* Brand Section */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.navbar-brand:hover {
    background: rgba(244, 119, 33, 0.05);
    transform: translateY(-1px);
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f47721 0%, #ff9147 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(244, 119, 33, 0.25);
    transition: all 0.3s ease;
}

.navbar-brand:hover .brand-icon {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 6px 16px rgba(244, 119, 33, 0.35);
}

.brand-content {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f47721;
    letter-spacing: -0.5px;
}

.brand-subtitle {
    font-size: 0.65rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-top: 2px;
}


/* Icon Buttons */
.nav-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(244, 119, 33, 0.08);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f47721;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
}

.nav-icon-btn:hover {
    background: rgba(244, 119, 33, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 119, 33, 0.2);
}

.nav-icon-btn:active {
    transform: translateY(0);
}


/* User Profile Button */
.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-radius: 10px;
    background: rgba(244, 119, 33, 0.08);
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.user-profile-btn:hover {
    background: rgba(244, 119, 33, 0.15);
}

.user-chevron {
    font-size: 0.75rem;
    color: #999;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f47721 0%, #ff9147 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(244, 119, 33, 0.3);
}

.user-name {
    color: #555;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Dropdown Menus */
.dropdown-menu {
    border: 1px solid rgba(244, 119, 33, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    min-width: 220px;
}

.dropdown-header {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
}

.dropdown-item {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    margin-bottom: 0.25rem;
}

.dropdown-item:hover {
    background: rgba(244, 119, 33, 0.08);
    color: #f47721;
}

.dropdown-item i {
    opacity: 0.7;
}

.dropdown-item:hover i {
    opacity: 1;
}

.dropdown-divider {
    margin: 0.5rem 0;
    opacity: 0.1;
}


/* Dark Mode */
body.dark-mode .navbar-custom {
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.98) 0%, rgba(25, 25, 25, 0.95) 100%);
    border-bottom-color: rgba(244, 119, 33, 0.15);
    box-shadow:
        0 2px 20px rgba(244, 119, 33, 0.08),
        0 4px 40px rgba(0, 0, 0, 0.5);
}

body.dark-mode .navbar-custom::before {
    background: linear-gradient(90deg, rgba(30, 30, 30, 0.1) 0%, rgba(244, 119, 33, 0.03) 50%, rgba(30, 30, 30, 0.1) 100%);
}

body.dark-mode .navbar-brand:hover {
    background: rgba(244, 119, 33, 0.12);
}

body.dark-mode .brand-title {
    color: #ff9147;
}

body.dark-mode .brand-subtitle {
    color: #666;
}

body.dark-mode .nav-icon-btn {
    background: rgba(244, 119, 33, 0.12);
}

body.dark-mode .nav-icon-btn:hover {
    background: rgba(244, 119, 33, 0.2);
}

body.dark-mode .user-profile-btn {
    background: rgba(244, 119, 33, 0.12);
}

body.dark-mode .user-profile-btn:hover {
    background: rgba(244, 119, 33, 0.2);
}

body.dark-mode .user-name {
    color: #ccc;
}

body.dark-mode .dropdown-menu {
    background: #2a2a2a;
    border-color: rgba(244, 119, 33, 0.2);
}

body.dark-mode .dropdown-item {
    color: #ccc;
}

body.dark-mode .dropdown-item:hover {
    background: rgba(244, 119, 33, 0.15);
    color: #ff9147;
}

body.dark-mode .dropdown-header {
    color: #999;
}

body.dark-mode .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Mobile: navbar spans full width, sidebar slides over content */
@media (max-width: 768px) {
    body.has-sidebar .navbar-custom {
        left: 0;
    }
}

/* Adjust body padding for fixed navbar */
body {
    padding-top: 60px;
}

/* Smooth transitions */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
