/* Modern User Drawer Styles with Enhanced UI - Customer Dashboard Compatible */

/* More specific selectors to avoid conflicts with AdminLTE */
body #userDrawerOverlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    display: none;
    transition: opacity 0.3s ease;
}

body #userDrawer {
    position: fixed;
    top: 0; right: 0;
    width: 380px;
    height: 100%;
    background: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: none;
    overflow-y: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(100%);
    color: #333;
}

body #userDrawer.show {
    transform: translateX(0);
}

/* Drawer Header */
body #userDrawer .drawer-header {
    padding: 0;
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    color: white;
}

body #userDrawer .drawer-header-content {
    padding: 24px 24px 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

body #userDrawer .user-info {
    display: flex;
    align-items: center;
    flex: 1;
}

body #userDrawer .user-avatar {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

body #userDrawer .user-avatar i {
    font-size: 22px;
    color: white;
}

body #userDrawer .user-details {
    flex: 1;
}

body #userDrawer .user-name {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin: 0 0 4px 0;
}

body #userDrawer .user-email {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

body #userDrawer .drawer-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 18px;
    color: white;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

body #userDrawer .drawer-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

body #userDrawer .drawer-close-btn i {
    color: white;
}

/* Drawer Content */
body #userDrawer .drawer-content {
    padding: 0;
    background: #fafbfc;
}

body #userDrawer .drawer-nav {
    padding: 0;
}

body #userDrawer .nav-section {
    margin-bottom: 0;
    padding-bottom: 12px;
}

body #userDrawer .nav-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 8px 24px;
    padding-top: 16px;
}

body #userDrawer .nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

body #userDrawer .nav-menu li {
    margin: 0;
}

body #userDrawer .nav-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    text-decoration: none;
    color: #495057;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 15px;
    position: relative;
    border-radius: 8px;
    margin: 0 8px 2px 8px;
}

body #userDrawer .nav-menu-item:hover {
    background: #ffffff;
    color: #ff6b6b;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateX(4px);
}

body #userDrawer .nav-menu-item i {
    width: 24px;
    margin-right: 16px;
    font-size: 18px;
    color: #6c757d;
    text-align: center;
    transition: all 0.2s ease;
}

body #userDrawer .nav-menu-item:hover i {
    color: #ff6b6b;
    transform: scale(1.1);
}

body #userDrawer .nav-menu-item span {
    font-weight: 500;
    flex: 1;
    font-size: 15px;
}

/* Logout Section */
body #userDrawer .nav-section--bottom {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    background: #ffffff;
}

body #userDrawer .logout-container {
    background: #ffffff;
    border-radius: 8px;
    margin: 0 8px;
    padding: 8px;
}

body #userDrawer .nav-menu-item--logout {
    background: #ffffff;
    color: #dc3545;
    margin: 0;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.15);
}

body #userDrawer .nav-menu-item--logout:hover {
    background: #fff5f5;
    color: #c82333;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.15);
}

body #userDrawer .nav-menu-item--logout i {
    color: #dc3545;
}

body #userDrawer .nav-menu-item--logout:hover i {
    color: #c82333;
}

/* Trigger Button - Modern Design - More Specific */
body .drawer-trigger-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 10px !important;
    padding: 10px 14px !important;
    border: 1px solid #e0e0e0;
    background: linear-gradient(135deg, #007bff 0%, #91c6ff 100%) !important;
    color: gray !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    cursor: pointer !important;
    vertical-align: middle !important;
    position: relative !important;
    z-index: 1000 !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
    min-width: 35px !important;
    height: 35px !important;
    /* box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3) !important */
}

/* Customer Header Specific Alignment */
body .navbar-custom-menu .drawer-trigger-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 35px !important;
    margin: 0 10px !important;
    padding: 8px 12px !important;
}

body .navbar-custom-menu .nav > li > .drawer-trigger-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 35px !important;
    padding: 8px 12px !important;
    margin: 0 !important;
}

body .drawer-trigger-btn:hover {
    background: linear-gradient(135deg, #ff5252 0%, #ffb142 100%) !important;
    /* border-color: #ff5252 !important; */
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4) !important;
}

body .drawer-trigger-btn:focus {
    outline: 2px solid #ff5252 !important;
    outline-offset: 2px !important;
}

body .drawer-trigger-btn i {
    font-size: 16px;
    color: #fff;
}



/* Responsive Design */
@media (max-width: 480px) {
    body #userDrawer {
        width: 100%;
    }
    
    body #userDrawer .drawer-header-content {
        padding: 20px 20px 16px 20px;
    }
    
    body #userDrawer .nav-menu-item {
        padding: 14px 20px;
        margin: 0 4px;
    }
    
    body #userDrawer .nav-section-title {
        margin: 0 0 8px 20px;
    }
}

/* Scrollbar Styling */
body #userDrawer::-webkit-scrollbar {
    width: 6px;
}

body #userDrawer::-webkit-scrollbar-track {
    background: #f1f1f1;
}

body #userDrawer::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

body #userDrawer::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
} 