/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* --- COLOR PALETTE (NIST Corporate) --- */
    --primary: #1B75BB;
    /* NIST Blue */
    --primary-dark: #145a91;
    --navy: #262261;
    /* Deep Navy */
    --green: #29B473;
    /* Brand Green */
    --pink: #EC297B;
    /* Brand Pink */
    --orange: #F6921E;
    /* Brand Orange */

    /* --- NEUTRALS --- */
    --bg: #f8fafc;
    --surface: #ffffff;
    --text-main: #1e293b;
    --text-sub: #64748b;
    --border: #e2e8f0;

    /* --- STATES --- */
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;

    /* --- SHADOWS --- */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* --- SPACING --- */
    --radius: 12px;
    --radius-lg: 20px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    min-height: 100vh;
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* =========================================
   2. GLOBAL BACKGROUND (BLOBS)
   ========================================= */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: var(--bg);
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: #bfdbfe;
    /* Light Blue */
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: #ddd6fe;
    /* Light Purple */
    animation-delay: -5s;
}

.blob-3 {
    bottom: 20%;
    left: 20%;
    width: 30vw;
    height: 30vw;
    background: #e0f2fe;
    /* Cyan */
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

/* =========================================
   3. LAYOUT & GLASSMORPHISM
   ========================================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 100px;
    /* Space for Navbar */
}

/* Glass Card - The core component */
.glass-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 25px;
    border-top: 4px solid var(--primary);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--green), var(--primary), var(--pink));
    opacity: 0.3;
}

.row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.col {
    flex: 1;
    min-width: 250px;
}

/* =========================================
   4. NAVBAR STYLES
   ========================================= */
.navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    height: 76px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-sm);
}

/* Gradient Line at bottom */
.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--green), var(--primary), var(--pink));
    opacity: 0.7;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo {
    width: 36px;
    height: 36px;
    color: var(--navy);
    filter: drop-shadow(0 2px 4px rgba(38, 34, 97, 0.2));
}

.nav-brand {
    font-weight: 800;
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 6px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-link {
    text-decoration: none;
    color: var(--text-sub);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover {
    color: var(--navy);
    background: #f1f5f9;
}

.nav-link.admin-link {
    color: var(--primary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 16px 4px 4px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
}

.user-avatar {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--primary), var(--navy));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    text-wrap: nowrap;
    transform: translateX(-50%) translateY(20px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    min-width: 200px;
    padding: 8px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
}

.dropdown-item {
    display: block;
    padding: 10px 16px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
}

.dropdown-item:hover {
    background: #f1f5f9;
    color: var(--primary);
}

@media (max-width: 1024px) {
    .nav-center {
        display: none;
    }

    .user-name {
        display: none;
    }
}

/* =========================================
   5. FORMS (Floating Labels)
   ========================================= */
.form-group {
    position: relative;
    margin-bottom: 24px;
    text-align: left;
}

.input-wrapper {
    position: relative;
}

input,
select,
textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    color: var(--text-main);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(27, 117, 187, 0.1);
}

label {
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
    display: block;
    font-size: 0.9rem;
}

.sub-label {
    font-size: 0.8rem;
    color: var(--text-sub);
    margin-bottom: 8px;
}

/* Floating Label Specifics (used in Login & others) */
.floating-input {
    padding-top: 24px;
    padding-bottom: 8px;
}

.floating-label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-sub);
    pointer-events: none;
    transition: 0.3s ease all;
}

.floating-input:focus~.floating-label,
.floating-input:not(:placeholder-shown)~.floating-label {
    top: 10px;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
}

/* =========================================
   6. BUTTONS & UTILITIES
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(27, 117, 187, 0.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(27, 117, 187, 0.35);
}

.btn-secondary {
    background: white;
    color: var(--navy);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: var(--navy);
}

.loader {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s infinite linear;
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================
   7. DASHBOARD & TABS
   ========================================= */
.tabs {
    display: flex;
    gap: 8px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
}

.tab {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-sub);
    background: transparent;
    transition: all 0.3s;
}

.tab.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Language Switch */
.lang-switch {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.lang-opt {
    flex: 1;
    padding: 12px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--text-sub);
    background: white;
}

.lang-opt.selected {
    background: rgba(41, 180, 115, 0.1);
    border-color: var(--green);
    color: var(--green);
    font-weight: 700;
}

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 10px;
}

.data-table th,
.data-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: #f8fafc;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.data-table tr:hover td {
    background: #f1f5f9;
}

/* Status Badges */
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

/* =========================================
   8. ANALYTICS & DASHBOARD SPECIFICS
   ========================================= */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* KPI Card Content styling (Container is .glass-card) */
.kpi-card-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.kpi-icon-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 2rem;
    opacity: 0.1;
    color: var(--primary);
}

.kpi-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-sub);
    margin-bottom: 8px;
}

.kpi-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--navy);
}

.kpi-subtext {
    font-size: 0.85rem;
    margin-top: 5px;
    font-weight: 500;
}

.text-green {
    color: var(--success);
}

.text-red {
    color: var(--danger);
}

.text-primary {
    color: var(--primary);
}

/* Danger Zone */
.danger-zone {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid #fee2e2;
}

.danger-header {
    background: #fef2f2;
    padding: 20px 24px;
    border-bottom: 1px solid #fecaca;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.danger-title {
    color: #991b1b;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Page Header Utilities */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dashboard-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* =========================================
   9. ANIMATIONS & UTILS
   ========================================= */
@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-1 {
    animation: cardEntrance 0.6s ease-out forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

.stagger-2 {
    animation: cardEntrance 0.6s ease-out forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.stagger-3 {
    animation: cardEntrance 0.6s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

/* =========================================
   10. SPECIFIC PAGE: CHANGE PASSWORD
   ========================================= */
.input-icon-left {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-sub);
    pointer-events: none;
    transition: all 0.3s;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-sub);
    background: none;
    border: none;
    padding: 0;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: var(--primary);
}

/* Input with icon padding override */
.input-with-icon {
    padding-left: 48px !important;
    /* Make room for the left icon */
    padding-right: 45px !important;
    /* Make room for the right icon */
}

.input-wrapper input:focus+.input-icon-left {
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.strength-meter {
    height: 4px;
    background: var(--border);
    margin-top: 10px;
    border-radius: 2px;
    overflow: hidden;
    display: flex;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s ease;
}

.strength-text {
    font-size: 0.75rem;
    margin-top: 6px;
    text-align: right;
    font-weight: 600;
    height: 14px;
}

/* =========================================
   11. SPECIFIC PAGE: MONTHLY ENTRY
   ========================================= */
.selector-box {
    background: rgba(255, 255, 255, 0.5);
    /* Reduced opacity for nesting */
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 5px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.selector-box h3 {
    margin: 0 0 5px 0;
    color: var(--navy);
    font-size: 1.1rem;
}

.selector-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.selector-input {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    width: 120px;
    text-align: center;
    font-weight: bold;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px dashed var(--border);
    border-radius: 12px;
}

.stat-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 5px;
    color: var(--text-sub);
}

.stat-input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.filter-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-box {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    background-color: rgba(255, 255, 255, 0.8);
}

.table-wrapper {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid var(--border);
    display: block;
    /* Override default table display if needed */
    border-radius: 8px;
}

.table-wrapper th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f8fafc;
    /* Match table header bg */
}

.inp-days {
    width: 80px;
    padding: 8px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-weight: bold;
}

.inp-days:focus {
    border-color: var(--primary);
    background: #e6f7ff;
}

.empty-state {
    text-align: center;
    color: var(--text-sub);
    padding: 50px;
}
/* =========================================
   12. NEW ANALYTICS DASHBOARD STYLES
   ========================================= */

/* KPI Cards - specific enhanced styles */
.kpi-card {
    background: rgba(255, 255, 255, 0.85); /* Slightly more opaque than glass-card */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden; /* For accent borders */
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Border Accents */
.border-left-primary {
    border-left: 4px solid var(--primary);
}

.border-left-success {
    border-left: 4px solid var(--success);
}

.border-left-danger {
    border-left: 4px solid var(--danger);
}

.border-left-warning {
    border-left: 4px solid var(--warning);
}

/* Icons in KPI cards */
.kpi-icon-wrapper {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem; /* Larger icon */
    opacity: 0.15; /* Subtle branding */
    color: var(--navy); /* Default color, can be overridden */
}

/* Typography Overrides for Dashboard */
.kpi-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-sub);
    margin-bottom: 4px;
}

.kpi-value {
    font-size: 2.5rem; /* Bigger impact */
    font-weight: 800; /* Bolder */
    line-height: 1.1;
    color: var(--navy);
    margin-bottom: 4px;
}

.kpi-subtext {
    font-size: 0.8rem;
    color: var(--text-sub);
    font-weight: 500;
}

/* Modern Table for Danger Zone */
.table-modern {
    width: 100%;
    border-collapse: separate; /* Allows for border-radius on rows/cells */
    border-spacing: 0 8px; /* Spacing between rows */
}

.table-modern thead th {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-sub);
    padding: 12px 24px;
    border-bottom: 1px solid var(--border);
    background: transparent; /* Clean header */
}

.table-modern tbody tr {
    background: white;
    box-shadow: var(--shadow-sm);
    transition: transform 0.1s ease;
}

.table-modern tbody tr:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow);
}

.table-modern td {
    padding: 16px 24px;
    vertical-align: middle;
    border: none;
}

.table-modern td:first-child {
    border-top-left-radius: var(--radius);
    border-bottom-left-radius: var(--radius);
}

.table-modern td:last-child {
    border-top-right-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
}

/* Chart Container Enhancement */
.chart-container-modern {
    position: relative;
    height: 320px; /* Fixed height for consistency */
    width: 100%;
}

/* Custom Scrollbar for specific sections if needed */
.scroll-area {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px; /* Space for scrollbar */
}

/* =========================================
   11. MOBILE REFINEMENTS
   ========================================= */

/* Quick Action Dashboard Cards */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.action-card {
    background: white;
    padding: 20px 10px;
    border-radius: 20px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.action-card i {
    font-size: 2rem;
    color: var(--primary);
    transition: transform 0.3s;
}

.action-card span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy);
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.action-card:active {
    transform: scale(0.95);
}

.action-card.active {
    background: var(--primary);
    border-color: var(--primary);
}

.action-card.active i, .action-card.active span {
    color: white;
}

/* Color Overrides for Cards */
.card-ws i { color: var(--primary); }
.card-lp i { color: var(--green); }
.card-cas i { color: var(--pink); }
.card-forms i { color: var(--primary); }

/* User List Mobile Stacking */
@media (max-width: 600px) {
    .glass-card {
        padding: 20px 15px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    /* Target the user row inside manage_users */
    .user-list-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }

    .user-list-actions {
        width: 100%;
        justify-content: space-between;
        padding-top: 15px;
        border-top: 1px solid #f1f5f9;
        display: flex;
    }

    .perm-grid {
        grid-template-columns: 1fr;
    }

    .tabs {
        display: none; /* Hide traditional tabs on mobile if using icon cards */
    }
}
