        :root {
            --bg-color: #f4f7f9;
            --card-bg: #ffffff;
            --primary-dark: #2c3e50;
            --accent-color: #3498db;
            --text-main: #334155;
            --border-color: #e2e8f0;
            --star-color: #f1c40f;
            --danger-color: #ef4444;
        }

        body {
            background-color: var(--bg-color);
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            color: var(--text-main);
            min-height: 100vh;
        }

        .header-section {
            background-color: var(--primary-dark);
            padding: 2rem 1rem;
            color: white;
            margin-bottom: 2rem;
            border-bottom: 4px solid var(--accent-color);
        }

        .main-card {
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.08);
            background: var(--card-bg);
            padding: 1.25rem;
            margin-top: -2.5rem;
        }

        @media (min-width: 769px) {
            .main-card { padding: 2rem; }
        }

        .drop-area {
            border: 2px dashed var(--border-color);
            padding: 1.5rem 1rem;
            text-align: center;
            border-radius: 10px;
            transition: all 0.2s ease;
            background: #fafafa;
            cursor: pointer;
            margin-bottom: 1.25rem;
        }

        .drop-area:hover, .drop-area.dragover {
            border-color: var(--accent-color);
            background: #f0f7ff;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 0.5rem;
            margin-bottom: 1rem;
        }

        @media (max-width: 768px) {
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        .stat-card {
            background: #fff;
            border-radius: 8px;
            padding: 0.6rem;
            border: 1px solid var(--border-color);
            text-align: center;
            transition: all 0.2s ease;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        @media (max-width: 768px) {
            .stat-card {
                padding: 0.4rem;
                min-height: 50px;
            }
            .stat-card .heading {
                font-size: 0.6rem !important;
                margin-bottom: 0 !important;
            }
            .stat-card .title {
                font-size: 1rem !important;
                line-height: 1.2;
            }
        }
        
        .stat-card:hover {
            border-color: var(--accent-color);
            background-color: #f8fafc;
        }

        .stat-card.is-active {
            border-color: var(--accent-color);
            background-color: #f0f9ff;
            box-shadow: inset 0 0 0 1px var(--accent-color);
        }

        .user-item {
            display: flex;
            align-items: center;
            padding: 0.7rem 0.8rem;
            background: white;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            margin-bottom: 0.4rem;
            transition: all 0.2s;
            color: var(--text-main);
        }

        .user-link {
            flex-grow: 1;
            font-weight: 600;
            color: var(--text-main);
            text-decoration: none !important;
            word-break: break-all;
            margin-right: 0.5rem;
        }

        .whitelist-btn {
            background: none;
            border: none;
            cursor: pointer;
            padding: 0.4rem;
            color: #cbd5e1;
            transition: color 0.2s;
            flex-shrink: 0;
        }

        .whitelist-btn.is-active {
            color: var(--star-color);
        }

        .file-chip {
            display: inline-flex;
            align-items: center;
            background: #e2e8f0;
            padding: 0.3rem 0.6rem;
            border-radius: 6px;
            margin: 0.2rem;
            font-size: 0.75rem;
            font-weight: bold;
        }

        .modal-card {
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 10px 40px rgba(0,0,0,0.15);
            max-width: 400px;
        }

        .modal-card-head {
            background-color: #fff;
            border-bottom: 1px solid var(--border-color);
            padding: 1.5rem;
        }

        .modal-card-title {
            font-weight: 700;
            color: var(--primary-dark);
            text-align: center;
            width: 100%;
        }

        .modal-card-body {
            padding: 2rem 1.5rem;
            text-align: center;
            color: #64748b;
        }

        .modal-card-foot {
            background-color: #fff;
            border-top: 1px solid var(--border-color);
            padding: 1.25rem 1.5rem;
            display: flex;
            gap: 10px;
            justify-content: center;
        }

        .modal-card-foot .button {
            border-radius: 8px;
            font-weight: 600;
            padding: 0.5rem 1.5rem;
            height: auto;
            min-width: 100px;
        }

        .modal.is-active .modal-card {
            animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }

        @keyframes modalPop {
            from { transform: scale(0.95) translateY(10px); opacity: 0; }
            to { transform: scale(1) translateY(0); opacity: 1; }
        }

        .fade-in {
            animation: fadeIn 0.3s ease forwards;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(5px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .hidden { display: none !important; }

        .tag-whitelist {
            background-color: var(--star-color);
            color: #fff;
            font-size: 0.6rem;
            padding: 0.1rem 0.3rem;
            border-radius: 4px;
            margin-left: 0.4rem;
            vertical-align: middle;
            font-weight: bold;
        }

        .controls-level {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
            margin-bottom: 1rem;
        }

        @media (min-width: 769px) {
            .controls-level {
                flex-direction: row;
                align-items: center;
                justify-content: space-between;
            }
        }

        .search-container { width: 100%; }
        @media (min-width: 769px) { .search-container { max-width: 450px; } }

        .action-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 0.4rem;
            justify-content: flex-start;
        }

        @media (min-width: 769px) { .action-buttons { justify-content: flex-end; } }

        .pagination-list { justify-content: center; flex-wrap: nowrap !important; }
        .pagination-link { padding: 0 0.5rem; min-width: 2rem; }