/* اجتماعی امتحانات — «میرے اندراجات» (exam-list.js) and the edit banner.
   Loaded after exam-registration.css on the same template. Every rule
   that gives a state-toggled element `display: X` has its own
   `[hidden] { display: none; }` guard, as in admission.css. */

/* Tabs */
.exam-tabs {
    display: flex;
    margin-bottom: var(--space-5);
    border-bottom: 1.5px solid var(--outline-variant);
}
.exam-tabs[hidden] { display: none; }
.exam-tab {
    flex: 1;
    min-height: 44px;
    padding: var(--space-2) var(--space-3);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -1.5px;
    color: var(--text-light);
    font: inherit;
    font-size: var(--text-md);
    cursor: pointer;
}
.exam-tab.is-active { color: var(--primary); border-bottom-color: var(--primary); font-weight: var(--font-weight-semibold); }

/* Edit banner (inside the form view) */
.exam-edit-banner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-3);
    margin-bottom: var(--space-5);
    background: var(--gold-light);
    border: 1.5px solid var(--gold);
    color: var(--on-gold-container, #2B1700);
}
.exam-edit-banner[hidden] { display: none; }
.exam-edit-banner strong { flex: 1; min-width: 0; overflow-wrap: anywhere; }

/* List */
.exam-list-head { margin-bottom: var(--space-4); }
.exam-list-head h3 { margin-bottom: var(--space-2); }
.exam-list-counts { margin: 0; font-size: var(--text-sm); color: var(--text-light); }

.exam-list-message {
    margin-bottom: var(--space-4);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    background: var(--md-success-container);
    color: var(--md-success);
    overflow-wrap: anywhere;
}
.exam-list-message--error { background: var(--md-error-container); color: var(--md-error); }

.exam-list-empty { padding-block: var(--space-8); text-align: center; color: var(--text-light); }

.exam-list-rows { display: flex; flex-direction: column; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.exam-list-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.exam-list-thumb {
    width: 56px; height: 56px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--surface-container-high);
}
.exam-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.exam-list-thumb-ph { font-size: var(--text-lg); color: var(--text-light); }

.exam-list-info { flex: 1; min-width: 0; }
.exam-list-name { margin: 0 0 var(--space-1); font-weight: var(--font-weight-semibold); overflow-wrap: anywhere; }
.exam-list-meta { margin: 0; font-size: var(--text-xs); color: var(--text-light); overflow-wrap: anywhere; }

.exam-list-actions { display: flex; flex-direction: column; gap: var(--space-2); flex-shrink: 0; }
.exam-list-btn {
    min-height: 40px;
    padding: 0 var(--space-4);
    background: none;
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-full);
    color: var(--primary);
    font: inherit;
    font-size: var(--text-sm);
    cursor: pointer;
}
.exam-list-btn--danger { border-color: var(--danger); color: var(--danger); }
.exam-list-btn:disabled { opacity: 0.5; cursor: default; }

/* Delete dialog: same overlay as the submit confirm (exam-registration.css) */
.exam-confirm-actions .exam-btn-danger { background: var(--danger); border-color: var(--danger); color: #FFFFFF; }
