/* ==========================================================
   STUDENT IMPORT – PAGE SPECIFIC
   ========================================================== */


/* ==========================================================
   SECTIONS
   ========================================================== */

.import-section {
    margin-bottom: 32px;
    padding: 20px 24px;

    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.import-section.hidden {
    display: none;
}


/* ==========================================================
   SECTION HEADER
   ========================================================== */

.section-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
}

.section-hint {
    margin: 0 0 16px;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.csv-hint {
    background: #f8f9fb;
    border-left: 4px solid #3f51b5;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.csv-hint h3 {
    margin-top: 0;
    font-size: 1rem;
}

.csv-columns {
    display: block;
    background: #fff;
    padding: 6px 8px;
    border: 1px solid #ddd;
    margin: 6px 0 10px;
    font-family: monospace;
    white-space: nowrap;
    overflow-x: auto;
}


/* ==========================================================
   FORM LAYOUT
   ========================================================== */

#studentImportForm {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: flex;
    flex-direction: column;
    max-width: 420px;
}

.form-row label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.form-row input[type="file"],
.form-row select {
    height: 34px;
    padding: 6px 10px;

    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;

    background: #ffffff;
    box-sizing: border-box;
}

.form-row input[type="file"] {
    padding: 4px;
}


/* ==========================================================
   ACTIONS
   ========================================================== */

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}



/* ==========================================================
   PREVIEW
   ========================================================== */

.import-summary {
    margin-bottom: 16px;
    font-size: 14px;
}

.import-preview-table {
    margin-bottom: 16px;
    overflow-x: auto;
}

.preview-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px 16px;
    margin-bottom: 10px;
}

.preview-hint {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #555;
}

.status {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.status-ok {
    background: #e6f4ea;
    color: #137333;
}

.status-error {
    background: #fce8e6;
    color: #a50e0e;
}

.preview-error-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.preview-error-table th,
.preview-error-table td {
    border: 1px solid #ddd;
    padding: 6px 8px;
    text-align: left;
}

.preview-error-table th {
    background: #f5f5f5;
}

.preview-success {
    padding: 10px;
    background: #e6f4ea;
    color: #137333;
    border-radius: 4px;
}

.preview-locked {
    opacity: 0.65;
    pointer-events: none;
}

.preview-locked::before {
    content: "✓ Preview completed";
    display: block;
    font-weight: 600;
    color: #2e7d32;
    margin-bottom: 8px;
}


/* ==========================================================
   RESULT
   ========================================================== */

.import-result-message {
    font-size: 14px;
    line-height: 1.5;
}