        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
        }

        body {
            background: linear-gradient(135deg, #f0f4ff 0%, #e9edf5 100%);
            min-height: 100vh;
            padding: 24px;
        }

        /* main two-panel layout */
        .app-container {
            display: flex;
            gap: 28px;
            max-width: 1600px;
            margin: 0 auto;
            flex-wrap: wrap;
        }

        /* left panel: ALL EXAMS (fetched from backend) */
        .exams-panel {
            flex: 2;
            min-width: 360px;
            background: white;
            border-radius: 32px;
            box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        }

        /* right panel: exam creator */
        .creator-panel {
            flex: 1.2;
            min-width: 340px;
            background: white;
            border-radius: 32px;
            box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.1);
            display: flex;
            flex-direction: column;
            height: fit-content;
            position: sticky;
            top: 24px;
        }

        .panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 24px 28px;
            background: white;
            border-bottom: 2px solid #eef2ff;
        }

        .panel-header h2 {
            font-size: 1.7rem;
            font-weight: 700;
            background: linear-gradient(135deg, #1e293b, #4f46e5);
            background-clip: text;
            -webkit-background-clip: text;
            color: transparent;
        }

        .assign-btn {
            background-color: #1e88e5;
            color: white;
            padding: 10px 16px;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: 0.3s ease;
        }

        .assign-btn:hover {
            background-color: #1565c0;
        }

        #exam-card-status{
            margin-top: 10px;
            max-width: 10rem;
        }

        .exams-grid {
            padding: 24px 28px;
            max-height: 75vh;
            overflow-y: auto;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
        }

        .exam-card {
            background: white;
            border-radius: 24px;
            border: 1px solid #e2e8f0;
            padding: 20px;
            transition: all 0.2s;
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
        }

        .exam-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 20px 25px -12px rgba(79, 70, 229, 0.2);
            border-color: #c7d2fe;
        }

        .exam-title {
            font-size: 1.2rem;
            font-weight: 700;
            color: #1e293b;
            margin-bottom: 12px;
            word-break: break-word;
        }

        .exam-meta {
            display: flex;
            gap: 16px;
            font-size: 0.75rem;
            color: #64748b;
            margin-bottom: 16px;
            flex-wrap: wrap;
        }

        .exam-badge {
            background: #eef2ff;
            padding: 4px 12px;
            border-radius: 40px;
            font-weight: 500;
            font-size: 0.7rem;
            color: #4f46e5;
        }

        .card-actions {
            display: flex;
            gap: 12px;
            margin-top: 16px;
            border-top: 1px solid #eef2ff;
            padding-top: 16px;
        }

        .icon-btn {
            background: transparent;
            border: none;
            padding: 8px 16px;
            border-radius: 40px;
            font-weight: 500;
            cursor: pointer;
            transition: 0.2s;
            font-size: 0.8rem;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .icon-btn.view {
            background: #eef2ff;
            color: #4f46e5;
        }

        .icon-btn.edit {
            background: #fef9e3;
            color: #b45309;
        }

        .icon-btn.delete {
            background: #fee2e2;
            color: #b91c1c;
        }

        .icon-btn:hover {
            transform: scale(0.96);
            opacity: 0.8;
        }

        .icon-btn.assign {
            background: #bfdbcb;
            color: #348540;
        }

        .icon-btn:hover {
            transform: scale(0.96);
            opacity: 0.8;
        }

        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: #94a3b8;
        }

        /* modal styles */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            padding: 20px;
        }

        .modal-container {
            background: white;
            border-radius: 32px;
            max-width: 900px;
            width: 90%;
            max-height: 85vh;
            overflow-y: auto;
            padding: 28px;
            box-shadow: 0 30px 40px rgba(0, 0, 0, 0.2);
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
            padding-bottom: 16px;
            border-bottom: 2px solid #eef2ff;
        }

        .close-modal {
            background: none;
            border: none;
            font-size: 28px;
            cursor: pointer;
            color: #64748b;
        }

        .question-review {
            margin-bottom: 20px;
            padding: 16px;
            background: #f8fafc;
            border-radius: 20px;
        }

        .btn-primary {
            background: linear-gradient(95deg, #4f46e5, #6366f1);
            border: none;
            color: white;
            padding: 12px 24px;
            border-radius: 40px;
            font-weight: 600;
            cursor: pointer;
        }

        .btn-outline {
            background: white;
            border: 2px solid #4f46e5;
            color: #4f46e5;
            padding: 10px 20px;
            border-radius: 40px;
            font-weight: 600;
            cursor: pointer;
        }

        .dynamic-marker {
            background: #fef9e3;
            border-radius: 24px;
            padding: 20px;
            margin: 16px 28px;
        }

        .schedule-card {
            background: #f8fafc;
            border-radius: 24px;
            padding: 20px;
            margin: 0 28px 20px 28px;
        }

        input,
        select,
        textarea {
            border-radius: 20px;
            border: 1px solid #cbd5e1;
            padding: 10px 14px;
            width: 100%;
        }

        .question-card-editor {
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 20px;
            padding: 16px;
            margin-bottom: 16px;
        }

        .options-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin: 12px 0;
        }

        .status-badge {
            background: #10b981;
            color: white;
            padding: 4px 12px;
            border-radius: 30px;
            font-size: 0.7rem;
        }

        @media (max-width: 800px) {
            .app-container {
                flex-direction: column;
            }

            .creator-panel {
                position: static;
            }
        }