
        :root {
            --primary: #2c3e50;
            --accent: #3498db;
            --success: #27ae60;
            --danger: #e74c3c;
            --warning: #f39c12;
            --bg: #f4f7f6;
            --border: #ddd;
            --sidebar-w: 240px;
        }
        * { box-sizing: border-box; }
        body { margin: 0; padding: 0; display: flex; height: 100vh; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: var(--bg); overflow: hidden; }

        #sidebar {
            width: var(--sidebar-w);
            min-width: var(--sidebar-w);
            background: var(--primary);
            color: white;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
        }
        #sidebar h2 { text-align: center; font-size: 1.1rem; letter-spacing: 1px; padding: 20px 15px 10px; margin: 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
        #sidebar .nav-item {
            padding: 14px 20px;
            cursor: pointer;
            transition: 0.2s;
            border-left: 4px solid transparent;
            font-size: 0.9rem;
        }
        #sidebar .nav-item:hover { background: rgba(255,255,255,0.08); }
        #sidebar .nav-item.active { background: rgba(255,255,255,0.12); border-left-color: var(--accent); font-weight: bold; }
        #sidebar .nav-bottom { margin-top: auto; padding: 15px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.8rem; opacity: 0.7; text-align: center; }
        #sidebar .nav-bottom a { color: white; text-decoration: underline; }

        #main { flex-grow: 1; display: flex; flex-direction: column; overflow: hidden; }
        #header { background: white; padding: 15px 25px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
        #header h1 { margin: 0; font-size: 1.3rem; color: var(--primary); }

        #content { flex-grow: 1; overflow-y: auto; padding: 25px; }
        .panel { display: none; }
        .panel.active { display: block; }

        .card {
            background: white;
            border-radius: 8px;
            box-shadow: 0 1px 4px rgba(0,0,0,0.08);
            padding: 20px;
            margin-bottom: 20px;
        }
        .card h3 { margin: 0 0 15px; color: var(--primary); font-size: 1.1rem; }

        table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
        th { background: #f8f9fa; text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--border); font-size: 0.75rem; text-transform: uppercase; color: #7f8c8d; }
        td { padding: 10px 12px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
        tr:hover td { background: #f8fbff; }

        .btn {
            padding: 6px 14px; border: none; border-radius: 4px; cursor: pointer;
            font-size: 0.8rem; font-weight: bold; transition: 0.2s; margin: 0 2px;
        }
        .btn-primary { background: var(--accent); color: white; }
        .btn-primary:hover { background: #2980b9; }
        .btn-danger { background: var(--danger); color: white; }
        .btn-danger:hover { background: #c0392b; }
        .btn-warning { background: var(--warning); color: white; }
        .btn-warning:hover { background: #e67e22; }
        .btn-success { background: var(--success); color: white; }
        .btn-success:hover { background: #219a52; }
        .btn-sm { padding: 4px 10px; font-size: 0.75rem; }

        .inline-form { display: flex; gap: 8px; align-items: center; margin-bottom: 15px; }
        .inline-form input, .inline-form select {
            padding: 6px 10px; border: 1px solid var(--border); border-radius: 4px; font-size: 0.85rem;
        }
        .inline-form input[type="text"], .inline-form input[type="email"] { width: 180px; flex-grow: 0; }

        .badge {
            display: inline-block; padding: 2px 8px; border-radius: 10px;
            font-size: 0.7rem; font-weight: bold; margin: 1px 2px;
        }
        .badge-blue { background: #d5e8f7; color: #2471a3; }
        .badge-green { background: #d5f5e3; color: #1e8449; }
        .badge-orange { background: #fdebd0; color: #b9770e; }
        .badge-red { background: #fadbd8; color: #c0392b; }

        .modal-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; z-index: 1000;
        }
        .modal {
            background: white; border-radius: 10px; padding: 25px; width: 500px; max-width: 90vw;
            max-height: 80vh; overflow-y: auto; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        }
        .modal h3 { margin-top: 0; color: var(--primary); }
        .modal-field { margin-bottom: 12px; }
        .modal-field label { display: block; font-size: 0.75rem; font-weight: bold; color: #95a5a6; text-transform: uppercase; margin-bottom: 4px; }
        .modal-field input, .modal-field select { width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: 4px; font-size: 0.9rem; }
        .modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }

        .checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; max-height: 300px; overflow-y: auto; padding: 8px 0; }
        .checkbox-item { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 4px; font-size: 0.85rem; }
        .checkbox-item:hover { background: #f8f9fa; }
        .checkbox-item input[type="checkbox"] { width: 16px; height: 16px; }

        .assign-dialog { display: flex; flex-direction: column; gap: 12px; }
        .assign-search { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 0.9rem; outline: none; }
        .assign-search:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(52,152,219,0.15); }
        .assign-columns { display: flex; gap: 12px; min-height: 200px; }
        .assign-col { flex: 1; border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
        .assign-col-header { padding: 8px 12px; font-size: 0.75rem; font-weight: bold; text-transform: uppercase; color: white; }
        .assign-col-header.available { background: #7f8c8d; }
        .assign-col-header.assigned { background: var(--success); }
        .assign-col-body { flex: 1; overflow-y: auto; padding: 6px; max-height: 220px; }
        .assign-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 4px; cursor: pointer; font-size: 0.85rem; transition: background 0.15s; }
        .assign-item:hover { background: #ecf0f1; }
        .assign-item.selected { background: #d5e8f7; }
        .assign-item .item-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .assign-item .item-sub { font-size: 0.75rem; color: #999; }
        .assign-empty { color: #bbb; font-size: 0.85rem; font-style: italic; padding: 20px; text-align: center; }
        .assign-arrows { display: flex; flex-direction: column; justify-content: center; gap: 6px; }
        .assign-arrow { width: 36px; height: 36px; border: 1px solid #ccc; border-radius: 6px; background: white; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: all 0.15s; color: #555; }
        .assign-arrow:hover:not(:disabled) { background: var(--accent); color: white; border-color: var(--accent); }
        .assign-arrow:disabled { opacity: 0.3; cursor: not-allowed; }
        .assign-loading { display: flex; align-items: center; justify-content: center; padding: 40px; color: #999; gap: 8px; }
        .assign-hint { font-size: 0.8rem; color: #7f8c8d; margin-bottom: 4px; }

        #login-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(44,62,80,0.95); display: flex; flex-direction: column;
            justify-content: center; align-items: center; z-index: 9999; color: white; text-align: center;
        }
        .login-card { background: white; padding: 40px; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); color: var(--primary); }

        @media (max-width: 768px) {
            #sidebar { position: absolute; z-index: 100; height: 100%; transform: translateX(-100%); }
            #sidebar.open { transform: translateX(0); }
            #mobile-toggle { display: block !important; }
        }
        #mobile-toggle { display: none; position: absolute; top: 10px; left: 10px; z-index: 101; background: var(--primary); color: white; border: none; border-radius: 4px; padding: 8px 12px; cursor: pointer; }
    
/* ===== Utility classes (extracted from inline style= attributes) ===== */

/* Button color variants used in table action rows */
.admin-btn-danger { background: #16a085; color: white; }
.admin-btn-danger2 { background: #8e44ad; color: white; }

/* Status text colors */
.admin-color-success { color: #2ecc71; }
.admin-color-danger { color: #e74c3c; }
.admin-text-dim { color: #999; }
.admin-text-muted { color: #666; }

/* Spacing */
.admin-margin-none { margin-top: 0; }
