* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}
body {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    padding: 10px;
}
.container {
    width: 100%;
    max-width: 1200px;
    background: rgba(255, 255, 255, .95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 90vh;
}
.header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: #fff;
    padding: 15px;
    text-align: center;
}
.header h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}
.header p {
    opacity: .9;
    font-size: 1rem;
}
.content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.login-form {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
}
.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: .95rem;
    transition: border .3s;
}
.form-control:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, .2);
}
.form-text {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-top: 5px;
}
.btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: .95rem;
    font-weight: 500;
    transition: all .3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, .4);
}
.btn:disabled {
    background: linear-gradient(135deg, #bdc3c7, #95a5a6);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.btn-block {
    width: 100%;
    justify-content: center;
}
.btn-secondary {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}
.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}
.btn-success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}
.btn-print {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}
.btn-export {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}
.btn-import {
    background: linear-gradient(135deg, #16a085, #27ae60);
}
.btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
}
.dashboard {
    display: none;
}
.dashboard.active {
    display: block;
}
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 10px;
}
.user-info {
    display: flex;
    align-items: center;
}
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.1rem;
}
.quiz-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
}
.quiz-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .08);
    transition: transform .3s, box-shadow .3s;
    border-left: 5px solid #3498db;
}
.quiz-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}
.quiz-card.disabled {
    opacity: .7;
    border-left-color: #95a5a6;
    background: #f8f9fa;
}
.quiz-card.disabled:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .08);
}
.quiz-card h3 {
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 1.1rem;
}
.quiz-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: .85rem;
    color: #7f8c8d;
}
.token-display {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    margin: 15px 0;
    text-align: center;
    border: 1px dashed #ddd;
}
.token-display h4 {
    margin-bottom: 8px;
    color: #2c3e50;
}
.token-code {
    font-family: monospace;
    font-size: 1.3rem;
    font-weight: bold;
    color: #e74c3c;
    letter-spacing: 2px;
}
.admin-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}
.admin-sidebar {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    overflow-x: auto;
}
.admin-menu {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
}
.admin-menu li {
    margin-right: 10px;
    white-space: nowrap;
}
.admin-menu a {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    transition: background .3s;
    font-size: .9rem;
}
.admin-menu a:hover,
.admin-menu a.active {
    background: #3498db;
    color: #fff;
}
.admin-menu .material-icons {
    margin-right: 8px;
    font-size: 1.1rem;
}
.admin-content {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .05);
    overflow-x: auto;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: .9rem;
}
.data-table th,
.data-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.data-table th {
    background: #f8f9fa;
    font-weight: 500;
    color: #2c3e50;
    position: sticky;
    top: 0;
}
.data-table tr:hover {
    background: #f8f9fa;
}
.quiz-container {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .05);
    margin-bottom: 15px;
    overflow-x: hidden;
}
.quiz-timer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 10px;
}
.timer {
    display: flex;
    align-items: center;
    color: #e74c3c;
    font-weight: 500;
}
.timer .material-icons {
    margin-right: 5px;
}
.question {
    margin-bottom: 20px;
}
.question h3 {
    margin-bottom: 12px;
    color: #2c3e50;
    font-size: 1.1rem;
}
.question-image {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 8px;
}
.options {
    display: grid;
    gap: 8px;
}
.option {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: background .3s;
}
.option:hover {
    background: #e9f7fe;
}
.option input {
    margin-right: 8px;
}
.option-image {
    max-width: 150px;
    max-height: 100px;
    margin-left: 10px;
    border-radius: 4px;
}
.notification {
    position: fixed;
    top: 15px;
    right: 15px;
    background: #fff;
    border-radius: 8px;
    padding: 12px 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
    display: flex;
    align-items: center;
    transform: translateX(120%);
    transition: transform .3s ease-out;
    z-index: 1000;
    max-width: 300px;
}
.notification.show {
    transform: translateX(0);
}
.notification.success {
    border-left: 4px solid #2ecc71;
}
.notification.error {
    border-left: 4px solid #e74c3c;
}
.notification.info {
    border-left: 4px solid #3498db;
}
.notification .material-icons {
    margin-right: 8px;
    font-size: 1.3rem;
}
.notification.success .material-icons {
    color: #2ecc71;
}
.notification.error .material-icons {
    color: #e74c3c;
}
.notification.info .material-icons {
    color: #3498db;
}
.hidden {
    display: none !important;
}
.badge {
    display: inline-block;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: .75rem;
    font-weight: 500;
}
.badge.success {
    background: #d4edda;
    color: #155724;
}
.badge.danger {
    background: #f8d7da;
    color: #721c24;
}
.badge.warning {
    background: #fff3cd;
    color: #856404;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 15px;
}
.modal.active {
    display: flex;
}
.modal-content {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}
.modal-content.modal-lg {
    max-width: 800px;
}
.modal-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-title {
    font-size: 1.3rem;
    color: #2c3e50;
}
.modal-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #7f8c8d;
}
.modal-body {
    padding: 15px;
}
.modal-footer {
    padding: 12px 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.option-input {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}
.option-input label {
    margin-right: 8px;
    flex-shrink: 0;
}
.option-input .form-control {
    flex-grow: 1;
}
.option-image-container {
    display: flex;
    align-items: center;
    margin-left: 8px;
}
.option-image-file {
    display: none;
}
.option-image-preview {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    margin-right: 8px;
    display: none;
}
.image-preview {
    max-width: 200px;
    max-height: 150px;
    margin-top: 10px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    display: none;
}
.correct-answer {
    margin-left: 8px;
    color: #2ecc71;
}
.print-container {
    display: none;
}
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    color: white;
}
.loading-spinner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #3498db;
    animation: spin 1s infinite linear;
    margin-bottom: 10px;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    align-items: flex-end;
}
.filter-bar .form-group {
    margin-bottom: 0;
    flex: 1;
    min-width: 150px;
}
.filter-bar .btn {
    height: 40px;
}
.preview-container {
    margin: 15px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: none;
}
.preview-container table {
    width: 100%;
    border-collapse: collapse;
}
.preview-container th,
.preview-container td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
}
.preview-container th {
    background-color: #e9ecef;
}
.chart-container {
    margin-top: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.chart-container h4 {
    margin-bottom: 15px;
    color: #2c3e50;
    text-align: center;
}
.row {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
}
.chart-card {
    flex: 1;
    min-width: 300px;
    margin: 10px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}
.select2-container {
    width: 100% !important;
}
.select2-container--default .select2-selection--multiple {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 2px 8px;
    min-height: 40px;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #e9f7fe;
    border: 1px solid #3498db;
    border-radius: 4px;
    padding: 2px 8px;
    margin-top: 5px;
}
.result-item {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}
.result-question {
    margin-bottom: 10px;
}
.result-question h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #2c3e50;
}
.result-options {
    display: grid;
    gap: 8px;
}
.result-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 4px;
    background-color: #fff;
}
.result-option.correct {
    background-color: rgba(46, 204, 113, 0.2);
}
.result-option.incorrect {
    background-color: rgba(231, 76, 60, 0.2);
}
.result-option.correct-answer {
    border: 1px dashed #2ecc71;
}
.result-detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.result-detail-table th,
.result-detail-table td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
}
.result-detail-table th {
    background-color: #f2f2f2;
}
@media print {
    body {
        background: none;
        padding: 0;
        margin: 0;
    }
    .container {
        box-shadow: none;
        border-radius: 0;
        width: 100%;
        max-width: 100%;
    }
    .header,
    .dashboard-header,
    .btn,
    .admin-panel,
    .modal,
    .notification {
        display: none !important;
    }
    .print-container {
        display: block;
        padding: 15px;
    }
    .print-header {
        text-align: center;
        margin-bottom: 25px;
        border-bottom: 2px solid #333;
        padding-bottom: 8px;
    }
    .print-info {
        display: flex;
        justify-content: space-between;
        margin-bottom: 15px;
        flex-wrap: wrap;
    }
    .print-info div {
        flex: 1;
        margin-bottom: 10px;
    }
    .print-questions {
        margin-top: 15px;
    }
    .print-question {
        margin-bottom: 15px;
        page-break-inside: avoid;
    }
    .print-question-number {
        font-weight: bold;
        margin-bottom: 5px;
    }
    .print-question-text {
        margin-bottom: 8px;
    }
    .print-options {
        margin-left: 15px;
    }
    .print-option {
        margin-bottom: 5px;
    }
    .print-answer {
        font-weight: bold;
        color: #2ecc71;
    }
    .print-user-answer {
        font-weight: bold;
    }
    .print-user-answer.correct {
        color: #2ecc71;
    }
    .print-user-answer.incorrect {
        color: #e74c3c;
    }
    .print-footer {
        margin-top: 25px;
        text-align: right;
        font-size: .85rem;
        color: #7f8c8d;
    }
}
.export-options {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    justify-content: center;
    flex-wrap: wrap;
}
.export-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    display: none;
}
.export-table th,
.export-table td {
    border: 1px solid #ddd;
    padding: 6px;
    text-align: left;
    font-size: .85rem;
}
.export-table th {
    background: #f2f2f2;
    font-weight: bold;
}
.file-upload {
    position: relative;
    display: inline-block;
    cursor: pointer;
    overflow: hidden;
}
.file-upload input[type=file] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}
.file-info {
    margin-top: 8px;
    font-size: .85rem;
    color: #7f8c8d;
}
.class-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    overflow-x: auto;
    padding-bottom: 5px;
}
.class-filter button {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 20px;
    cursor: pointer;
    transition: all .3s;
    font-size: .85rem;
    white-space: nowrap;
}
.class-filter button.active {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}
/* Batch Question Styles */
.batch-question-controls {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}
.batch-tabs {
    display: flex;
    overflow-x: auto;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}
.batch-tab {
    padding: 8px 15px;
    margin-right: 5px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    white-space: nowrap;
}
.batch-tab.active {
    background-color: #fff;
    border-bottom: 2px solid #3498db;
    font-weight: bold;
}
.batch-form {
    display: none;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 0 5px 5px 5px;
    margin-bottom: 15px;
}
.batch-form.active {
    display: block;
}
.form-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.batch-form-container {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}
.batch-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    align-items: center;
}
.progress-bar-container {
    flex-grow: 1;
    height: 10px;
    background-color: #eee;
    border-radius: 5px;
    margin: 0 15px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    background-color: #3498db;
    width: 0%;
    transition: width 0.3s ease;
}
@media (min-width: 768px) {
    .admin-panel {
        grid-template-columns: 220px 1fr;
    }
    .admin-menu {
        flex-direction: column;
        overflow-x: visible;
    }
    .admin-menu li {
        margin-right: 0;
        margin-bottom: 8px;
    }
    .quiz-list {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
    .export-options {
        flex-direction: row;
    }
    .header h1 {
        font-size: 2rem;
    }
    .header p {
        font-size: 1.1rem;
    }
    .content {
        padding: 30px;
    }
    .user-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    .quiz-card h3 {
        font-size: 1.2rem;
    }
    .token-display {
        padding: 15px;
    }
    .token-display h4 {
        margin-bottom: 10px;
    }
    .token-code {
        font-size: 1.5rem;
    }
    .dashboard-header {
        flex-wrap: nowrap;
    }
    .admin-menu a {
        padding: 10px 15px;
        font-size: 1rem;
    }
    .admin-menu .material-icons {
        margin-right: 10px;
    }
    .data-table {
        font-size: 1rem;
    }
    .data-table th,
    .data-table td {
        padding: 12px 15px;
    }
    .quiz-container {
        padding: 25px;
    }
    .question h3 {
        font-size: 1.2rem;
    }
    .options {
        gap: 10px;
    }
    .option {
        padding: 12px 15px;
    }
    .quiz-timer {
        padding: 15px;
    }
    .notification {
        max-width: 350px;
        padding: 15px 20px;
    }
    .notification .material-icons {
        margin-right: 10px;
        font-size: 1.5rem;
    }
    .badge {
        padding: 4px 8px;
        font-size: .8rem;
    }
    .modal-header {
        padding: 20px;
    }
    .modal-title {
        font-size: 1.5rem;
    }
    .modal-close {
        font-size: 1.5rem;
    }
    .modal-body {
        padding: 20px;
    }
    .modal-footer {
        padding: 15px 20px;
    }
    .form-row {
        gap: 15px;
    }
    .option-input {
        margin-bottom: 10px;
    }
    .export-options {
        gap: 10px;
        margin-top: 20px;
    }
    .export-table th,
    .export-table td {
        padding: 8px;
    }
    .file-info {
        margin-top: 10px;
        font-size: .9rem;
    }
    .class-filter {
        margin-bottom: 20px;
    }
    .class-filter button {
        padding: 8px 15px;
    }
}
@media (min-width: 992px) {
    .container {
        min-height: 80vh;
    }
    .quiz-list {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}
/* Table Scroll Containers */
.table-scroll-container {
    max-height: 500px;
    overflow-y: auto;
    margin-top: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
}
.table-scroll-container .data-table {
    margin-top: 0;
}
.table-scroll-container .data-table th {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #f8f9fa;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}
/* Specific Kelas Filter Styles */
.specific-class-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}
.specific-class-filter select {
    min-width: 150px;
}
.specific-class-group {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
}
.specific-class-group h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1rem;
    color: #2c3e50;
}
.specific-class-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}
.specific-class-option {
    padding: 6px 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}
.specific-class-option:hover {
    background-color: #e9f7fe;
    border-color: #3498db;
}
.specific-class-option.active {
    background-color: #3498db;
    border-color: #2980b9;
    color: #fff;
}
/* Select All Students Button */
.select-all-container {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eee;
}
.select-all-container h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1rem;
    color: #2c3e50;
}
.select-all-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.select-all-options button {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: #3498db;
    color: white;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.select-all-options button:hover {
    background-color: #2980b9;
}
.select-all-options button.active {
    background-color: #2ecc71;
}
/* Select2 Improvements */
.select2-container--default .select2-results>.select2-results__options {
    max-height: 300px;
    overflow-y: auto;
}
.select2-dropdown {
    border-color: #ddd;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    border-color: #ddd;
    border-radius: 8px;
    min-height: 40px;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #e9f7fe;
    border: 1px solid #3498db;
    border-radius: 4px;
    padding: 2px 8px;
    margin-top: 5px;
}
/* Student selection area in token generator */
.student-selection-area {
    margin-top: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    background-color: #f8f9fa;
}
.student-filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    align-items: flex-end;
}
.student-list-container {
    max-height: 300px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
}
.student-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}
.student-item {
    padding: 8px 10px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}
.student-item input[type="checkbox"] {
    margin-right: 8px;
}
.student-item:hover {
    background-color: #e9f7fe;
}
.student-item.selected {
    background-color: #d4edda;
    border-color: #c3e6cb;
}
.student-count {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #7f8c8d;
}
/* Responsive improvements */
@media (max-width: 768px) {
    .specific-class-options {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }
    
    .student-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}