html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    background: linear-gradient(180deg, #B71C1C 0%, #7F0000 100%);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.menu-content {
    width: 100%;
    height: 100%;
    color: #fff;
    padding: 0;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
}

.menu-content::-webkit-scrollbar {
    width: 6px;
}

.menu-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.menu-content::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.4);
    border-radius: 3px;
}

.menu-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.6);
}

/* Profile Section */
.profile-section {
    display: flex;
    align-items: center;
    padding: 24px 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12) 0%, rgba(255, 235, 59, 0.08) 100%);
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    gap: 16px;
}

.avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #FFD700 0%, #FFEB3B 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
}

.avatar i {
    font-size: 28px;
    color: #1a1a2e;
}

.profile-info {
    flex: 1;
}

.profile-info h3 {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-badge.admin {
    background: linear-gradient(135deg, #B71C1C 0%, #7F0000 100%);
    color: #FFD700;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.role-badge.user {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.role-badge.khach {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Status Cards */
.status-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.status-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.15);
    transition: all 0.3s ease;
}

.status-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.status-card > i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFD700 0%, #FFEB3B 100%);
    border-radius: 10px;
    font-size: 18px;
    color: #1a1a2e;
}

.status-card.warning > i {
    background: linear-gradient(135deg, #FFB300 0%, #FFC107 100%);
}

.status-card.danger > i {
    background: linear-gradient(135deg, #FF5252 0%, #D32F2F 100%);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.status-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.status-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-value {
    font-size: 15px;
    font-weight: 600;
    color: #FFD700;
}

.status-value.warning {
    color: #FFB300;
}

.status-value.danger {
    color: #FF5252;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Menu Divider */
.menu-divider {
    padding: 20px 20px 10px 20px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 215, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Menu List */
.menu-list {
    list-style: none;
    padding: 0 12px;
    margin: 0;
}

.menu-item {
    margin: 3px 0;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    line-height: 1.4;
}

.menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.2) 0%, transparent 100%);
    transition: width 0.3s ease;
    border-radius: 0 12px 12px 0;
}

.menu-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.menu-link:hover::before {
    width: 4px;
}

.menu-link.active {
    color: #FFD700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12) 0%, rgba(255, 235, 59, 0.05) 100%);
}

.menu-link.active::before {
    width: 4px;
}

.menu-link i:first-child {
    width: 22px;
    min-width: 22px;
    font-size: 16px;
    color: #FFEB3B;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-link span {
    flex: 1;
}

.submenu-icon {
    font-size: 10px !important;
    color: rgba(255, 255, 255, 0.35) !important;
    transition: transform 0.3s ease;
}

.menu-item.has-submenu.open > .menu-link .submenu-icon {
    transform: rotate(90deg);
}

.menu-link:hover .submenu-icon {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Submenu */
.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 0 0 12px 12px;
}

.menu-item.has-submenu.open > .submenu {
    max-height: 500px;
    padding: 8px 0;
}

.submenu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 10px 52px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.submenu li a i {
    font-size: 12px;
    color: rgba(255, 235, 59, 0.5);
    width: 16px;
}

.submenu li a:hover {
    color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
}

.submenu li a:hover i {
    color: #FFEB3B;
}

/* Logout Button */
.menu-link.logout {
    background: rgba(255, 82, 82, 0.12);
    border: 1px solid rgba(255, 82, 82, 0.25);
    margin-top: 10px;
}

.menu-link.logout:hover {
    background: rgba(255, 82, 82, 0.2);
    border-color: rgba(255, 82, 82, 0.4);
}

.menu-link.logout i:first-child {
    color: #FF5252 !important;
}

.menu-link.logout:hover i:first-child {
    color: #FF8A80 !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .profile-section {
        padding: 20px 16px;
    }
    
    .avatar {
        width: 48px;
        height: 48px;
    }
    
    .avatar i {
        font-size: 24px;
    }
    
    .profile-info h3 {
        font-size: 16px;
    }
    
    .status-cards {
        padding: 12px 16px;
    }
    
    .status-card {
        padding: 10px 14px;
    }
    
    .status-card > i {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .menu-list {
        padding: 0 8px;
    }
    
    .menu-link {
        padding: 12px 14px;
        font-size: 13px;
    }
    
    .submenu li a {
        padding: 8px 14px 8px 46px;
        font-size: 12px;
    }
}
