:root {
    --header-height: 60px;
    --header-bg: #fff;
    --header-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --header-color: #495057;
    --header-hover: #f8f9fa;
    --primary-color: #4361ee;
    --danger-color: #f5365c;
    --success-color: #2dce89;
    --warning-color: #fb6340;
}

.app-header {
    height: var(--header-height);
    background-color: var(--header-bg);
    box-shadow: var(--header-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1030;
    transition: all 0.3s;
}

.header-left {
    display: flex;
    align-items: center;
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--header-color);
    font-size: 18px;
    margin-right: 15px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
}

.menu-toggle:hover {
    background-color: var(--header-hover);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--header-color);
    font-weight: 600;
    font-size: 18px;
}

.logo-img {
    height: 35px;
    margin-right: 10px;
}

.header-right {
    display: flex;
    align-items: center;
}

.header-item {
    margin-left: 15px;
    position: relative;
}

.header-item>a {
    display: flex;
    align-items: center;
    color: var(--header-color);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s;
}

.header-item>a:hover {
    background-color: var(--header-hover);
}

.user-avatar {
    position: relative;
    width: 36px;
    height: 36px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.status-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.status-indicator.online {
    background-color: var(--success-color);
}

.status-indicator.offline {
    background-color: var(--danger-color);
}

.user-name {
    margin-left: 8px;
    font-weight: 500;
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 10px;
}

.badge-danger {
    background-color: var(--danger-color);
    color: white;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0;
    margin-top: 10px;
    min-width: 240px;

}

.user-profile-dropdown .dropdown-menu {
    padding: 15px;
    position: absolute !important;
    right: 0px !important;
    top: 0 !important;
    transform: translate3d(-105px, 48px, 0px) !important;
    will-change: transform !important;
}

.user-profile-header {
    display: flex;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.user-profile-header .user-avatar {
    width: 50px;
    height: 50px;
    margin-right: 12px;
}

.user-profile-header .user-info h6 {
    margin-bottom: 2px;
    font-weight: 600;
}

.user-profile-header .user-info small {
    font-size: 12px;
}

.dropdown-item {
    padding: 8px 15px;
    color: var(--header-color);
    border-radius: 4px;
    margin: 2px 0;
    display: flex;
    align-items: center;
}

.dropdown-item i {
    margin-right: 10px;
    width: 18px;
    text-align: center;
}

.dropdown-item:hover {
    background-color: var(--header-hover);
    color: var(--primary-color);
}

.dropdown-divider {
    margin: 8px 0;
}

/* Notifications dropdown */
.dropdown-notifications {
    padding: 0;
    width: 320px;
}

.notification-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.notification-header h6 {
    margin-bottom: 2px;
    font-weight: 600;
}

.notification-header small {
    font-size: 12px;
    color: var(--gray);
}

.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--header-color);
    border-bottom: 1px solid #f8f9fa;
}

.notification-item:hover {
    background-color: var(--header-hover);
}

.notify {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    transform: translate(-260px, 38px) !important;
}

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: white;
}

.notification-content {
    flex: 1;
}

.notification-content p {
    margin-bottom: 2px;
    font-size: 14px;
}

.notification-content small {
    font-size: 12px;
    color: var(--gray);
}

.notification-footer {
    padding: 10px 15px;
    text-align: center;
    border-top: 1px solid #eee;
}

.notification-footer a {
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
}

.drop-down {
    position: absolute !important;
    right: 0 !important;
}

/* Custom Hamburger */
.custom-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 15px;
}

.custom-hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--header-color);
    border-radius: 3px;
    transition: 0.3s ease;
}

/* Mobile nav hidden by default */
.custom-mobile-nav {
    display: none;
    background-color: #fff;
    padding: 15px 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.custom-mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-mobile-nav li {
    margin: 10px 0;
}

.custom-mobile-nav a {
    text-decoration: none;
    color: var(--header-color);
    font-weight: 500;
}

.custom-mobile-nav a i {
    margin-right: 8px;
}

@media (max-width: 768px) {
    .logo-text {
        display: none;
    }

    .user-name {
        display: none;
    }

    .dropdown-notifications {
        width: 280px;
    }

    .custom-hamburger {
        display: flex;
    }

    .custom-mobile-nav.show {
        display: block;
    }

    .logo-text {
        display: none;
    }
}

@media(max-width:480px) {
    .user-profile-dropdown .dropdown-menu {
        transform: translate3d(-150px, 48px, 0px) !important;
    }

    .dashboard-header {
        display: inline-block !important;
    }

    .header-actions {
        margin: 10px 0 0;
    }
}

@media(max-width:400px) {
    .notify {
        transform: translate(-235px, 38px) !important;
    }
}

@media(max-width:360px) {
    .notify {
        transform: translate(-195px, 38px) !important;
    }

    .dashboard-header {
        /* padding: 20px; */
    }

    .stats-grid {
        /* padding: 20px; */
    }

    .dashboard-container {
        padding: 0px;
    }

    .charts-section {
        padding: 0 20px;
        justify-content: center;
    }

    .quick-actions-section {
        /* margin: 0 10px 30px; */
    }
}