
/* 
   Improved Mobile Menu Styles 
   Targeting mmenu structure and custom user block
*/

/* 1. Menu Header (The 'Menu' bar) */
.mm-navbar {
    background: #333 !important;
    border-color: #444 !important;
    color: #fff !important; 
    font-family: 'Sarabun', sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
}
.mm-navbar .mm-title {
    color: #fff !important;
    font-size: 16px !important;
}
.mm-navbar .mm-btn {
    color: rgba(255,255,255,0.7) !important;
}

/* 2. User Info Block (Green Section) */
.mm-user-container {
    background: linear-gradient(135deg, var(--theme-color-1) 0%, #2a9d3c 100%);
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Decorative circle in background */
.mm-user-container::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    z-index: 0;
}

.mm-user {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.mm-user-avatar {
    width: 64px;
    height: 64px;
    margin-bottom: 10px;
}

.mm-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.mm-user-meta {
    width: 100%;
}

.mm-user-name {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.mm-user-role {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 400;
    background: rgba(0,0,0,0.1);
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
}

/* 3. Action Buttons (Dashboard, Message, etc.) */
.mm-user-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* Slightly tighter gap */
    width: 100%;
    position: relative;
    z-index: 2;
}

.mm-user-links .mm-link {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: #fff !important; /* Force white text */
    font-size: 13px; /* Slightly smaller for better fit */
    font-weight: 500;
    padding: 6px 14px; /* Slightly smaller padding */
    border-radius: 30px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
    flex: 1 1 auto;
    justify-content: center;
    white-space: nowrap;
}

.mm-user-links .mm-link:hover,
.mm-user-links .mm-link:active {
    background: #fff;
    color: var(--theme-color-1) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.mm-user-links .mm-link i {
    font-size: 14px;
    margin-right: 6px;
    color: inherit; /* Inherit form parent */
}

/* 4. Menu List Items */
.mm-listview > li > a {
    color: #444 !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    padding: 18px 25px !important;
}

.mm-listview > li > a i {
    color: #999;
    font-size: 18px;
    width: 24px;
    text-align: center;
    margin-right: 15px;
}
.mm-listview > li.mm-selected > a {
    background: rgba(55, 179, 74, 0.05) !important;
    color: var(--theme-color-1) !important;
    font-weight: 600 !important;
}
.mm-listview > li.mm-selected > a i {
    color: var(--theme-color-1) !important;
}

