/* ==========================================
   SOLID ISLAMI - ADMIN PANEL CSS
   ========================================== */

:root {
    --primary: #1B5E20;
    --primary-light: #2E7D32;
    --primary-dark: #0D3B0F;
    --primary-50: #E8F5E9;
    --primary-100: #C8E6C9;

    --accent: #F9A825;
    --accent-light: #FDD835;

    --bg: #F5F7FA;
    --bg-card: #FFFFFF;
    --bg-sidebar: #0D3B0F;

    --text: #1A1A2E;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --text-white: #FFFFFF;

    --border: #E5E7EB;
    --border-light: #F3F4F6;

    --danger: #DC2626;
    --danger-light: #FEE2E2;
    --success: #16A34A;
    --success-light: #DCFCE7;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --info: #2563EB;
    --info-light: #DBEAFE;

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);

    --sidebar-width: 260px;
    --topbar-height: 64px;
    --transition: 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================
   LOGIN PAGE
   ========================================== */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    padding: 20px;
}

.login-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header .login-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 8px;
}

.login-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
}

.login-header p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

/* ==========================================
   FORMS
   ========================================== */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.input-icon {
    position: relative;
}

.input-icon .material-icons-round {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--text-light);
}

.input-icon input,
.input-icon select,
.input-icon textarea {
    padding-left: 42px;
}

input, select, textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: var(--bg-card);
    transition: border-color var(--transition);
    outline: none;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-50);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.error-text {
    color: var(--danger);
    font-size: 13px;
    margin-top: 12px;
    text-align: center;
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn .material-icons-round {
    font-size: 18px;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-white);
}
.btn-primary:hover {
    background: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.btn-danger {
    background: var(--danger);
    color: var(--text-white);
}
.btn-danger:hover {
    background: #B91C1C;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary-50);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}
.btn-ghost:hover {
    background: var(--border-light);
    color: var(--text);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}
.btn-sm .material-icons-round {
    font-size: 16px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-icon:hover {
    background: var(--border-light);
    color: var(--text);
}

/* ==========================================
   ADMIN LAYOUT
   ========================================== */

.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header .material-icons-round {
    font-size: 32px;
    color: var(--accent);
}

.sidebar-header h2 {
    font-size: 16px;
    font-weight: 700;
}

.sidebar-header small {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-nav {
    flex: 1;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
}

.nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-white);
}

.nav-item.active {
    background: var(--primary-light);
    color: var(--text-white);
}

.nav-item .material-icons-round {
    font-size: 22px;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-info .material-icons-round {
    font-size: 24px;
    color: var(--accent);
}

.admin-info strong {
    display: block;
    font-size: 13px;
}

.admin-info small {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
}

.sidebar-footer .btn-icon {
    color: rgba(255,255,255,0.5);
}
.sidebar-footer .btn-icon:hover {
    color: var(--danger);
    background: rgba(255,255,255,0.1);
}

/* MAIN */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.topbar {
    height: var(--topbar-height);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar h1 {
    font-size: 18px;
    font-weight: 600;
    flex: 1;
}

.topbar #toggle-sidebar {
    display: none;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-online {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--success);
    background: var(--success-light);
    padding: 4px 12px;
    border-radius: 20px;
}

.badge-online .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.content-area {
    flex: 1;
    padding: 24px;
}

/* ==========================================
   CARDS & STATS
   ========================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.blue { background: var(--info-light); color: var(--info); }
.stat-icon.green { background: var(--success-light); color: var(--success); }
.stat-icon.yellow { background: var(--warning-light); color: var(--warning); }
.stat-icon.red { background: var(--danger-light); color: var(--danger); }

.stat-info h3 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.stat-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
}

.card-header h2 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header h2 .material-icons-round {
    font-size: 20px;
    color: var(--primary);
}

.card-body {
    padding: 20px;
}

/* ==========================================
   TABLE
   ========================================== */

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    background: var(--border-light);
    padding: 10px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

tbody td {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

tbody tr:hover {
    background: var(--primary-50);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* ==========================================
   BADGE/TAG
   ========================================== */

.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.tag-admin { background: #EDE9FE; color: #7C3AED; }
.tag-ustadz { background: var(--info-light); color: var(--info); }
.tag-student { background: var(--success-light); color: var(--success); }
.tag-parent { background: var(--warning-light); color: var(--warning); }
.tag-active { background: var(--success-light); color: var(--success); }
.tag-inactive { background: var(--danger-light); color: var(--danger); }
.tag-info { background: var(--info-light); color: var(--info); }
.tag-warning { background: var(--warning-light); color: var(--warning); }
.tag-promo { background: #EDE9FE; color: #7C3AED; }
.tag-event { background: var(--primary-50); color: var(--primary); }

/* ==========================================
   PAGINATION
   ========================================== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-top: 1px solid var(--border-light);
}

.pagination-info {
    font-size: 13px;
    color: var(--text-secondary);
}

.pagination-btns {
    display: flex;
    gap: 8px;
}

/* ==========================================
   MODAL
   ========================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    backdrop-filter: blur(2px);
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.2s ease;
}

@keyframes modalIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 20px;
    border-top: 1px solid var(--border-light);
}

/* ==========================================
   TOAST
   ========================================== */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    animation: toastIn 0.3s ease;
    min-width: 280px;
    border-left: 4px solid var(--primary);
}

.toast.toast-success { border-left-color: var(--success); }
.toast.toast-error { border-left-color: var(--danger); }
.toast.toast-warning { border-left-color: var(--warning); }

.toast .material-icons-round {
    font-size: 20px;
}
.toast.toast-success .material-icons-round { color: var(--success); }
.toast.toast-error .material-icons-round { color: var(--danger); }
.toast.toast-warning .material-icons-round { color: var(--warning); }

@keyframes toastIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ==========================================
   EMPTY STATE
   ========================================== */

.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-light);
}

.empty-state .material-icons-round {
    font-size: 56px;
    margin-bottom: 12px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 14px;
}

/* ==========================================
   LOADING
   ========================================== */

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 40px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.skeleton {
    background: linear-gradient(90deg, var(--border-light) 25%, var(--border) 50%, var(--border-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
    height: 20px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==========================================
   BADGE GRID (Badges page)
   ========================================== */

.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.badge-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.badge-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--primary-50);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.badge-icon-box .material-icons-round {
    font-size: 24px;
    color: var(--primary);
}

.badge-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.badge-info p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.badge-rewards {
    display: flex;
    gap: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-rewards span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.xp-color { color: var(--info); }
.coin-color { color: var(--accent); }

/* ==========================================
   LEADERBOARD
   ========================================== */

.lb-rank {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.lb-rank-1 { background: #FEF3C7; color: #D97706; }
.lb-rank-2 { background: #E5E7EB; color: #6B7280; }
.lb-rank-3 { background: #FDE68A; color: #92400E; }
.lb-rank-default { background: var(--border-light); color: var(--text-secondary); }

.lb-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lb-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;
}

/* ==========================================
   ANNOUNCEMENT CARDS
   ========================================== */

.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ann-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.ann-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ann-icon.info { background: var(--info-light); color: var(--info); }
.ann-icon.warning { background: var(--warning-light); color: var(--warning); }
.ann-icon.promo { background: #EDE9FE; color: #7C3AED; }
.ann-icon.event { background: var(--primary-50); color: var(--primary); }

.ann-content {
    flex: 1;
    min-width: 0;
}

.ann-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.ann-content p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.ann-meta {
    font-size: 11px;
    color: var(--text-light);
}

.ann-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

/* ==========================================
   FILTER BAR
   ========================================== */

.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-bar select, .filter-bar input {
    width: auto;
    min-width: 160px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .topbar #toggle-sidebar {
        display: flex;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .modal {
        max-width: 100%;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .content-area {
        padding: 16px;
    }
}

/* ==========================================
   SEARCH BOX
   ========================================== */

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box .material-icons-round {
    position: absolute;
    left: 10px;
    font-size: 20px;
    color: var(--text-light);
    pointer-events: none;
}

.search-box input {
    padding: 8px 12px 8px 36px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    width: 220px;
    background: var(--bg);
}

.search-box input:focus {
    border-color: var(--primary);
    background: var(--bg-card);
}

/* ==========================================
   PAGINATION BUTTONS
   ========================================== */

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
}

.page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-50);
}

.page-btn.active {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
}

/* ==========================================
   ROLE SELECT
   ========================================== */

.role-select {
    padding: 5px 8px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: inherit;
    color: var(--text);
    background: var(--bg-card);
    cursor: pointer;
    width: auto;
}

.role-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-50);
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn-secondary {
    background: var(--border-light);
    color: var(--text-secondary);
}
.btn-secondary:hover {
    background: var(--border);
    color: var(--text);
}

/* ==========================================
   DASHBOARD GRID
   ========================================== */

.dash-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

@media (max-width: 1024px) {
    .dash-grid-3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .dash-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   QUICK ACTIONS
   ========================================== */

.quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
}

.quick-action-btn:hover {
    border-color: var(--primary);
    background: var(--primary-50);
    color: var(--primary);
}

.quick-action-btn .material-icons-round {
    font-size: 20px;
    color: var(--primary);
}

/* ==========================================
   BADGES GRID FIX
   ========================================== */

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.badges-grid .badge-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: box-shadow var(--transition);
}

.badges-grid .badge-card:hover {
    box-shadow: var(--shadow-md);
}

/* ==========================================
   TAB GROUP
   ========================================== */

.tab-group {
    display: flex;
    gap: 4px;
    background: var(--border-light);
    border-radius: var(--radius-sm);
    padding: 3px;
}

.tab-btn {
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
}

.tab-btn:hover {
    color: var(--text);
}

.tab-btn.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: var(--shadow);
}

/* ==========================================
   SIDEBAR OPEN STATE (mobile)
   ========================================== */

.sidebar.collapsed {
    transform: translateX(-100%);
}
