/* Modern Navigation - Professional Design with Logo Colors */

/* Top Navigation Bar */
.topnav {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%) !important;
    border-bottom: 3px solid #d69e2e !important;
    padding: 0.75rem 1.5rem !important;
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.15) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: auto !important;
    min-height: 60px !important;
}

.topnav .navbar-toggler {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    padding: 0.5rem !important;
    transition: all 0.3s ease !important;
}

.topnav .navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.05);
}

.topnav .navbar-toggler-icon {
    color: white !important;
    font-size: 1.1rem !important;
}

.topnav .searchform input {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 25px !important;
    color: white !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease !important;
}

.topnav .searchform input:focus {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: #d69e2e !important;
    box-shadow: 0 0 0 0.2rem rgba(214, 158, 46, 0.25) !important;
    outline: none !important;
}

.topnav .searchform input::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Profile Dropdown */
.topnav .nav-item .dropdown-toggle {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50px !important;
    padding: 0.25rem !important;
    transition: all 0.3s ease !important;
}

.topnav .nav-item .dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.05);
}

.topnav .avatar {
    border: 2px solid #d69e2e !important;
    box-shadow: 0 2px 8px rgba(214, 158, 46, 0.3) !important;
}

.topnav .dropdown-menu {
    background: white !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    padding: 0.5rem 0 !important;
    margin-top: 0.5rem !important;
}

.topnav .dropdown-item {
    color: #1a365d !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    border-radius: 0 !important;
}

.topnav .dropdown-item:hover {
    background: linear-gradient(135deg, #f8f9fc 0%, #e8eaf6 100%) !important;
    color: #1a365d !important;
    transform: translateX(3px);
}

.topnav .dropdown-item i {
    margin-left: 0.5rem !important;
    color: #d69e2e !important;
    width: 16px !important;
}

/* Sidebar */
.sidebar-left {
    background: white !important;
    border-right: 1px solid rgba(26, 54, 93, 0.1) !important;
    box-shadow: 4px 0 12px rgba(26, 54, 93, 0.08) !important;
    position: relative !important;
}

.sidebar-left::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(135deg, #d69e2e 0%, #b7791f 100%);
}

/* Logo Section */
.sidebar-left .navbar-brand {
    padding: 1.5rem 0 !important;
    margin-bottom: 0 !important;
}

.sidebar-left .dash-logo {
    max-height: 60px !important;
    transition: all 0.3s ease !important;
}

.sidebar-left .dash-logo:hover {
    transform: scale(1.05);
}

/* Navigation Headings */
.sidebar-left .nav-heading {
    color: #1a365d !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.5px !important;
    margin: 1.5rem 1rem 0.75rem 1rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 2px solid #d69e2e !important;
    position: relative !important;
}

.sidebar-left .nav-heading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
}

/* Navigation Items */
.sidebar-left .navbar-nav {
    padding: 0 0.75rem !important;
}

.sidebar-left .nav-item {
    margin-bottom: 0.25rem !important;
}

.sidebar-left .nav-link {
    display: flex !important;
    align-items: center !important;
    padding: 0.75rem 1rem !important;
    color: #1a365d !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
    position: relative !important;
    overflow: hidden !important;
}

.sidebar-left .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(214, 158, 46, 0.1), transparent);
    transition: right 0.5s ease;
}

.sidebar-left .nav-link:hover::before {
    right: 100%;
}

.sidebar-left .nav-link:hover {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.05) 0%, rgba(214, 158, 46, 0.05) 100%) !important;
    color: #1a365d !important;
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.1);
}

.sidebar-left .nav-link i {
    width: 20px !important;
    text-align: center !important;
    color: #d69e2e !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
}

.sidebar-left .nav-link:hover i {
    color: #1a365d !important;
    transform: scale(1.1);
}

.sidebar-left .nav-link .item-text {
    font-size: 0.9rem !important;
    margin-right: 0.75rem !important;
    transition: all 0.3s ease !important;
}

/* Active Navigation Item */
.sidebar-left .nav-item.active > .nav-link,
.sidebar-left .nav-link.active {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.3) !important;
}

.sidebar-left .nav-item.active > .nav-link i,
.sidebar-left .nav-link.active i {
    color: #d69e2e !important;
}

.sidebar-left .nav-item.active::after {
    background-color: #d69e2e !important;
}

/* Dropdown Navigation */
.sidebar-left .dropdown-toggle {
    position: relative !important;
}

.sidebar-left .dropdown-toggle::after {
    position: absolute !important;
    left: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    border: none !important;
    /* content: '\f107' !important; */
    /* font-family: 'Font Awesome 5 Free' !important; */
    font-weight: 900 !important;
    color: #d69e2e !important;
    transition: all 0.3s ease !important;
}

.sidebar-left .dropdown-toggle[aria-expanded="true"]::after {
    transform: translateY(-50%) rotate(180deg) !important;
    color: #1a365d !important;
}

.sidebar-left .dropdown-toggle:hover::after {
    color: #1a365d !important;
}

/* Dropdown Menu */
.sidebar-left .collapse {
    background: rgba(248, 249, 252, 0.5) !important;
    border-radius: 0 0 10px 10px !important;
    margin-top: 0.25rem !important;
    padding: 0.5rem 0 !important;
    border-right: 3px solid #d69e2e !important;
}

.sidebar-left .collapse .nav-item {
    margin-bottom: 0.1rem !important;
}

.sidebar-left .collapse .nav-link {
    padding: 0.5rem 1rem 0.5rem 2.5rem !important;
    font-size: 0.85rem !important;
    color: #6c757d !important;
    background: transparent !important;
}

.sidebar-left .collapse .nav-link:hover {
    background: rgba(26, 54, 93, 0.05) !important;
    color: #1a365d !important;
    transform: translateX(5px);
}

.sidebar-left .collapse .nav-link i {
    font-size: 0.85rem !important;
    color: #d69e2e !important;
}

/* Toggle Button */
.sidebar-left .toggle-btn {
    background: rgba(26, 54, 93, 0.1) !important;
    border: 1px solid rgba(26, 54, 93, 0.2) !important;
    border-radius: 8px !important;
    color: #1a365d !important;
    transition: all 0.3s ease !important;
}

.sidebar-left .toggle-btn:hover {
    background: rgba(214, 158, 46, 0.1) !important;
    border-color: #d69e2e !important;
    color: #d69e2e !important;
}

/* Fix Main Content Positioning */
.vertical .main-content {
    margin-top: 0 !important;
    padding-top: 1.5rem !important;
}

.vertical .topnav + .main-content,
.vertical .topnav ~ .main-content {
    margin-top: 0 !important;
    padding-top: 1.5rem !important;
}

/* Dashboard Container Adjustments */
.dashboard-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Fix any extra spacing issues */
.page-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Remove extra margins from content sections */
.container-fluid {
    padding-top: 0 !important;
}

.main-content .container-fluid {
    padding-top: 1.5rem !important;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .topnav {
        padding: 0.5rem 1rem !important;
        min-height: 50px !important;
    }
    
    .sidebar-left {
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease !important;
    }
    
    .sidebar-left.show {
        transform: translateX(0) !important;
    }
    
    .sidebar-left .nav-heading {
        margin: 1rem 0.75rem 0.5rem 0.75rem !important;
    }
    
    .sidebar-left .navbar-nav {
        padding: 0 0.5rem !important;
    }
    
    .sidebar-left .nav-link {
        padding: 0.6rem 0.75rem !important;
    }
    
    .vertical .main-content {
        padding-top: 1rem !important;
    }
}

/* Collapsed Sidebar Styles */
.vertical.collapsed .sidebar-left,
.vertical.narrow .sidebar-left {
    overflow: visible !important;
}

.vertical.collapsed .sidebar-left .nav-link,
.vertical.narrow .sidebar-left .nav-link {
    justify-content: center !important;
    padding: 0.75rem !important;
}

.vertical.collapsed .sidebar-left .nav-link i,
.vertical.narrow .sidebar-left .nav-link i {
    margin: 0 !important;
    font-size: 1.2rem !important;
}

.vertical.collapsed .sidebar-left .nav-link:hover,
.vertical.narrow .sidebar-left .nav-link:hover {
    position: relative !important;
}

.vertical.collapsed .sidebar-left .nav-link:hover::after,
.vertical.narrow .sidebar-left .nav-link:hover::after {
    content: attr(title) !important;
    position: absolute !important;
    right: 100% !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: #1a365d !important;
    color: white !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 8px !important;
    font-size: 0.8rem !important;
    white-space: nowrap !important;
    z-index: 1000 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    margin-right: 0.5rem !important;
}

/* Smooth Animations */
.sidebar-left * {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Custom Scrollbar for Sidebar */
.sidebar-left::-webkit-scrollbar {
    width: 4px !important;
}

.sidebar-left::-webkit-scrollbar-track {
    background: transparent !important;
}

.sidebar-left::-webkit-scrollbar-thumb {
    background: rgba(214, 158, 46, 0.3) !important;
    border-radius: 2px !important;
}

.sidebar-left::-webkit-scrollbar-thumb:hover {
    background: rgba(214, 158, 46, 0.5) !important;
}

/* Glassmorphism Effect for Modern Look */
.sidebar-left {
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

/* Enhanced Focus States for Accessibility */
.sidebar-left .nav-link:focus,
.topnav .nav-link:focus,
.topnav .dropdown-toggle:focus {
    outline: 2px solid #d69e2e !important;
    outline-offset: 2px !important;
}

/* Loading Animation for Navigation */
@keyframes navigationPulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

.sidebar-left .nav-link.loading {
    animation: navigationPulse 1.5s infinite !important;
} 