/* Modül: teacher/exams — Performans (LGS) premium yüzey */

.texam-view {
    --texam-ink: #0f172a;
    --texam-muted: #64748b;
    --texam-line: #e8edf3;
    --texam-surface: #ffffff;
    --texam-accent: #be123c;
    --texam-accent-2: #7c3aed;
    --texam-accent-soft: #fff1f2;
    --texam-shadow: 0 12px 40px rgba(15, 23, 42, 0.07);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1.5rem;
}

.texam-card {
    position: relative;
    border-radius: 1.35rem;
    border: 1px solid var(--texam-line);
    background: var(--texam-surface);
    box-shadow: var(--texam-shadow);
    overflow: hidden;
}

/* —— PDF yükleme —— */
.texam-upload {
    background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 48%, #831843 100%);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.texam-upload-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(255,255,255,0.14), transparent 42%),
        radial-gradient(circle at 88% 80%, rgba(244,63,94,0.25), transparent 40%);
    pointer-events: none;
}
.texam-upload-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.15rem 1.2rem 1.2rem;
    align-items: center;
}
@media (min-width: 860px) {
    .texam-upload-inner {
        grid-template-columns: 1.15fr minmax(16.5rem, 20.5rem);
        gap: 1.25rem;
    }
    #exams-view .texam-parse-status { grid-column: 1 / -1; }
}
.texam-upload-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.22);
    margin-bottom: 0.45rem;
}
.texam-upload-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.02em;
}
.texam-upload-desc {
    margin: 0.4rem 0 0;
    font-size: 0.72rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.82);
    max-width: 42rem;
}
.texam-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    min-height: 11.5rem;
    padding: 1rem 1rem 0.95rem;
    border-radius: 1.15rem;
    border: 1.5px dashed rgba(255, 255, 255, 0.42);
    background: rgba(15, 23, 42, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.texam-drop:hover,
.texam-drop.is-over {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}
.texam-drop.is-over { border-style: solid; }
.texam-drop-file {
    width: 3.6rem;
    height: 4.4rem;
    margin-bottom: 0.2rem;
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.28));
    transition: transform 0.18s ease;
}
.texam-drop-file svg { width: 100%; height: 100%; display: block; }
.texam-drop.is-over .texam-drop-file { transform: translateY(-4px) scale(1.04); }
.texam-drop-title {
    font-size: 0.78rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.01em;
}
.texam-drop-sub {
    font-size: 0.62rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
}
.texam-drop-name {
    display: none;
    max-width: 100%;
    margin-top: 0.15rem;
    font-size: 0.62rem;
    font-weight: 800;
    color: #bbf7d0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.texam-drop-name.is-on { display: block; }
.texam-drop-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.45rem;
    padding: 0.42rem 0.78rem;
    border-radius: 999px;
    background: #fff;
    color: #4c1d95;
    font-size: 0.68rem;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
#exams-view .texam-file-input,
#exams-view #karne-pdf-input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}
.texam-parse-status {
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    text-align: center;
}
.texam-parse-status.hidden { display: none !important; }

/* —— Manuel giriş —— */
.texam-entry { padding: 1rem 1.05rem 1.1rem; }
.texam-section-head { margin-bottom: 0.85rem; }
.texam-section-head h3,
.texam-folders-head h3 {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 900;
    color: var(--texam-ink);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.texam-section-head h3 i,
.texam-folders-head h3 i { color: var(--texam-accent); font-size: 0.85rem; }
.texam-section-head p,
.texam-folders-head p {
    margin: 0.25rem 0 0;
    font-size: 0.68rem;
    color: var(--texam-muted);
    font-weight: 600;
}

.texam-entry-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}
@media (min-width: 900px) {
    .texam-entry-grid { grid-template-columns: 1fr 1.15fr; gap: 1rem; }
}
.texam-entry-col {
    padding: 0.85rem 0.9rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, #f8fafc, #fff);
    border: 1px solid #eef2f6;
}
.texam-entry-col.texam-nets {
    background: linear-gradient(180deg, #fff7ed 0%, #fff 55%);
    border-color: #ffedd5;
}
.texam-col-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--texam-muted);
    margin-bottom: 0.65rem;
}
.texam-col-label i { color: #0d9488; }

.texam-field { margin-bottom: 0.55rem; }
.texam-field:last-child { margin-bottom: 0; }
.texam-field label,
.texam-net-field label {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    color: #475569;
    margin-bottom: 0.28rem;
}
.texam-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
.texam-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.62rem 0.72rem;
    border-radius: 0.8rem;
    border: 1px solid #dbe3ec;
    background: #fff;
    color: var(--texam-ink);
    font-size: 0.78rem;
    font-weight: 600;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.texam-input:focus {
    outline: none;
    border-color: #f43f5e;
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.12);
}
.texam-select { cursor: pointer; }

.texam-nets-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}
@media (min-width: 520px) {
    .texam-nets-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.texam-net-field {
    position: relative;
    padding: 0.45rem 0.5rem 0.5rem;
    border-radius: 0.8rem;
    background: #fff;
    border: 1px solid #f1f5f9;
}
.texam-net-field::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45rem;
    bottom: 0.45rem;
    width: 3px;
    border-radius: 999px;
    background: #cbd5e1;
}
.texam-net-field.is-turkce::before { background: #e11d48; }
.texam-net-field.is-matematik::before { background: #0284c7; }
.texam-net-field.is-fen::before { background: #059669; }
.texam-net-field.is-inkilap::before { background: #d97706; }
.texam-net-field.is-din::before { background: #7c3aed; }
.texam-net-field.is-ingilizce::before { background: #0d9488; }
.texam-net-input {
    padding: 0.48rem 0.55rem;
    font-size: 0.76rem;
    text-align: center;
    font-weight: 800;
}

.texam-save-btn {
    width: 100%;
    margin-top: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.78rem 1rem;
    border: 0;
    border-radius: 0.95rem;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(13, 148, 136, 0.28);
    transition: filter 0.12s ease, transform 0.12s ease;
}
.texam-save-btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

/* —— Klasörler —— */
.texam-folders { padding: 1rem 1.05rem 1.1rem; }
.texam-folders-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}
.texam-folders-count {
    font-size: 0.62rem;
    font-weight: 900;
    color: var(--texam-muted);
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}
.texam-folders-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
}
@media (min-width: 640px) {
    .texam-folders-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
    .texam-folders-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.texam-folder,
.exam-folder-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.9rem 0.95rem;
    border-radius: 1.1rem;
    border: 1px solid #e8edf3;
    background: linear-gradient(165deg, #fff 0%, #f8fafc 100%);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
    transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}
.texam-folder:hover,
.exam-folder-card:hover {
    transform: translateY(-2px);
    border-color: #fecdd3;
    box-shadow: 0 14px 32px rgba(190, 18, 60, 0.1);
}
.texam-folder-top,
.exam-folder-card > .flex {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
}
.texam-folder-icon,
.exam-folder-card-icon {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, #fff1f2, #ffe4e6);
    color: #be123c;
    font-size: 1rem;
    box-shadow: inset 0 0 0 1px rgba(190, 18, 60, 0.12);
}
.texam-folder-title,
.exam-folder-card-title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 900;
    color: var(--texam-ink);
    line-height: 1.35;
    word-break: break-word;
}
.texam-folder-meta,
.exam-folder-card-meta {
    margin: 0.2rem 0 0;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--texam-muted);
}
.texam-folder-meta strong,
.exam-folder-card-meta strong { color: #334155; }
.texam-folder-cta,
.exam-folder-card-cta {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.8rem;
    border: 1px solid #fecdd3;
    background: linear-gradient(135deg, #fff1f2, #fff);
    color: #9f1239;
    font-size: 0.68rem;
    font-weight: 900;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}
.texam-folder-cta:hover,
.exam-folder-card-cta:hover {
    background: linear-gradient(135deg, #be123c, #e11d48);
    color: #fff;
    border-color: transparent;
}

.texam-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2.5rem 1.25rem;
    border-radius: 1.1rem;
    border: 1px dashed #cbd5e1;
    background: linear-gradient(180deg, #f8fafc, #fff);
}
.texam-empty i {
    font-size: 1.75rem;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}
.texam-empty p {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    color: #64748b;
}
.texam-empty p + p {
    margin-top: 0.25rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: #94a3b8;
}

/* Hero uyumu */
#teacher-panel.teacher-shell-v2 .tsh-module-hero.is-exams {
    border-left: 4px solid #be123c;
    background: linear-gradient(135deg, #fff 0%, #fff1f2 100%);
}

.texam-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 0.85rem;
}
.texam-filter-chip {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.texam-filter-chip:hover { border-color: #fda4af; color: #9f1239; }
.texam-filter-chip.is-on {
    background: linear-gradient(135deg, #be123c, #e11d48);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 16px rgba(190, 18, 60, 0.22);
}

.texam-folder-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.15rem;
}
.texam-folder-stat {
    font-size: 0.62rem;
    font-weight: 800;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e8edf3;
    border-radius: 999px;
    padding: 0.18rem 0.5rem;
}
.texam-folder-grades {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.35rem;
}
.texam-gchip {
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: #0f766e;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
    padding: 0.12rem 0.42rem;
}

.texam-review-panel {
    border-radius: 1.35rem;
    border: 1px solid #e8edf3;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
    background: #fff;
}
.texam-review-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.15rem 0.9rem;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(180deg, #fff7ed 0%, #fff 70%);
    flex-shrink: 0;
}
.texam-review-kicker {
    margin: 0;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #be123c;
}
.texam-review-title {
    margin: 0.15rem 0 0;
    font-size: 1.05rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.texam-review-sub {
    margin: 0.28rem 0 0;
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
}
.texam-review-close {
    width: 2.2rem;
    height: 2.2rem;
    border: 0;
    border-radius: 0.75rem;
    background: #f1f5f9;
    color: #475569;
    cursor: pointer;
    flex-shrink: 0;
}
.texam-review-close:hover { background: #e2e8f0; color: #0f172a; }
.texam-review-body { padding: 0.85rem 1.05rem 1.1rem; }

.texam-review-kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.7rem;
}
@media (min-width: 720px) {
    .texam-review-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.texam-kpi {
    padding: 0.7rem 0.75rem;
    border-radius: 0.95rem;
    border: 1px solid #e8edf3;
    background: linear-gradient(180deg, #f8fafc, #fff);
}
.texam-kpi .lbl {
    display: block;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.2rem;
}
.texam-kpi .val {
    font-size: 1.05rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.texam-kpi .hint {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.62rem;
    font-weight: 700;
    color: #94a3b8;
}

.texam-review-bands {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}
.texam-band-track {
    display: flex;
    height: 0.55rem;
    border-radius: 999px;
    overflow: hidden;
    background: #f1f5f9;
}
.texam-band-track > span { display: block; height: 100%; }
.texam-band-track .is-strong { background: #059669; }
.texam-band-track .is-mid { background: #d97706; }
.texam-band-track .is-risk { background: #e11d48; }
.texam-band-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.85rem;
    font-size: 0.65rem;
    font-weight: 800;
    color: #475569;
}
.texam-band-legend i { margin-right: 0.28rem; }
.texam-band-legend .is-strong { color: #047857; }
.texam-band-legend .is-mid { color: #b45309; }
.texam-band-legend .is-risk { color: #be123c; }

.texam-review-nets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}
.texam-review-nets:empty { display: none; }
.texam-netavg {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.55rem;
    border-radius: 0.7rem;
    border: 1px solid #e8edf3;
    background: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    color: #334155;
}
.texam-netavg em {
    font-style: normal;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.texam-review-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin: 0.15rem 0 0.65rem;
}
.texam-review-tool-lbl {
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-right: 0.1rem;
}
.texam-review-tool-gap { flex: 1 1 0.5rem; min-width: 0.5rem; }
.texam-review-chip {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.32rem 0.62rem;
    border-radius: 999px;
    cursor: pointer;
}
.texam-review-chip.is-on {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

.texam-review-table-wrap {
    border: 1px solid #e8edf3;
    border-radius: 1rem;
    overflow: auto;
    background: #fff;
}
.texam-review-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
    text-align: left;
}
.texam-review-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.65rem 0.55rem;
    border-bottom: 1px solid #e8edf3;
    white-space: nowrap;
}
.texam-review-table td {
    padding: 0.7rem 0.55rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.texam-review-table tr:last-child td { border-bottom: 0; }
.texam-review-table tr:hover td { background: #fff7ed; }
.texam-rank {
    font-weight: 900;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
}
.texam-stu { min-width: 8.5rem; }
.texam-stu strong {
    display: block;
    font-size: 0.78rem;
    font-weight: 900;
    color: #0f172a;
}
.texam-stu span {
    font-size: 0.62rem;
    font-weight: 700;
    color: #94a3b8;
}
.texam-score {
    font-weight: 900;
    color: #be123c;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.texam-ratio {
    font-weight: 800;
    color: #0f766e;
    white-space: nowrap;
}
.texam-status {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 900;
    white-space: nowrap;
}
.texam-status.is-strong { background: #ecfdf5; color: #047857; }
.texam-status.is-mid { background: #fff7ed; color: #c2410c; }
.texam-status.is-risk { background: #fff1f2; color: #be123c; }
.texam-minnets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.22rem;
    max-width: 14rem;
}
.texam-minnet {
    font-size: 0.58rem;
    font-weight: 800;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e8edf3;
    border-radius: 0.4rem;
    padding: 0.1rem 0.32rem;
    font-variant-numeric: tabular-nums;
}
.texam-minnet.is-weak { background: #fff1f2; border-color: #fecdd3; color: #9f1239; }
.texam-karne-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    padding: 0.38rem 0.62rem;
    border-radius: 0.7rem;
    border: 1px solid #fecdd3;
    background: #fff1f2;
    color: #9f1239;
    font-size: 0.62rem;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}
.texam-karne-btn:hover { background: #be123c; color: #fff; border-color: transparent; }
.texam-del-btn {
    border: 0;
    background: transparent;
    color: #fb7185;
    cursor: pointer;
    padding: 0.35rem;
}
.texam-del-btn:hover { color: #e11d48; }
.texam-weak-note {
    display: block;
    margin-top: 0.18rem;
    font-size: 0.58rem;
    font-weight: 700;
    color: #be123c;
}
.texam-help-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    margin-top: 0.28rem;
    padding: 0.28rem 0.5rem;
    border-radius: 0.55rem;
    border: 1px solid #a7f3d0;
    background: #ecfdf5;
    color: #047857;
    font-size: 0.58rem;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}
.texam-help-btn:hover { background: #0f766e; color: #fff; border-color: transparent; }
.texam-karne-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; }
@media (max-width: 760px) {
    .texam-review-table th:nth-child(6),
    .texam-review-table td:nth-child(6) { display: none; }
}
