/* MudDrawer overlay styling for profile drawer */
.mud-overlay-drawer {
    background-color: rgba(0, 0, 0, 0.42) !important;
    z-index: calc(var(--z-footer) - 2) !important;
}

.mud-drawer.profile-drawer {
    background-color: #2b0a3d !important;
    z-index: calc(var(--z-footer) - 1) !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100dvh !important;
    max-height: none !important;
    width: 85vw !important;
    max-width: 400px !important;
    padding-top: env(safe-area-inset-top);
    padding-bottom: var(--footer-base-height);
    border-left: none !important;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3) !important;
}

.mud-drawer.profile-drawer .mud-drawer-content {
    background-color: #2b0a3d !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    border-left: none !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

.mud-drawer.profile-drawer .mud-drawer-content::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.profile-drawer-header {
    background-color: #2b0a3d;
    border-bottom: 1px solid rgba(var(--color-blue), 0.3);
    padding: 12px 16px;
    flex-shrink: 0;
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.profile-drawer-header-text {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.header-icon {
    color: var(--color-blue) !important;
    font-size: 1.4rem !important;
}

.profile-drawer-title {
    color: var(--color-blue) !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em;
    line-height: 1;
    font-size: 0.95rem !important;
    text-align: left;
}

.company-chip {
    background-color: rgba(59, 130, 246, 0.15) !important;
    color: rgba(255,255,255,0.95) !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
    font-weight: 600 !important;
    max-width: 60%;
}

.company-chip .mud-chip-content {
    color: rgba(255,255,255,0.95) !important;
}

.profile-drawer-body {
    padding: 14px;
    overflow-y: auto;
    overflow-x: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
    flex: 1;
}

.profile-drawer-body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.profile-section {
    margin-bottom: 16px;
}

.section-label {
    color: rgba(255,255,255,0.82) !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 6px 4px 8px 4px;
}

.profile-section-divider {
    margin: 14px 4px !important;
    border-color: var(--color-white-12) !important;
}

.profile-info-card {
    background-color: var(--color-white-08);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(var(--color-blue), 0.2);
}

.profile-avatar-icon {
    color: var(--color-blue) !important;
    font-size: 3.5rem !important;
    flex-shrink: 0;
}

.profile-info-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.profile-name {
    color: white !important;
    font-weight: 700 !important;
    line-height: 1.3;
    margin: 0;
}

.profile-role {
    color: rgba(255, 255, 255, 0.88) !important;
    line-height: 1.3;
    margin: 0;
    font-size: 0.9rem;
}

.profile-email {
    color: rgba(255, 255, 255, 0.78) !important;
    line-height: 1.3;
    margin: 0;
    font-size: 0.8rem;
}

.profile-menu-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-menu-item {
    background-color: var(--color-white-05);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background-color var(--anim-fast) ease, transform var(--anim-fast) ease;
    border: 1px solid var(--color-white-08);
}

.profile-menu-item:hover {
    background-color: var(--color-white-12);
    transform: translateX(-2px);
}

.profile-menu-item:active {
    transform: scale(0.98);
}

.menu-icon {
    color: var(--color-blue) !important;
    font-size: 1.3rem !important;
    flex-shrink: 0;
}

.menu-text {
    color: rgba(255, 255, 255, 0.9) !important;
    flex: 1;
    font-weight: 500 !important;
}

.chevron-icon {
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 1.2rem !important;
    flex-shrink: 0;
}

.profile-logout-section {
    margin-top: auto;
    padding-top: 20px;
}

.logout-button {
    border-color: rgba(var(--color-red), 0.5) !important;
    color: var(--color-red) !important;
    font-weight: 600 !important;
    padding: 10px 16px !important;
    border-radius: var(--radius-sm) !important;
    transition: all 0.2s ease !important;
}

.logout-button:hover {
    background-color: rgba(var(--color-red), 0.1) !important;
    border-color: rgba(var(--color-red), 0.7) !important;
}

.profile-version {
    text-align: center;
    padding: 12px 0 8px 0;
}

.version-text {
    color: rgba(255, 255, 255, 0.60) !important;
    font-size: 0.7rem !important;
}

