/* ===== Menu List Layout (Settings & Admin) ===== */
.menu-list-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    /* Separator color */
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 1.2rem 0.85rem;
    background: rgba(30, 30, 30, 0.6);
    /* Item background */
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: var(--text-main);
    border: none;
    width: 100%;
    text-align: left;
}

.menu-item:hover {
    background: rgba(50, 50, 50, 0.8);
}

.menu-item:active {
    background: rgba(70, 70, 70, 0.9);
}

.menu-icon {
    font-size: 1.6rem;
    width: 2.2rem;
    /* Fixed width for alignment */
    text-align: center;
    margin-right: 0.85rem;
    opacity: 0.9;
}


.menu-text {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.3;
}

.menu-subtext {
    display: block;
    font-size: 0.85rem;
    color: #b0b0b0;
    margin-top: 2px;
}

.menu-badge {
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    margin-right: 10px;
    font-weight: bold;
}

.menu-arrow {
    font-size: 1.2rem;
    color: #ffffff;
    opacity: 0.6;
}

/* Section Dividers in Menu */
.menu-category-label {
    padding: 1rem 1rem 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* View Containers for Drill-down Navigation */
.view-container {
    display: none;
    animation: fadeSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-container.active {
    display: block;
}

/* Navigation Header for Sub-views */
.sub-view-header {
    display: flex;
    align-items: center;
    padding: 0 0.5rem 1.5rem 0.5rem;
}

.back-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    padding: 0.5rem;
    margin-right: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.back-btn:hover {
    opacity: 0.7;
}

.sub-view-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Brighten labels and titles in these views */
.view-container .setting-item label,
.view-container .form-group label {
    color: #ffffff !important;
    opacity: 0.95;
    font-weight: 700;
}

.view-container .setting-title {
    color: #ffffff !important;
    border-bottom-color: rgba(255, 255, 255, 0.2) !important;
}

.view-container .admin-info-label {
    color: rgba(255, 255, 255, 0.7) !important;
}

.view-container .admin-info-value {
    color: #ffffff !important;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}