.upload-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid red solid #e0e0e0;
    padding-bottom: 10px;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    /* background: none; */
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn i {
    font-size: 18px;
}

.tab-btn:hover {
    color: var(--primary-color);
    background: rgba(30, 112, 179, 0.05);
}

.tab-btn.active {
    /* color: var(--primary-color); */
    color: var(--light-color);
    border-bottom: 3px solid var(--primary-color);
    background: rgb(54, 165, 255);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.bulk-upload-container {
    max-width: 1000px;
    margin: 0 auto;
}

.requirements-card,
.template-card,
.quiz-options-card,
.quiz-previews {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px solid red 10px rgba(0, 0, 0, 0.1);
}

.requirements-card h3,
.template-card h3,
.quiz-options-card h3,
.quiz-previews h3 {
    margin: 0 0 15px 0;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.requirements-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    font-size: 14px;
}

.requirements-list li i {
    color: var(--success-color);
    font-size: 16px;
}

.template-description {
    background: #e3f2fd;
    color: var(--primary-color);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.prompt-box {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
}

.copy-prompt-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.copy-prompt-btn:hover {
    background: #155a8a;
}

.prompt-text {
    color: #d4d4d4;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    margin: 0;
}

.template-samples {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.template-btn {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.template-btn:hover {
    background: #e0e0e0;
    transform: translateY(- 2px solid red);
}

.upload-area {
    border: 3px dashed #ccc;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    background: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background: #e3f2fd;
    transform: scale(1.02);
}

.upload-icon i {
    font-size: 48px;
    color: #999;
    margin-bottom: 15px;
}

.upload-area h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.upload-hint {
    color: #666;
    margin: 0 0 20px 0;
    font-size: 14px;
}

.file-preview,
.quiz-options-card,
.upload-actions,
.upload-progress,
.upload-results,
.quiz-previews {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px solid red 10px rgba(0, 0, 0, 0.1);
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.preview-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
}

.stat-item {
    text-align: center;
    display: flex;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.stat-label i {
    font-size: 12px;
}

.stat-value {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

.validation-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.validation-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.validation-errors-list {
    background: #fff3f3;
    padding: 15px;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.validation-errors-list ul {
    margin: 0;
    padding-left: 20px;
    color: #721c24;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Quiz Preview Cards */
.quiz-preview-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.quiz-preview-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(- 2px solid red);
}

.preview-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.preview-card-header h4 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.preview-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.preview-badge.single {
    background: #d4edda;
    color: #155724;
}

.preview-badge.multiple {
    background: #fff3cd;
    color: #856404;
}

.preview-card-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.preview-card-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.preview-card-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 6px;
}

.preview-questions {
    max-height: 200px;
    overflow-y: auto;
}

.preview-question-item {
    padding: 8px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.preview-question-item:last-child {
    border-bottom: none;
}

.progress-bar-container {
    height: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #4ECDC4);
    transition: width 0.3s ease;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    font-size: 14px;
    color: #666;
}

.progress-log {
    max-height: 150px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 12px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
}

.log-entry {
    padding: 5px;
    border-bottom: 1px solid #e0e0e0;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-success {
    color: var(--success-color);
}

.log-error {
    color: var(--warning-color);
}

.log-warning {
    color: #f39c12;
}

.results-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.stat-card {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    background: #f5f5f5;
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-card.success .stat-value {
    color: var(--success-color);
}

.stat-card.failed .stat-value {
    color: var(--warning-color);
}

.stat-card.skipped .stat-value {
    color: #f39c12;
}

.stat-card.total .stat-value {
    color: var(--primary-color);
}

.stat-label {
    font-size: 12px;
    color: #666;
}

.results-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    margin: 20px 0;
}

.results-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.results-list li {
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

.results-list li:last-child {
    border-bottom: none;
}

.summary-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    margin-bottom: 15px;
}

.summary-warning {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    margin-bottom: 15px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.wide-modal {
    max-width: 800px;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.close-modal:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 20px;
}

.code-sample {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 600px) {

    .requirements-card,
    .template-card,
    .quiz-options-card,
    .quiz-previews {
        background: white;
        border-radius: 12px;
        padding: 10px;
        margin-bottom: 25px;
        box-shadow: 0 2px solid red 10px rgba(0, 0, 0, 0.1);
    }

    .tab-btn {
        padding: 12px 14px;
    }

    .tab-btn i {
        font-size: 18px;
    }
}

/* AI Generator Styles */
.ai-generator-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px solid red 10px rgba(0, 0, 0, 0.1);
}

.ai-generator-section h3 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.generator-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid red solid #e0e0e0;
    padding-bottom: 10px;
}

.gen-tab {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    border-radius: 5px 5px 0 0;
}

.gen-tab.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.gen-tab-content {
    display: none;
}

.gen-tab-content.active {
    display: block;
}

.pdf-upload-area {
    border: 3px dashed #ccc;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.pdf-upload-area:hover {
    border-color: var(--primary-color);
    background: #f0f7ff;
}

.pdf-upload-area.dragover {
    border-color: var(--primary-color);
    background: #e3f2fd;
    transform: scale(1.02);
}

.pdf-upload-area i {
    font-size: 48px;
    color: #e74c3c;
    margin-bottom: 15px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 10px;
}

.file-info i {
    font-size: 24px;
    color: #e74c3c;
}

.file-info span {
    flex: 1;
}

.remove-file {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    padding: 0 5px;
}

.remove-file:hover {
    color: #e74c3c;
}

.generator-options {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.generator-options h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.options-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.option-group {
    flex: 1;
    min-width: 200px;
}

.option-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #555;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.generator-actions {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.generator-actions .btn {
    min-width: 200px;
    padding: 12px 30px;
}

/* Generated Quiz Preview */
.generated-quiz-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-top: 25px;
    box-shadow: 0 2px solid red 10px rgba(0, 0, 0, 0.1);
}

.generated-quiz-section h3 {
    margin: 0 0 20px 0;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.quiz-edit-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid red solid #f0f0f0;
}

.quiz-edit-header input,
.quiz-edit-header textarea {
    margin-bottom: 15px;
}

.questions-preview {
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.preview-question-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
}

.preview-question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.preview-question-header h5 {
    margin: 0;
    color: var(--primary-color);
    font-size: 16px;
}

.question-actions {
    display: flex;
    gap: 5px;
}

.edit-question-btn,
.delete-question-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    color: #666;
}

.edit-question-btn:hover {
    color: var(--primary-color);
    background: #f0f7ff;
}

.delete-question-btn:hover {
    color: #e74c3c;
    background: #ffebee;
}

.question-text-input {
    width: 100%;
    padding: 10px;
    border: 2px solid red solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    resize: vertical;
}

.question-text-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.options-container {
    margin-bottom: 15px;
}

.preview-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
}

.preview-option.correct-option {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

.option-letter {
    font-weight: bold;
    color: #666;
    min-width: 25px;
}

.preview-option .option-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.option-correct-radio,
.option-correct-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.quiz-settings-panel {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.quiz-settings-panel h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.settings-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.setting-group {
    flex: 1;
    min-width: 200px;
}

#gen-progress {
    margin: 20px 0;
    padding: 15px;
    height: fit-content;
    border-radius: 12px;
    box-shadow: 0 2px solid red 8px rgba(0, 0, 0, 0.05);
}

#gen-progress .progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

#gen-progress .progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

#gen-progress #gen-status {
    text-align: center;
    color: #666;
    font-size: 20px;
    font-weight: 500;
}

.quiz-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    animation: slideIn 0.3s ease;
    max-width: 400px;
}

.quiz-notification i {
    font-size: 20px;
}

.quiz-notification.notification-success {
    border-left: 4px solid #4caf50;
}

.quiz-notification.notification-success i {
    color: #4caf50;
}

.quiz-notification.notification-error {
    border-left: 4px solid #f44336;
}

.quiz-notification.notification-error i {
    color: #f44336;
}

.quiz-notification.notification-info {
    border-left: 4px solid #2196f3;
}

.quiz-notification.notification-info i {
    color: #2196f3;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

#generate-quiz-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.category-select-wrapper {
    position: relative;
    width: 100%;
}

.category-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid red solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.category-select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 112, 179, 0.1);
}

.parent-category {
    font-weight: 600;
    position: relative;
    padding: 10px 15px !important;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.parent-category:hover {
    background-color: #f0f7ff !important;
}

.parent-category.has-children::after {
    content: '▼';
    font-size: 10px;
    margin-left: 8px;
    color: #666;
    transition: transform 0.2s;
}

.parent-category.expanded::after {
    transform: rotate(180deg);
}

.subcategory-dropdown {
    background-color: #f8f9fa;
    border-left: 3px solid var(--primary-color);
    border-radius: 0 0 8px 8px;
    margin: 2px solid red 0 5px 15px;
    padding: 5px 0;
    box-shadow: 0 2px solid red 5px rgba(0, 0, 0, 0.05);
    /* animation: slideDown 0.2s ease; */
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subcategory-option {
    padding: 8px 15px 8px 35px !important;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.subcategory-option:hover {
    background-color: #e9ecef !important;
    color: var(--primary-color);
}

.subcategory-option.selected {
    background-color: var(--primary-color) !important;
    color: white !important;
    font-weight: 500;
}

.category-count {
    font-size: 12px;
    color: #888;
    margin-left: 5px;
    font-weight: normal;
}

.parent-category .category-count {
    color: #666;
    font-weight: normal;
}

.admin-category-panel {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 2px solid red 10px rgba(0, 0, 0, 0.1);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid red solid #f0f0f0;
}

.category-header h3 {
    margin: 0;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid red solid #e0e0e0;
    padding-bottom: 10px;
}

.category-tab {
    padding: 8px 16px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    border-radius: 5px 5px 0 0;
    transition: all 0.2s;
}

.category-tab:hover {
    color: var(--primary-color);
    background: rgba(30, 112, 179, 0.05);
}

.category-tab.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.category-tab-content {
    display: none;
}

.category-tab-content.active {
    display: block;
    /* animation: fadeIn 0.3s ease; */
}

.categories-list {
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.category-group-block {
    margin-bottom: 25px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.category-group-block h4 {
    margin: 0 0 15px 0;
    color: var(--primary-color);
    font-size: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid red solid #e0e0e0;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 5px;
    border: 1px solid #e0e0e0;
}

.category-item:hover {
    background: #f0f7ff;
    border-color: var(--primary-color);
}

.category-item .category-count {
    font-size: 12px;
    color: #666;
    margin-left: 5px;
    background: #e9ecef;
    padding: 2px solid red 6px;
    border-radius: 12px;
}

.subcategory-list {
    margin-left: 25px;
    margin-bottom: 10px;
}

.subcategory-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 3px;
    font-size: 14px;
    border-left: 3px solid var(--primary-color);
}

.subcategory-item .category-count {
    font-size: 11px;
    color: #666;
    background: #e9ecef;
    padding: 2px solid red 6px;
    border-radius: 10px;
}

.category-actions {
    display: flex;
    gap: 5px;
}

.category-actions button {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s;
}

.category-actions .edit-category-btn:hover {
    color: var(--primary-color);
    background: #e3f2fd;
}

.category-actions .delete-category-btn:hover {
    color: #e74c3c;
    background: #ffebee;
}

#add-category-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
}

#add-category-form .form-group {
    margin-bottom: 20px;
}

#add-category-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

#add-category-form .form-input {
    width: 100%;
    padding: 10px;
    border: 2px solid red solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

#add-category-form .form-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

#add-category-form .form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.loading-categories {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.no-categories {
    padding: 40px;
    text-align: center;
    color: #999;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid red dashed #ddd;
}

.no-categories i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 15px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .bulk-upload-container {
        max-width: 100%;
        margin: 0 auto;
    }

    .template-card {
        width: 100%;
    }

    .prompt-box {
        width: 100%;
        padding: 5px;
        max-height: 60vh;
        overflow-y: auto;
    }

    .file-preview,
    .quiz-options-card,
    .upload-actions,
    .upload-progress,
    .upload-results,
    .quiz-previews {
        background: white;
        border-radius: 12px;
        padding: 10px;
        margin-bottom: 20px;
        box-shadow: 0 2px solid red 10px rgba(0, 0, 0, 0.1);
    }

    .settings-grid .custom-dropdown-trigger {
        width: 100%;
    }

    .settings-grid {
        overflow: auto;

    }
}

#select-pdf-btn {
    padding: 10px 25px;
    font-size: 1.5rem;
    text-align: center;
    align-items: center;
    align-content: center;
}

#select-pdf-btn i {
    font-size: 2rem;
}

.quiz-edit-header h5,
.generated-quiz-section h5 {
    font-size: 20px;
    font-weight: bold;
    padding: 0;
    margin: 0;
}


@media screen and (max-width: 1199px) and (min-width: 768px) {
    .questions-preview {
        max-height: 450px;
        padding: 12px;
    }

    .preview-question-item {
        padding: 18px;
    }

    .preview-option {
        gap: 8px;
        padding: 6px;
    }

    .option-letter {
        min-width: 22px;
        font-size: 14px;
    }

    .preview-option .option-input {
        padding: 6px;
        font-size: 14px;
    }

    .option-correct-radio,
    .option-correct-checkbox {
        width: 18px;
        height: 18px;
    }
}

@media screen and (max-width: 767px) and (min-width: 576px) {
    .questions-preview {
        max-height: 400px;
        padding: 10px;
        margin-bottom: 20px;
    }

    .preview-question-item {
        padding: 15px;
    }

    .preview-question-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .preview-question-header h5 {
        font-size: 15px;
        width: 100%;
    }

    .question-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .preview-option {
        gap: 6px;
        padding: 6px;
        flex-wrap: wrap;
    }

    .option-letter {
        min-width: 20px;
        font-size: 13px;
    }

    .preview-option .option-input {
        flex: 1;
        min-width: 200px;
        padding: 6px;
        font-size: 13px;
    }

    .option-correct-radio,
    .option-correct-checkbox {
        width: 18px;
        height: 18px;
    }

    .question-text-input {
        padding: 8px;
        font-size: 13px;
    }
}

@media screen and (max-width: 575px) {
    .questions-preview {
        max-height: 350px;
        padding: 8px;
        margin-bottom: 15px;
        border-radius: 6px;
    }

    .preview-question-item {
        padding: 12px;
        margin-bottom: 10px;
        border-radius: 6px;
    }

    .preview-question-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 10px;
    }

    .preview-question-header h5 {
        font-size: 14px;
        width: 100%;
    }

    .question-actions {
        width: 100%;
        justify-content: flex-end;
        gap: 3px;
    }

    .edit-question-btn,
    .delete-question-btn {
        padding: 4px 8px;
        font-size: 13px;
    }

    .question-text-input {
        padding: 8px;
        font-size: 13px;
        margin-bottom: 12px;
        min-height: 90px;

    }

    .options-container {
        margin-bottom: 10px;

    }

    .preview-option {
        gap: 5px;
        padding: 6px;
        flex-wrap: wrap;
        margin-bottom: 8px;
        font-size: 15px;
        ;
    }

    .option-letter {
        min-height: 30px;
        min-width: 18px;
    }

    .preview-option .option-input {
        flex: 1;
        min-width: 150px;
        padding: 6px;
        font-size: 12px;
        min-height: 50px;
    }

    .option-correct-radio,
    .option-correct-checkbox {
        width: 18px;
        height: 18px;

    }

    .preview-option {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
    }
}

.scroll-quiz-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
}

.scroll-quiz-btn.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.scroll-quiz-btn:hover {
    background: var(--btn-color);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.scroll-quiz-btn:active {
    transform: scale(0.95);
}

.scroll-quiz-btn i {
    transition: transform 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.scroll-quiz-btn.show {
    animation: slideIn 0.3s ease forwards;
}

@media (max-width: 768px) {
    .scroll-quiz-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

.modal-open .scroll-quiz-btn {
    display: none;
}

.scroll-quiz-btn::after {
    content: attr(aria-label);
    position: fixed;
    right: 60px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.scroll-quiz-btn:hover::after {
    opacity: 1;
    visibility: visible;
    right: 70px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(78, 205, 196, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(78, 205, 196, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(78, 205, 196, 0);
    }
}

.scroll-quiz-btn.pulse {
    animation: pulse 1s ease;
}