/* Nakijken — AI Grading Skill Styles */

/* Upload Card */
.nakijken-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin: 12px 0;
    max-width: 680px;
}

.nakijken-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.1rem;
    color: #1a202c;
}

.nakijken-card__header-icon {
    width: 28px;
    height: 28px;
    background: #f56a00;
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Upload Zones Grid */
.nakijken-zones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.nakijken-zone {
    border: 2px dashed #cbd5e0;
    border-radius: 10px;
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nakijken-zone:hover,
.nakijken-zone--dragover {
    border-color: #f56a00;
    background: #fff7ed;
}

.nakijken-zone--filled {
    border-color: #48bb78;
    border-style: solid;
    background: #f0fff4;
}

.nakijken-zone--full-width {
    grid-column: 1 / -1;
}

.nakijken-zone__icon {
    font-size: 24px;
    color: #a0aec0;
}

.nakijken-zone--filled .nakijken-zone__icon {
    color: #48bb78;
}

.nakijken-zone__label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #2d3748;
}

.nakijken-zone__hint {
    font-size: 0.78rem;
    color: #a0aec0;
}

.nakijken-zone__badge {
    font-size: 0.7rem;
    color: #718096;
    background: #edf2f7;
    padding: 2px 8px;
    border-radius: 10px;
}

.nakijken-zone input[type="file"] {
    display: none;
}

/* File List inside zone */
.nakijken-files {
    width: 100%;
    margin-top: 8px;
}

.nakijken-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 10px;
    margin-top: 6px;
    font-size: 0.8rem;
}

.nakijken-file__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
    color: #2d3748;
}

.nakijken-file__remove {
    background: none;
    border: none;
    color: #e53e3e;
    cursor: pointer;
    font-size: 1rem;
    padding: 0 4px;
    line-height: 1;
}

/* Extra Instructions */
.nakijken-instructions {
    margin-bottom: 16px;
}

.nakijken-instructions textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.85rem;
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
    color: #2d3748;
}

.nakijken-instructions textarea:focus {
    outline: none;
    border-color: #f56a00;
    box-shadow: 0 0 0 2px rgba(245, 106, 0, 0.15);
}

.nakijken-instructions label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 6px;
}

/* Start Button */
.nakijken-start {
    background: #f56a00;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.nakijken-start:hover {
    background: #dd6b20;
}

.nakijken-start:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
}

/* Progress */
.nakijken-progress {
    margin: 16px 0;
    padding: 16px;
    background: #f7fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.nakijken-progress__bar {
    height: 6px;
    background: #edf2f7;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.nakijken-progress__fill {
    height: 100%;
    background: #f56a00;
    border-radius: 3px;
    transition: width 0.4s ease;
    width: 0%;
}

.nakijken-progress__status {
    font-size: 0.85rem;
    color: #4a5568;
}

/* Results */
.nakijken-results {
    margin: 12px 0;
    max-width: 680px;
}

.nakijken-results__header {
    background: linear-gradient(135deg, #f56a00, #dd6b20);
    color: #fff;
    padding: 16px 20px;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
    font-size: 1rem;
}

/* Per-student result card */
.nakijken-student {
    border: 1px solid #e2e8f0;
    border-top: none;
    padding: 16px 20px;
    background: #fff;
}

.nakijken-student:last-of-type {
    border-radius: 0 0 12px 12px;
}

.nakijken-student__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
}

.nakijken-student__name {
    font-weight: 600;
    color: #2d3748;
}

.nakijken-student__score {
    font-weight: 700;
    font-size: 1.1rem;
    padding: 4px 12px;
    border-radius: 20px;
    min-width: 48px;
    text-align: center;
}

.nakijken-student__score--high {
    background: #c6f6d5;
    color: #276749;
}

.nakijken-student__score--mid {
    background: #fefcbf;
    color: #975a16;
}

.nakijken-student__score--low {
    background: #fed7d7;
    color: #9b2c2c;
}

.nakijken-student__detail {
    display: none;
    margin-top: 10px;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #4a5568;
}

.nakijken-student__detail--open {
    display: block;
}

.nakijken-student__detail p {
    margin: 4px 0;
}

/* Class overview */
.nakijken-overview {
    border: 1px solid #e2e8f0;
    border-top: 2px solid #f56a00;
    padding: 20px;
    background: #fffaf0;
    border-radius: 0 0 12px 12px;
    margin-top: -1px;
}

.nakijken-overview__title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #2d3748;
    margin-bottom: 12px;
}

.nakijken-overview__stats {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.nakijken-overview__stat {
    text-align: center;
}

.nakijken-overview__stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f56a00;
}

.nakijken-overview__stat-label {
    font-size: 0.75rem;
    color: #718096;
}

.nakijken-overview__errors {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #4a5568;
}

/* Actions */
.nakijken-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.nakijken-actions button {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #2d3748;
    transition: background 0.2s;
}

.nakijken-actions button:hover {
    background: #f7fafc;
}

.nakijken-actions .nakijken-actions__primary {
    background: #f56a00;
    color: #fff;
    border-color: #f56a00;
}

.nakijken-actions .nakijken-actions__primary:hover {
    background: #dd6b20;
}

/* Responsive */
@media (max-width: 600px) {
    .nakijken-zones {
        grid-template-columns: 1fr;
    }

    .nakijken-card {
        padding: 16px;
    }

    .nakijken-overview__stats {
        flex-direction: column;
        gap: 8px;
    }
}
