/* Submit Exam Papers - Additional Styles */

/* Upload Zone */
#submit-exam-papers {
    padding: 20px;
}

.exam-upload-container {
    max-width: 900px;
    margin: 0 auto;
}

.upload-zone {
    border: 3px dashed #cbd5e1;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.upload-zone:hover {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
}

.upload-zone.drag-over {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    transform: scale(1.02);
}

.upload-zone-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.upload-zone-text h3 {
    margin: 10px 0 5px;
    color: #1e293b;
    font-size: 18px;
}

.upload-zone-text p {
    color: #64748b;
    margin: 5px 0;
    font-size: 14px;
}

.upload-zone-hint {
    color: #94a3b8;
    font-size: 12px;
    margin-top: 10px;
}

#exam-paper-file,
#camera-input {
    display: none;
}

/* Form Section */
.exam-info-form {
    background: #f8fafc;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
}

.exam-info-form h3 {
    margin: 0 0 20px 0;
    color: #1e293b;
    font-size: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* File List */
.file-list {
    margin: 20px 0;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 8px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.file-icon {
    font-size: 24px;
}

.file-info > div {
    text-align: left;
}

.file-name {
    margin: 0;
    font-weight: 500;
    color: #1e293b;
    word-break: break-all;
}

.file-size {
    margin: 4px 0 0 0;
    font-size: 12px;
    color: #94a3b8;
}

.remove-file {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.remove-file:hover {
    background: #fecaca;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

#submit-btn,
.browse-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

#submit-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    flex: 1;
    min-width: 200px;
}

#submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

#submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.browse-btn {
    background: #f1f5f9;
    color: #1e293b;
    border: 2px solid #cbd5e1;
}

.browse-btn:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.camera-btn {
    background: #10b981;
    color: white;
    padding: 10px 16px;
}

.camera-btn:hover {
    background: #059669;
}

/* Status Messages */
.upload-status {
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    display: none;
}

.upload-status.success {
    display: block;
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

.upload-status.error {
    display: block;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.upload-status p {
    margin: 5px 0;
    font-size: 14px;
}

/* Submissions List */
.submissions-section {
    margin-top: 40px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
}

.submissions-section h3 {
    margin: 0 0 20px 0;
    color: #1e293b;
}

.submissions-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.submission-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s;
}

.submission-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.submission-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}

.submission-header h4 {
    margin: 0;
    color: #1e293b;
    font-size: 15px;
}

.submission-date {
    font-size: 12px;
    color: #94a3b8;
}

.submission-details {
    font-size: 13px;
    color: #475569;
    margin-bottom: 12px;
}

.submission-details p {
    margin: 6px 0;
}

.submission-score {
    background: #fef3c7;
    padding: 10px;
    border-radius: 6px;
    margin: 10px 0 0 0;
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
}

.submission-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    min-width: 100px;
}

.view-btn {
    background: #dbeafe;
    color: #1e40af;
}

.view-btn:hover {
    background: #bfdbfe;
}

.evaluate-btn {
    background: #c7d2fe;
    color: #3730a3;
}

.evaluate-btn:hover {
    background: #a5b4fc;
}

.download-btn {
    background: #fce7f3;
    color: #be185d;
}

.download-btn:hover {
    background: #fbcfe8;
}

.status-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    width: 100%;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.no-submissions {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}

/* Evaluation Modal */
.evaluation-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.evaluation-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-height: 90vh;
    overflow-y: auto;
    max-width: 800px;
    width: 100%;
    position: relative;
}

.evaluation-content h2 {
    margin: 0 0 25px 0;
    color: #1e293b;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #1e293b;
}

.evaluation-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.score-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.score-box h3 {
    margin: 0 0 5px 0;
    font-size: 32px;
    color: #0369a1;
}

.score-box p {
    margin: 0;
    font-size: 12px;
    color: #0c4a6e;
    font-weight: 600;
}

.evaluation-details,
.overall-suggestions {
    margin-bottom: 25px;
}

.evaluation-details h3,
.overall-suggestions h3 {
    color: #1e293b;
    margin: 0 0 15px 0;
}

.question-eval {
    background: #f8fafc;
    padding: 15px;
    border-left: 4px solid #3b82f6;
    border-radius: 6px;
    margin-bottom: 12px;
}

.question-eval h4 {
    margin: 0 0 10px 0;
    color: #1e293b;
}

.question-eval p {
    margin: 5px 0;
    font-size: 13px;
    color: #475569;
}

.overall-suggestions {
    background: #fef3c7;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #f59e0b;
}

.overall-suggestions p {
    margin: 0;
    color: #78350f;
    line-height: 1.6;
}

.evaluation-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

.evaluation-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.evaluation-actions button {
    background: #e2e8f0;
    color: #1e293b;
}

.evaluation-actions button:hover {
    background: #cbd5e1;
}

/* Responsive */
@media (max-width: 768px) {
    .upload-zone {
        padding: 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    #submit-btn {
        min-width: 100%;
    }

    .submissions-list {
        grid-template-columns: 1fr;
    }

    .evaluation-summary {
        grid-template-columns: 1fr;
    }

    .submission-header {
        flex-direction: column;
        gap: 5px;
    }

    .submission-actions {
        flex-direction: column;
    }

    .action-btn {
        min-width: 100%;
    }
}
