:root {
    color-scheme: light;

    /* --- Sneat tasarim dili (referans sablondan olculerek alindi) --- */
    --sn-primary: #696cff;
    --sn-primary-dark: #5f61e6;
    --sn-primary-label: #e7e7ff;
    --sn-success: #71dd37;
    --sn-success-label: #e8fadf;
    --sn-danger: #ff3e1d;
    --sn-danger-label: #ffe0db;
    --sn-warning: #ffab00;
    --sn-warning-label: #fff2d6;
    --sn-info: #03c3ec;
    --sn-info-label: #d7f5fc;

    --sn-bg: #f5f5f9;
    --sn-card: #ffffff;
    --sn-heading: #384551;
    --sn-body: #646e78;
    --sn-muted: #8592a3;
    --sn-line: #e4e6e8;
    --sn-hover: #f5f5f9;

    --sn-radius: 6px;
    --sn-radius-sm: 4px;
    --sn-shadow: 0 3px 8px 0 rgba(34, 48, 62, .1);

    /* --- Sertifika vurgusu icin kurumsal altin korunuyor --- */
    --cu-gold: #c9a227;
    --cu-gold-light: #e0c266;

    /* --- Anlamsal takma adlar: mevcut kurallar bunlari kullaniyor --- */
    --bg: var(--sn-bg);
    --panel: var(--sn-card);
    --panel-alt: #fafafc;
    --text: var(--sn-heading);
    --muted: var(--sn-body);
    --line: var(--sn-line);

    --primary: var(--sn-primary);
    --primary-dark: var(--sn-primary-dark);
    --accent: var(--cu-gold);
    --danger: var(--sn-danger);
    --success: var(--sn-success);

    --radius: var(--sn-radius);
    --radius-sm: var(--sn-radius-sm);
    --radius-lg: 8px;

    --shadow-sm: 0 2px 4px 0 rgba(34, 48, 62, .06);
    --shadow: var(--sn-shadow);
    --shadow-lg: 0 5px 14px 0 rgba(34, 48, 62, .14);
    --ring: 0 0 0 3px rgba(105, 108, 255, .25);

    /* Eski kurumsal adlar: kalan kullanimlar kirilmasin diye yeniden baglandi */
    --cu-azure: var(--sn-primary);
    --cu-azure-light: #8f91ff;
    --cu-azure-dark: var(--sn-primary-dark);
    --cu-azure-deep: #4b4dc4;
    --cu-navy: #43459e;
    --cu-navy-soft: #4f51cc;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'ss01';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 13px;
    line-height: 1.45;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 228px;
    flex-shrink: 0;
    background: linear-gradient(185deg, #3a3c9e 0%, #0f172a 100%);
    color: #e2e8f0;
    padding: 18px 14px;
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
    overflow-y: auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 16px;
    margin: 4px 8px 26px;
    color: #fff;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #696cff, #5a5dd8);
    color: #fff;
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.45);
}

.brand-mark svg {
    width: 22px;
    height: 22px;
}

.brand-text {
    line-height: 1.25;
}

.nav {
    display: grid;
    gap: 3px;
}

.nav-group {
    margin: 18px 12px 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8592a3;
}

.nav-group:first-child {
    margin-top: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 11px;
    border-radius: 9px;
    color: #c4ccdd;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.nav-ico {
    display: inline-grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--ico);
    flex-shrink: 0;
    transition: background 0.15s;
}

.nav-ico svg {
    width: 16px;
    height: 16px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.nav-link.is-active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 600;
}

.nav-link.is-active .nav-ico {
    background: var(--ico);
    color: #fff;
}

.main {
    flex: 1;
    min-width: 0;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 13px 22px;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 5;
}

.topbar h1 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}

.topbar p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.avatar {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #696cff, #5a5dd8);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
}

.content {
    padding: 20px;
}

.panel,
.course-card,
.login-panel,
.stat {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.panel {
    padding: 18px;
}

.panel h2,
.course-card h2 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
}

.grid {
    display: grid;
    gap: 16px;
}

.stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 22px;
}

.stat {
    padding: 18px;
}

.stat span {
    display: block;
    color: var(--muted);
    margin-bottom: 10px;
}

.stat strong {
    font-size: 30px;
}

.module-grid,
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.module-grid a {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fafc;
    font-weight: 600;
    transition: border-color 0.15s, background 0.15s;
}

.module-grid a:hover {
    border-color: var(--primary);
    background: #f7f7ff;
}

.split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
}

.form-panel {
    display: grid;
    gap: 12px;
}

.stack {
    display: grid;
    gap: 16px;
}

.section-title {
    margin-top: 28px !important;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 11px;
    font-weight: 500;
    padding: 13px 15px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.check-row:hover { border-color: #dcdcff; background: #fafbff; }
.check-row input { flex-shrink: 0; accent-color: var(--primary); width: 18px; height: 18px; }
.check-row:has(input:checked) {
    border-color: var(--primary);
    background: color-mix(in srgb, var(--primary) 7%, #fff);
    box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}

.exam-panel {
    max-width: 760px;
}

.exam-questions {
    display: grid;
    gap: 16px;
    margin: 18px 0;
}

.question-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 20px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.question-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 6px;
}
.question-head strong { font-size: 14px; }
.question-card > p { font-size: 15px; font-weight: 600; margin: 4px 0 14px; line-height: 1.5; }

.answer-list {
    display: grid;
    gap: 10px;
}

/* sinav sonucu: secili sik ve dogru sik isaretleme */
.question-card.is-correct { border-color: #bbf7d0; }
.question-card.is-wrong { border-color: #fecaca; }
.check-row.is-answer-correct {
    border-color: #8ee75c !important;
    background: #ecfdf5 !important;
    box-shadow: none !important;
    font-weight: 600;
}
.check-row.is-answer-wrong {
    border-color: #f87171 !important;
    background: #fef2f2 !important;
    box-shadow: none !important;
    font-weight: 600;
}
.check-row .opt-tag {
    margin-left: auto;
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 999px;
    flex-shrink: 0;
}
.check-row.is-answer-correct .opt-tag { background: #d1fae5; color: #047857; }
.check-row.is-answer-wrong .opt-tag { background: #fee2e2; color: #b91c1c; }

.answer-feedback {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    display: grid;
    gap: 5px;
    font-size: 13.5px;
}

.answer-feedback.ok { background: #ecfdf5; color: #047857; border: 1px solid #e8fadf; }
.answer-feedback.bad { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.answer-feedback strong { font-weight: 700; }

.feedback-correct { color: #047857; font-weight: 600; }
.feedback-explanation { color: var(--text); line-height: 1.6; }

/* sinav sayaci: sabit genislik -> titreme yok */
#examTimer {
    font-variant-numeric: tabular-nums;
    min-width: 64px;
    text-align: center;
    padding: 7px 12px;
    border-radius: 10px;
    background: #e7e7ff;
    color: var(--primary-dark);
    font-size: 15px;
    flex-shrink: 0;
}

.builder-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.builder-header h2 {
    margin: 6px 0 8px;
    font-size: 26px;
}

.builder-header p {
    margin: 0;
    color: var(--muted);
}

.builder-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    color: var(--muted);
}

.muted-link {
    color: var(--primary);
    font-weight: 700;
}

.builder-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.builder-steps .step {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 15px 8px 9px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    box-shadow: var(--shadow);
    transition: all 0.2s;
}

.builder-steps .step-num {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #eef1f7;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.builder-steps .step.done {
    color: #15803d;
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.builder-steps .step.done .step-num {
    background: #71dd37;
    color: #fff;
}

.builder-steps .step.active {
    color: var(--primary);
    border-color: var(--primary);
}

.builder-steps .step.active .step-num {
    background: var(--primary);
    color: #fff;
    animation: pulseRing 1.6s infinite;
}

@keyframes pulseRing {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.45); }
    70% { box-shadow: 0 0 0 7px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

/* course stage mini indicator */
.stage {
    display: inline-flex;
    gap: 4px;
}

.stage-dot {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #eef1f7;
    color: #94a3b8;
    font-size: 10.5px;
    font-weight: 700;
    cursor: default;
}

.stage-dot.done {
    background: #71dd37;
    color: #fff;
}

/* shared page header */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.page-header-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.page-icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    flex-shrink: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--pi, var(--primary)), color-mix(in srgb, var(--pi, var(--primary)) 58%, #fff));
    box-shadow: 0 8px 18px color-mix(in srgb, var(--pi, var(--primary)) 38%, transparent);
}

.page-icon svg {
    width: 23px;
    height: 23px;
}

.page-header {
    margin-bottom: 16px;
}

.page-header h1 {
    margin: 1px 0 3px;
    font-size: 18px;
    font-weight: 700;
}

.page-header p {
    margin: 0;
    color: var(--muted);
    font-size: 12.5px;
}

.page-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* two-column form inside a panel */
.grid-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.grid-form .full-span {
    grid-column: 1 / -1;
}

.section-note {
    margin: -4px 0 16px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.sub-head {
    margin: 24px 0 12px;
    font-size: 15px;
    font-weight: 700;
}

/* legacy collapsible editor styles */
.iq-list {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.iq-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfcfe;
    overflow: hidden;
}

.iq-item > summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    cursor: pointer;
    list-style: none;
    font-size: 14px;
}

.iq-item > summary::-webkit-details-marker {
    display: none;
}

.iq-item > summary::after {
    content: "▾";
    margin-left: auto;
    color: var(--muted);
    transition: transform 0.15s;
}

.iq-item[open] > summary::after {
    transform: rotate(180deg);
}

.iq-item[open] > summary {
    border-bottom: 1px solid var(--line);
}

.iq-time {
    display: inline-grid;
    place-items: center;
    min-width: 52px;
    padding: 3px 8px;
    border-radius: 8px;
    background: #e7e7ff;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 12.5px;
}

.iq-text {
    font-weight: 600;
}

.iq-video {
    color: var(--muted);
    font-size: 12.5px;
}

.iq-item .grid-form {
    padding: 16px;
}

.iq-item-static {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfcfe;
}

.iq-static-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
}

.iq-static-head .iq-text {
    flex: 1;
}

.iq-static-head form {
    margin: 0;
}

.bordered-form {
    border-top: 1px solid var(--line);
    padding-top: 18px;
    margin-top: 4px;
}

/* collapsible "+ Yeni X" button that reveals a form */
.create-panel {
    margin-top: 16px;
}

.create-panel > summary {
    list-style: none;
    width: fit-content;
}

.create-panel > summary::-webkit-details-marker {
    display: none;
}

.create-panel[open] > summary {
    margin-bottom: 16px;
}

.field-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.option-rows {
    display: grid;
    gap: 8px;
    margin-bottom: 10px;
}

.option-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.option-row .option-mark {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    accent-color: var(--primary);
}

.option-row .option-text {
    flex: 1;
}

.option-row .option-del {
    min-height: 38px;
    padding: 4px 12px;
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.builder-grid {
    display: grid;
    gap: 18px;
}

.builder-section {
    display: grid;
    gap: 16px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
}

.inline-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 12px;
    align-items: end;
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

.inline-form .full-span {
    grid-column: 1 / -1;
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.actions form,
.row-form {
    margin: 0;
}

.wide-form {
    max-width: 760px;
}

.certificate-page {
    min-height: 70vh;
    display: grid;
    place-items: center;
}

/* ===== Sertifika sablon modu (arka plan gorseli + otomatik alanlar) ===== */
.certtpl-page { min-height: 70vh; display: grid; place-items: center; padding: 16px; }
.certtpl-sheet {
    position: relative;
    width: min(1040px, 100%);
    aspect-ratio: 297 / 210;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 5px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
    container-type: inline-size;
    overflow: hidden;
}
.certtpl-name {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    white-space: nowrap;
    font-family: 'Dancing Script', 'Segoe Script', cursive;
    font-weight: 700;
    color: #16233f;
    font-size: 5.1cqw;
    line-height: 1;
}
.certtpl-body {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #2b2b2b;
    font-size: 2cqw;
    line-height: 1.75;
}
.certtpl-instr {
    position: absolute;
    transform: translateX(-50%);
    text-align: center;
    color: #2b2b2b;
}
.certtpl-instr-label { display: block; font-size: 1.8cqw; }
.certtpl-instr-name { display: block; font-size: 1.8cqw; margin-top: 1.4cqw; }

@media print {
    @page { size: A4 landscape; margin: 0; }
    .certtpl-page { min-height: 0; height: 210mm; display: block; padding: 0; margin: 0; overflow: hidden; }
    .certtpl-sheet {
        width: 297mm; height: 210mm; max-width: none;
        border-radius: 0; box-shadow: none; margin: 0;
        page-break-inside: avoid; break-inside: avoid;
    }
    .certtpl-sheet, .certtpl-sheet * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

.cert-actions {
    width: min(900px, 100%);
    margin: 0 auto 14px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.certificate-sheet {
    --cert: #4b4dc4;
    width: min(900px, 100%);
    padding: 14px;
    background:
        repeating-linear-gradient(45deg, rgba(29,79,145,.04) 0 2px, transparent 2px 7px),
        #f3f7fc;
    border: 2px solid var(--cert);
    border-radius: 4px;
    box-shadow: 0 26px 60px rgba(30, 41, 59, 0.2);
}

.cert-frame {
    position: relative;
    border: 2px solid var(--cert);
    padding: 46px 52px 30px;
    text-align: center;
}

.cert-corner {
    position: absolute;
    width: 26px;
    height: 26px;
    border: 3px solid var(--cert);
}
.cert-corner.tl { top: 9px; left: 9px; border-right: 0; border-bottom: 0; }
.cert-corner.tr { top: 9px; right: 9px; border-left: 0; border-bottom: 0; }
.cert-corner.bl { bottom: 9px; left: 9px; border-right: 0; border-top: 0; }
.cert-corner.br { bottom: 9px; right: 9px; border-left: 0; border-top: 0; }

.cert-title {
    margin: 0;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--cert);
}

.cert-sub {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: #64748b;
}

.cert-presented {
    margin: 22px 0 6px;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #94a3b8;
}

.certificate-name {
    margin: 0 0 6px;
    font-family: 'Dancing Script', 'Segoe Script', cursive;
    font-size: 54px;
    font-weight: 700;
    color: #0f2c52;
}

.cert-course {
    margin: 2px 0 12px;
    font-size: 17px;
    font-weight: 700;
    color: var(--cert);
}

.cert-body {
    margin: 0 auto;
    max-width: 560px;
    color: #475569;
    font-size: 13.5px;
    line-height: 1.7;
}

.cert-foot {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: 20px;
    margin: 34px auto 18px;
    max-width: 620px;
}

.cert-sign {
    text-align: center;
    position: relative;
}

.cert-sign-img {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    height: 112px;
    max-width: 300px;
    object-fit: contain;
}

.cert-sign-line {
    border-top: 1.5px solid #334155;
    padding-top: 6px;
    font-weight: 600;
    font-size: 13px;
    min-height: 20px;
    color: #1e293b;
}

.cert-sign span {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #94a3b8;
}

.cert-seal {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    color: var(--cert);
    background: radial-gradient(circle, #eaf1fb, #d8e6f7);
    border: 2px solid rgba(29, 79, 145, 0.35);
}
.cert-seal svg { width: 40px; height: 40px; }

.cert-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 6px;
    font-weight: 700;
    font-size: 13px;
    color: var(--cert);
}
.cert-brand img { height: 30px; object-fit: contain; }

.cert-meta-line {
    margin-top: 10px;
    font-size: 11px;
    color: #94a3b8;
}

@media print {
    .sidebar,
    .topbar,
    .print-hide {
        display: none !important;
    }

    .content {
        padding: 0;
    }

    .certificate-sheet {
        box-shadow: none;
    }
}

/* Sertifika yatay (landscape) ve sayfayi tam kaplar */
@media print {
    @page { size: A4 landscape; margin: 0; }

    html, body { margin: 0; padding: 0; background: #fff; width: 297mm; height: 210mm; overflow: hidden; }
    .app-shell, .main, .content { display: block; height: auto; min-height: 0; margin: 0; padding: 0; overflow: visible; }

    .certificate-page {
        min-height: 0;
        height: 210mm;
        display: block;
        padding: 0;
        margin: 0;
        overflow: hidden;
    }

    .certificate-sheet {
        width: calc(297mm - 18mm);
        height: calc(210mm - 18mm);
        overflow: hidden;
        margin: 9mm;
        border: 2px solid var(--cert);
        border-radius: 3px;
        padding: 6mm;
        box-sizing: border-box;
        display: flex;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    /* Arka plan desen/renkleri ciktida da bassin */
    .certificate-sheet,
    .certificate-sheet * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .cert-frame {
        flex: 1 1 auto;
        height: 100%;
        display: grid;
        grid-auto-rows: min-content;
        align-content: center;
        justify-items: center;
        gap: 14px;
        padding: 8mm 20mm;
        overflow: hidden;
    }
    .cert-frame > * { margin-left: 0; margin-right: 0; }

    .cert-title { font-size: 54px; margin: 0; }
    .cert-sub { font-size: 16px; letter-spacing: 0.4em; margin-top: 6px; }
    .cert-presented { font-size: 15px; letter-spacing: 0.22em; margin: 0; }
    .certificate-name { font-size: 64px; margin: 0; }
    .cert-course { font-size: 26px; margin: 0; }
    .cert-body { font-size: 17px; max-width: 760px; line-height: 1.75; margin: 0 auto; }

    .cert-emblem { min-width: 180px; height: 130px; margin: 0; }
    .cert-emblem img { max-width: 240px; max-height: 120px; }
    .cert-emblem svg { width: 84px; height: 84px; padding: 14px; }

    .cert-foot { margin: 0 auto; max-width: 900px; gap: 36px; }
    .cert-sign-line { font-size: 17px; padding-top: 8px; }
    .cert-sign span { font-size: 13px; }
    .cert-sign-img { height: 138px; max-width: 360px; bottom: 22px; }

    .cert-meta-line { font-size: 13px; margin: 0; }
}

label {
    display: grid;
    gap: 6px;
    font-weight: 600;
    font-size: 13px;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    font-weight: 400;
    color: var(--text);
    background: #fff;
    transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):hover,
select:hover,
textarea:hover {
    border-color: #c7cfdd;
    background: #fcfdff;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14), 0 6px 16px rgba(99, 102, 241, 0.08);
}

/* checkbox / radio native kalsin (metin kutusu stili + titreme onlenir) */
input[type="checkbox"],
input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 7px 14px;
    border: none;
    border-radius: 9px;
    background: #eef1f6;
    color: #475569;
    font-weight: 600;
    font-size: 12.5px;
    cursor: pointer;
    transition: transform 0.13s, filter 0.13s, box-shadow 0.13s, background 0.13s;
}

.button svg {
    width: 14px;
    height: 14px;
}

.button:hover {
    background: #e4e8f0;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(30, 41, 59, 0.1);
}

.button:active {
    transform: translateY(0) scale(.97);
    box-shadow: none;
}

.actions .button {
    min-height: 32px;
    padding: 6px 12px;
    font-size: 12px;
}

.button.primary {
    background: linear-gradient(135deg, #696cff, #5a5dd8);
    color: #fff;
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.28);
}

.button.primary:hover {
    filter: brightness(1.05);
    box-shadow: 0 10px 22px rgba(99, 102, 241, 0.34);
}

.button.ghost {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text);
}

.button.ghost:hover {
    background: #f4f6fa;
}

.button.danger {
    background: #fee2e2;
    color: #dc2626;
}

.button.danger:hover {
    background: #fdd2d2;
}

.button.full {
    width: 100%;
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 24px;
    padding: 3px 11px;
    border-radius: 999px;
    background: #e7e7ff;
    color: var(--primary-dark);
    font-size: 12.5px;
    font-weight: 600;
    text-transform: capitalize;
}

.badge.is-success {
    background: #dcfce7;
    color: #15803d;
}

.badge.is-info {
    background: #dbeafe;
    color: #4b4dc4;
}

.badge.is-warning {
    background: #fef3c7;
    color: #b45309;
}

.badge.is-danger {
    background: #fee2e2;
    color: #b91c1c;
}

.badge.is-muted {
    background: #eef1f6;
    color: #64748b;
}

/* ===== Dashboard: KPI cards ===== */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.kpi-grid.kpi-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .kpi-grid.kpi-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .kpi-grid.kpi-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.kpi {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
}

.kpi:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(30, 41, 59, 0.12);
    border-color: color-mix(in srgb, var(--kpi) 40%, var(--line));
}
.kpi:hover .kpi-icon { transform: scale(1.08) rotate(-3deg); }
.kpi-icon { transition: transform .18s ease; }

.kpi::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--kpi);
}

.kpi::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -30px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--kpi) 26%, transparent), transparent 70%);
    opacity: .55;
    transition: transform .25s ease, opacity .25s ease;
    pointer-events: none;
}

.kpi:hover::after { transform: scale(1.35); opacity: .8; }

.kpi-icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    flex-shrink: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--kpi), color-mix(in srgb, var(--kpi) 60%, #fff));
    box-shadow: 0 8px 18px color-mix(in srgb, var(--kpi) 40%, transparent);
    position: relative;
    z-index: 1;
}

.kpi-value {
    color: color-mix(in srgb, var(--kpi) 72%, #1e293b);
}

.kpi-icon svg {
    width: 22px;
    height: 22px;
}

.kpi-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.kpi-label {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}

.kpi-value {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.15;
    margin: 1px 0;
}

.kpi-sub {
    font-size: 12px;
    color: var(--muted);
}

/* ===== Dashboard: panels layout ===== */
.dash-split {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.panel-head h2 {
    margin: 0;
}

.empty {
    color: var(--muted);
    padding: 8px 0;
}

/* progress list */
.progress-list {
    display: grid;
    gap: 18px;
}

.progress-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 14px;
}

.progress-name {
    font-weight: 600;
}

.progress-count {
    color: var(--muted);
    font-weight: 600;
}

.bar {
    height: 9px;
    border-radius: 999px;
    background: #eef1f7;
    overflow: hidden;
}

.bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #696cff, #5a5dd8, #696cff);
    background-size: 200% 100%;
    animation: barIn .9s cubic-bezier(.22,.61,.36,1) both;
}

@keyframes barIn { from { width: 0 !important; } }

/* dashboard: egitim tamamlanma durumu */
.cprog-list { display: grid; gap: 6px; }
.cprog-item {
    display: flex; align-items: center; gap: 16px;
    padding: 12px 12px;
    border-radius: 14px;
    transition: background .15s ease, transform .15s ease;
}
.cprog-item:hover { background: color-mix(in srgb, var(--c) 7%, #fff); transform: translateX(2px); }
.cprog-ring {
    --val: 0;
    position: relative; flex-shrink: 0;
    width: 56px; height: 56px; border-radius: 50%;
    display: grid; place-items: center;
    background: conic-gradient(var(--c) calc(var(--val) * 1%), #eef1f7 0);
    animation: ringIn .9s cubic-bezier(.22,.61,.36,1) both;
}
.cprog-ring::before { content: ""; position: absolute; width: 42px; height: 42px; border-radius: 50%; background: var(--panel); }
.cprog-ring span { position: relative; font-size: 14px; font-weight: 700; color: var(--c); }
.cprog-ring small { font-size: 9px; font-weight: 600; opacity: .8; }
@keyframes ringIn { from { background: conic-gradient(var(--c) 0%, #eef1f7 0); } }
.cprog-body { flex: 1; min-width: 0; }
.cprog-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.cprog-name { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cprog-tier {
    flex-shrink: 0; font-size: 11px; font-weight: 700;
    padding: 3px 9px; border-radius: 999px;
    color: color-mix(in srgb, var(--c) 80%, #1e293b);
    background: color-mix(in srgb, var(--c) 16%, #fff);
}
.cprog-sub { margin-top: 6px; font-size: 12px; color: var(--muted); }
.cprog-sub b { color: var(--text); font-weight: 700; }

/* activity feed */
.activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 4px;
}

.activity-item {
    display: flex;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #696cff, #5a5dd8);
}

.activity-item div {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    line-height: 1.5;
}

.activity-item strong {
    font-weight: 600;
}

.activity-item span {
    color: var(--text);
}

.activity-item time {
    color: var(--muted);
    font-size: 12px;
}

/* quick actions */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.quick-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfcfe;
    font-weight: 600;
    font-size: 14px;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.quick-card:hover {
    border-color: var(--qc);
    transform: translateY(-3px);
    box-shadow: 0 14px 28px color-mix(in srgb, var(--qc) 24%, transparent);
    background: color-mix(in srgb, var(--qc) 6%, #fff);
}

.quick-ico {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    flex-shrink: 0;
    font-size: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--qc), color-mix(in srgb, var(--qc) 60%, #fff));
    box-shadow: 0 8px 16px color-mix(in srgb, var(--qc) 35%, transparent);
    transition: transform .16s ease;
}

.quick-card:hover .quick-ico { transform: scale(1.1) rotate(-4deg); }

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 9px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    font-size: 12.5px;
    vertical-align: middle;
}

thead th {
    background: #f8fafc;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

tbody tr {
    transition: background 0.12s;
}

tbody tr:hover {
    background: #f9fafc;
}

tbody tr:last-child td {
    border-bottom: none;
}

.course-card {
    display: grid;
    gap: 16px;
    padding: 20px;
    transition: transform 0.15s, box-shadow 0.15s;
}

.course-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(30, 41, 59, 0.12);
}

.course-card h2 {
    margin: 10px 0 0;
}

.course-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.progress-row {
    display: grid;
    grid-template-columns: auto minmax(120px, 1fr) auto;
    gap: 10px;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
}

meter {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #eef1f7;
}

meter::-webkit-meter-bar {
    background: #eef1f7;
    border-radius: 999px;
    border: none;
}

meter::-webkit-meter-optimum-value {
    background: linear-gradient(90deg, #696cff, #5a5dd8);
    border-radius: 999px;
}

meter::-moz-meter-bar {
    background: linear-gradient(90deg, #696cff, #5a5dd8);
    border-radius: 999px;
}

.card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cell-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
}

.cell-progress meter {
    height: 8px;
    flex: 1;
}

.cell-progress span {
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

/* report summary mini KPIs */
.report-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.mini-kpi {
    background: var(--panel);
    border: 1px solid var(--line);
    border-left: 4px solid var(--mk, var(--primary));
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 16px 18px;
    display: grid;
    gap: 2px;
}

.mini-kpi span {
    font-size: 24px;
    font-weight: 700;
    color: var(--mk, var(--text));
}

.mini-kpi small {
    color: var(--muted);
    font-size: 12.5px;
}

@media (max-width: 1000px) {
    .report-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ===== Two-panel auth / login ===== */
.auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
}

.auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;
    padding: 48px;
    color: #eeeeff;
    background: linear-gradient(150deg, #3a3c9e 0%, #4b4dc4 50%, #5f61e6 100%);
    overflow: hidden;
}

.auth-brand::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -120px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(105, 108, 255, 0.35);
    filter: blur(20px);
}

.auth-brand-top {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    position: relative;
    z-index: 1;
}

.auth-brand-body {
    position: relative;
    z-index: 1;
}

.auth-brand-body h2 {
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.25;
}

.auth-brand-body p {
    color: #c9caff;
    margin: 0 0 26px;
    font-size: 15px;
}

.auth-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.auth-features li {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 14px;
    color: #e3e3ff;
}

.auth-features li span {
    color: #c9caff;
    font-weight: 700;
}

.auth-brand-foot {
    position: relative;
    z-index: 1;
    color: #c9caff;
    font-size: 12.5px;
}

.auth-form-wrap {
    display: grid;
    place-items: center;
    padding: 40px 24px;
    background: var(--panel);
}

.auth-form {
    width: min(380px, 100%);
    display: grid;
    gap: 14px;
}

.auth-form h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
}

.auth-sub {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.login-mark {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.login-mark svg {
    width: 23px;
    height: 23px;
}

.login-hint {
    margin-top: 4px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f5f6fb;
    border: 1px solid var(--line);
    display: grid;
    gap: 3px;
}

.login-hint small {
    color: var(--muted);
    font-size: 12.5px;
}

/* === Tek tikla demo giris kartlari === */
.demo-logins { display: grid; gap: 8px; margin-top: 6px; }
.demo-title { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.demo-card {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 13px; width: 100%;
    border: 1px solid var(--line); border-radius: 13px;
    background: #fff; cursor: pointer; text-align: left;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.demo-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--d) 45%, var(--line));
    background: color-mix(in srgb, var(--d) 5%, #fff);
    box-shadow: 0 12px 26px color-mix(in srgb, var(--d) 22%, transparent);
}
.demo-card:active { transform: translateY(0) scale(.98); }
.demo-ico {
    display: inline-grid; place-items: center; flex-shrink: 0;
    width: 40px; height: 40px; border-radius: 11px; color: #fff;
    background: linear-gradient(135deg, var(--d), color-mix(in srgb, var(--d) 58%, #fff));
    box-shadow: 0 6px 14px color-mix(in srgb, var(--d) 36%, transparent);
}
.demo-ico svg { width: 20px; height: 20px; }
.demo-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.demo-info b { font-size: 13.5px; font-weight: 600; }
.demo-info small { color: var(--muted); font-size: 12px; }
.demo-go { color: var(--d); flex-shrink: 0; transition: transform .15s ease; }
.demo-go svg { width: 18px; height: 18px; display: block; }
.demo-card:hover .demo-go { transform: translateX(4px); }
.demo-card.is-loading { pointer-events: none; }
.demo-card.is-loading .demo-go svg { display: none; }
.demo-card.is-loading .demo-go::after {
    content: ""; display: block; width: 16px; height: 16px;
    border: 2px solid color-mix(in srgb, var(--d) 30%, transparent);
    border-top-color: var(--d); border-radius: 50%;
    animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === Login sayfasi hareketlilik === */
.auth-brand { background-size: 160% 160%; animation: authShift 16s ease infinite; }
@keyframes authShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.auth-brand::after { animation: blobFloat 9s ease-in-out infinite; }
.auth-brand::before {
    content: ""; position: absolute; left: -100px; top: -90px;
    width: 280px; height: 280px; border-radius: 50%;
    background: rgba(56, 189, 248, 0.28); filter: blur(22px);
    animation: blobFloat 11s ease-in-out infinite reverse;
}
@keyframes blobFloat { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-26px,-22px) scale(1.12); } }
.auth-brand-top { animation: fadeUp .5s ease both; }
.auth-brand-body h2 { animation: fadeUp .5s ease .06s both; }
.auth-brand-body p { animation: fadeUp .5s ease .12s both; }
.auth-features li { animation: fadeUp .5s ease both; }
.auth-features li:nth-child(1) { animation-delay: .18s; }
.auth-features li:nth-child(2) { animation-delay: .26s; }
.auth-features li:nth-child(3) { animation-delay: .34s; }
.auth-features li:nth-child(4) { animation-delay: .42s; }
.auth-form { animation: fadeUp .5s ease .1s both; }

/* sag taraf: giris ustu buyuk logo */
.auth-form-logo { display: flex; justify-content: center; margin-bottom: 10px; }
.auth-form-logo img { max-height: 120px; max-width: 88%; width: auto; height: auto; object-fit: contain; }

/* ogrenci: icerigi olmayan egitim notu */
.course-empty-note {
    display: flex; align-items: center; gap: 9px;
    margin-top: 4px; padding: 11px 13px;
    border-radius: 11px;
    background: #fff7ed; color: #b45309;
    border: 1px solid #fed7aa;
    font-size: 12.5px; font-weight: 500;
}
.course-empty-note svg { width: 18px; height: 18px; flex-shrink: 0; }

/* sol panel: arkada suzulen egitim ikonu yagmuru */
.auth-rain { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.auth-rain-item {
    position: absolute; top: -10%;
    width: var(--s); height: var(--s);
    color: #fff; opacity: 0;
    animation-name: rainFall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform, opacity;
}
.auth-rain-item svg { width: 100%; height: 100%; }
@keyframes rainFall {
    0%   { transform: translateY(-40px) rotate(-12deg); opacity: 0; }
    10%  { opacity: .16; }
    88%  { opacity: .16; }
    100% { transform: translateY(96vh) rotate(28deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .auth-rain { display: none; } }

/* sol panel: cam showcase karti + istatistik cipleri */
.auth-showcase { position: relative; z-index: 1; margin-top: 28px; display: grid; gap: 14px; }
.auth-glass {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.28);
    animation: glassFloat 6s ease-in-out infinite, fadeUp .6s ease .3s both;
}
@keyframes glassFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.ag-head { display: flex; align-items: center; gap: 12px; }
.ag-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0; color: #fff; background: linear-gradient(135deg, #696cff, #696cff); }
.ag-ico svg { width: 20px; height: 20px; }
.ag-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ag-meta b { color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-meta small { color: #c9caff; font-size: 12px; }
.ag-pct { color: #c3f3a8; font-weight: 700; font-size: 15px; }
.ag-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); overflow: hidden; margin: 13px 0 12px; }
.ag-bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #8ee75c, #03c3ec); animation: agFill 1.4s cubic-bezier(.22,.61,.36,1) .5s forwards; }
@keyframes agFill { to { width: 100%; } }
.ag-foot { display: flex; align-items: center; justify-content: space-between; }
.ag-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: rgba(52, 211, 153, 0.2); color: #c3f3a8; font-size: 12px; font-weight: 600; }
.ag-badge svg { width: 13px; height: 13px; }
.ag-date { color: #c9caff; font-size: 12px; }
.auth-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.auth-chip { flex: 1; min-width: 120px; padding: 12px 14px; border-radius: 13px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); color: #d2d3ff; font-size: 12.5px; }
.auth-chip b { display: block; color: #fff; font-size: 20px; font-weight: 700; line-height: 1.1; margin-bottom: 2px; }

@media (max-width: 860px) {
    .auth {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        display: none;
    }
}

.alert {
    border: 1px solid #facc15;
    background: #fffbeb;
    color: #713f12;
    padding: 12px;
    border-radius: 8px;
}

.alert.danger {
    border-color: #fecaca;
    background: #fff1f2;
    color: var(--danger);
}

.hidden {
    display: none !important;
}

/* centered state pages (errors / empty) */
.state-page {
    min-height: 60vh;
    display: grid;
    place-items: center;
    text-align: center;
}

.state-card {
    max-width: 460px;
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 40px 32px;
}

.state-icon {
    display: inline-grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    margin-bottom: 6px;
    color: var(--code, var(--primary));
    background: color-mix(in srgb, var(--code, var(--primary)) 13%, #fff);
}

.state-icon svg {
    width: 36px;
    height: 36px;
}

.state-card h1 {
    margin: 0;
    font-size: 24px;
}

.state-card p {
    margin: 0;
    color: var(--muted);
}

.state-card .button {
    margin-top: 10px;
}

/* generic empty placeholder inside panels */
.empty-state {
    display: grid;
    justify-items: center;
    gap: 6px;
    text-align: center;
    padding: 40px 20px;
    color: var(--muted);
}

.empty-state strong { color: var(--text); font-size: 15px; }

.empty-state svg {
    width: 38px;
    height: 38px;
    color: var(--primary);
    padding: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(236,72,153,.12));
    box-sizing: content-box;
    margin-bottom: 4px;
}

.player-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}

.player-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.player-panel video,
.video-placeholder {
    display: block;
    width: 100%;
    max-height: 62vh;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    margin: 0 auto;
    background: #111827;
    border-radius: 8px;
    color: #fff;
}

/* her zaman gorunen geri don cubugu */
.player-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 0 14px;
    margin-bottom: 4px;
    background: linear-gradient(var(--bg) 70%, transparent);
}
.player-back {
    background: linear-gradient(135deg, #696cff, #5a5dd8) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.28);
    flex-shrink: 0;
}
.player-back svg { width: 16px; height: 16px; }
.player-topbar-title { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.player-topbar-title strong { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-topbar-title small { color: var(--muted); font-size: 12.5px; }

.video-placeholder {
    display: grid;
    place-items: center;
    text-align: center;
    margin-bottom: 12px;
}

.video-placeholder p {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 800;
}

.rules {
    padding-left: 20px;
    color: var(--muted);
}

/* player watch progress bar */
.watch-status {
    margin-top: 16px;
}

.watch-bar .progress-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
}

/* "Nasıl çalışır?" steps */
.info-panel .howto {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: grid;
    gap: 14px;
}

.howto li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.howto-num {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, #696cff, #5a5dd8);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.howto li div {
    display: flex;
    flex-direction: column;
}

.howto li strong {
    font-size: 14px;
}

.howto li small {
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.5;
}

/* student course cards */
.course-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.course-due {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

.hint-text {
    color: var(--muted);
    font-size: 12.5px;
}

.modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.64);
}

.modal-panel {
    width: min(520px, 100%);
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    display: grid;
    gap: 14px;
}

#questionOptions {
    display: grid;
    gap: 10px;
}

@media (max-width: 1100px) {
    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

        height: auto;
        position: static;
    }

    .content,
    .topbar {
        padding: 18px;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
    }

    .panel,
    .course-card {
        margin-bottom: 16px;
    }
}

@media (max-width: 560px) {
    .stats,
    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .progress-row {
        grid-template-columns: 1fr;
    }
}

/* ===================== Toasts ===================== */
.toast-host {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1000;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 32px));
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--primary);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.28s cubic-bezier(.2,.8,.2,1), opacity 0.28s;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-msg {
    flex: 1;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text);
}

.toast-x {
    border: none;
    background: none;
    font-size: 18px;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    padding: 0 2px;
}

.toast-success { border-left-color: #71dd37; }
.toast-danger { border-left-color: #ef4444; }
.toast-info { border-left-color: #5a5dd8; }
.toast-warning { border-left-color: #f59e0b; }

.reminder-job-status {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9997;
    width: min(380px, calc(100vw - 32px));
    padding: 16px;
    border: 1px solid #dbe4f0;
    border-left: 5px solid #5a5dd8;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
}
.reminder-job-head { display:grid; grid-template-columns:1fr auto auto; align-items:center; gap:12px; margin-bottom:8px; }
.reminder-job-head span { color:#4b4dc4; font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.reminder-job-head button { padding:0; border:0; background:transparent; color:#64748b; font-size:22px; line-height:1; cursor:pointer; }
.reminder-job-message { margin-bottom:10px; color:#475569; font-size:14px; }
.reminder-job-progress { height:8px; overflow:hidden; margin-bottom:8px; border-radius:999px; background:#e2e8f0; }
.reminder-job-progress span { display:block; height:100%; min-width:8px; border-radius:inherit; background:#5a5dd8; transition:width .25s ease; }
.reminder-job-status small { color:#64748b; }
.reminder-job-status.is-completed { border-left-color:#71dd37; }
.reminder-job-status.is-completed .reminder-job-head span { color:#047857; }
.reminder-job-status.is-completed .reminder-job-progress span { background:#71dd37; }
.reminder-job-status.is-failed { border-left-color:#ef4444; }
.reminder-job-status.is-failed .reminder-job-head span { color:#b91c1c; }
.reminder-job-status.is-failed .reminder-job-progress span { background:#ef4444; }

/* ===================== Confirm modal ===================== */
.confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s;
}

.confirm-overlay.show {
    opacity: 1;
    visibility: visible;
}

.confirm-box {
    width: min(400px, 100%);
    background: #fff;
    border-radius: 16px;
    padding: 26px 24px;
    text-align: center;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.3);
    transform: scale(0.92) translateY(8px);
    transition: transform 0.2s cubic-bezier(.2,.8,.2,1);
}

.confirm-overlay.show .confirm-box {
    transform: scale(1) translateY(0);
}

.confirm-icon {
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    margin-bottom: 12px;
    color: #ef4444;
    background: #fee2e2;
}

.confirm-icon svg { width: 28px; height: 28px; }

.confirm-title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
}

.confirm-text {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.55;
}

.confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.confirm-actions .button { min-width: 120px; }

/* ===================== Personnel cards (horizontal) ===================== */
.people-grid {
    display: grid;
    gap: 12px;
}

.person-card {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--line);
    border-left: 4px solid var(--pc1, #696cff);
    border-radius: 14px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    transition: transform 0.16s, box-shadow 0.16s;
    animation: fadeUp 0.3s ease both;
}

.person-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(30, 41, 59, 0.12);
}

.person-avatar {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--pc1, #696cff), var(--pc2, #5a5dd8));
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.25);
    flex-shrink: 0;
}

.person-info {
    flex: 1;
    min-width: 0;
}

.person-name {
    font-size: 14.5px;
    font-weight: 700;
    margin: 0;
}

.person-mail {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 7px;
    word-break: break-all;
}

.person-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    font-size: 12px;
    color: var(--muted);
}

.person-tags b {
    color: var(--text);
    font-weight: 600;
}

.person-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.person-actions .button,
.person-actions form {
    margin: 0;
}

@media (max-width: 720px) {
    .person-card {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }
    .person-actions { justify-content: flex-start; }
}

/* filter bar */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.filter-bar .filter-search {
    flex: 1;
    min-width: 200px;
}

.filter-bar select {
    width: auto;
    min-width: 150px;
}

/* toggle-able create form */
.create-form {
    display: none;
    margin-bottom: 16px;
}

.create-form.is-open {
    display: block;
    animation: fadeUp 0.25s ease both;
}

/* right-aligned table actions */
td.actions {
    text-align: right;
    white-space: nowrap;
}

td.actions {
    justify-content: flex-end;
}

/* small video thumbnail in builder */
.vid-thumb {
    width: 96px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    background: #0f172a;
    border: 1px solid var(--line);
    display: block;
}

.vid-thumb-empty {
    width: 96px;
    height: 56px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #0f172a;
    color: #64748b;
}

.vid-thumb-empty svg { width: 22px; height: 22px; }

/* ===================== Filter tabs ===================== */
.tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: #eef1f7;
    border-radius: 12px;
    margin-bottom: 16px;
}

.tabs a {
    padding: 7px 14px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    transition: background 0.15s, color 0.15s;
}

.tabs a:hover { color: var(--text); }

.tabs a.active {
    background: linear-gradient(135deg, #696cff, #5a5dd8);
    color: #fff;
    box-shadow: 0 6px 14px rgba(99, 102, 241, .32);
}
.tabs a.active .tab-count { background: rgba(255,255,255,.25); color: #fff; }

.tab-count {
    display: inline-grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 5px;
    border-radius: 9px;
    background: rgba(99, 102, 241, 0.14);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
}

/* ===================== Animations ===================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.content > .panel,
.content > .kpi-grid,
.content > .course-grid,
.content > .people-grid,
.content > .report-summary,
.content > .builder-grid,
.content > .builder-steps {
    animation: fadeUp 0.3s ease both;
}

.kpi { animation: fadeUp 0.35s ease both; }
.kpi:nth-child(2) { animation-delay: .03s; }
.kpi:nth-child(3) { animation-delay: .06s; }
.kpi:nth-child(4) { animation-delay: .09s; }
.kpi:nth-child(5) { animation-delay: .12s; }
.kpi:nth-child(6) { animation-delay: .15s; }
.kpi:nth-child(7) { animation-delay: .18s; }
.kpi:nth-child(8) { animation-delay: .21s; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* ===== Report (personnel status) cards ===== */
.report-cards { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.report-card { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--rc, #696cff); border-radius: 14px; box-shadow: var(--shadow); padding: 16px; display: grid; gap: 13px; animation: fadeUp .3s ease both; transition: transform .16s, box-shadow .16s; }
.report-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(30,41,59,.12); }
.report-card.state-overdue { --rc: #ef4444; }
.report-card.state-completed { --rc: #71dd37; }
.report-card.state-in_progress { --rc: #696cff; }
.rc-head { display: flex; align-items: center; gap: 10px; }
.rc-avatar { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; background: linear-gradient(135deg, var(--rc, #696cff), #5a5dd8); flex-shrink: 0; }
.rc-id { flex: 1; min-width: 0; }
.rc-name { margin: 0; font-weight: 700; font-size: 14px; }
.rc-dept { font-size: 12px; color: var(--muted); }
.rc-progress .progress-top { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; margin-bottom: 5px; }
.rc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; border-top: 1px solid var(--line); padding-top: 12px; }
.rc-stats b { display: block; font-size: 16px; font-weight: 700; }
.rc-stats small { color: var(--muted); font-size: 11px; }
.rc-danger { color: #ef4444; }

/* ===== Soft action buttons (personnel cards) ===== */
.soft { display: inline-flex; align-items: center; gap: 6px; border: none; border-radius: 9px; padding: 7px 12px; font-size: 12px; font-weight: 600; font-family: inherit; cursor: pointer; line-height: 1; transition: transform .12s, filter .12s, box-shadow .12s; }
.soft svg { width: 14px; height: 14px; }
.soft:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(30,41,59,.1); }
.soft:active { transform: translateY(0); }
.soft-indigo { background: #e7e7ff; color: #5f61e6; }
.soft-amber { background: #fef3c7; color: #b45309; }
.soft-slate { background: #eef1f6; color: #475569; }
.soft-green { background: #dcfce7; color: #15803d; }
.soft-red { background: #fee2e2; color: #dc2626; }
.person-actions form { margin: 0; }

/* ===== Detail modal (popup) ===== */
.modal-overlay { position: fixed; inset: 0; z-index: 1001; display: none; place-items: center; padding: 20px; background: rgba(15,23,42,.62); }
.modal-overlay.is-open { display: grid; animation: fadeIn .16s ease; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.modal-card { position: relative; width: min(440px, 100%); background: var(--panel); border-radius: 18px; box-shadow: 0 30px 70px rgba(15,23,42,.32); overflow: hidden; animation: popIn .22s cubic-bezier(.2,.8,.2,1); }
.modal-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #696cff, #5a5dd8, #696cff); z-index: 2; }
@keyframes popIn { from { transform: scale(.93) translateY(10px); opacity: .6 } to { transform: scale(1) translateY(0); opacity: 1 } }
.modal-x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 30px; height: 30px; border: none; border-radius: 9px; background: #eef1f6; color: #475569; font-size: 18px; cursor: pointer; }
.modal-x:hover { background: #e2e7f0; }
.modal-body { padding: 24px 20px 20px; }
.modal-head-center { text-align: center; margin-bottom: 18px; }
.modal-avatar { width: 78px; height: 78px; border-radius: 22px; display: grid; place-items: center; font-weight: 700; font-size: 28px; color: #fff; background: linear-gradient(135deg, var(--pc1, #696cff), var(--pc2, #5a5dd8)); box-shadow: 0 10px 22px rgba(99,102,241,.3); margin: 0 auto 10px; }
.modal-name { font-size: 18px; font-weight: 700; margin: 0 0 2px; }
.modal-mail { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.modal-meta { display: grid; gap: 8px; font-size: 13px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; margin-bottom: 14px; }
.modal-meta div { display: flex; justify-content: space-between; gap: 10px; }
.modal-meta span { color: var(--muted); }
.modal-meta { display: grid; gap: 8px; font-size: 13px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; margin-bottom: 14px; }
.modal-meta div { display: flex; justify-content: space-between; gap: 10px; }
.modal-meta span { color: var(--muted); }
.modal-meta b { font-weight: 600; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.modal-actions form { margin: 0; }

/* compact user table cell */
.u-cell { display: flex; align-items: center; gap: 10px; }
.u-av { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12px; flex-shrink: 0; }
.u-name { display: flex; flex-direction: column; line-height: 1.3; font-weight: 600; }
.u-name small { color: var(--muted); font-weight: 400; font-size: 11.5px; }

.users-panel .table-wrap {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .045);
}

.users-panel table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.users-panel thead {
    background: #f8fafc;
}

.users-panel thead th {
    text-align: left;
    padding: 11px 16px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

/* Ad | Rol | Departman | Firma | Egitim | Durum | Detay */
.users-panel col.c-name   { width: auto; }
.users-panel col.c-role   { width: 14%; }
.users-panel col.c-dept   { width: 16%; }
.users-panel col.c-comp   { width: 16%; }
.users-panel col.c-edu    { width: 9%; }
.users-panel col.c-status { width: 9%; }
.users-panel col.c-act    { width: 92px; }

.users-panel tbody tr {
    border-bottom: 1px solid var(--line);
    transition: background .12s ease;
}

.users-panel tbody tr:last-child { border-bottom: 0; }

.users-panel tbody tr:hover {
    background: #f6f9ff;
}

.users-panel td {
    padding: 12px 16px;
    border: 0;
    color: var(--text);
    font-size: 13px;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.users-panel td.cell-dept,
.users-panel td.cell-comp,
.users-panel td.cell-role {
    color: #475569;
}

.users-panel .actions {
    text-align: right;
    white-space: nowrap;
}

.users-panel .u-av {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    font-size: 12px;
}

.users-panel .u-name {
    gap: 1px;
    min-width: 0;
}

.users-panel .u-name small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

@media (max-width: 860px) {
    .users-panel col.c-dept,
    .users-panel col.c-edu { width: 0; }
    .users-panel th.h-dept, .users-panel td.cell-dept,
    .users-panel th.h-edu,  .users-panel td.cell-edu { display: none; }
}

/* user table avatar image + clickable row */
img.u-av { object-fit: cover; }
.row-clickable { cursor: pointer; }

/* === Sicak karsilama alani (dashboard hero) === */
.hero-greet {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 24px 28px;
    margin-bottom: 16px;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(120deg, #696cff 0%, #5a5dd8 42%, #696cff 100%);
    box-shadow: 0 18px 44px rgba(105, 108, 255, .32);
    animation: fadeUp .45s ease both;
}
.hero-greet-main { position: relative; z-index: 1; }
.hero-date { font-size: 12.5px; font-weight: 500; opacity: .85; letter-spacing: .02em; }
.hero-greet h1 { margin: 4px 0 6px; font-size: 25px; font-weight: 700; color: #fff; line-height: 1.2; }
.hero-greet p { margin: 0; font-size: 14px; opacity: .94; }
.hero-emoji { display: inline-block; animation: wave 2.4s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes wave { 0%,60%,100% { transform: rotate(0); } 10% { transform: rotate(14deg); } 20% { transform: rotate(-8deg); } 30% { transform: rotate(14deg); } 40% { transform: rotate(-4deg); } 50% { transform: rotate(10deg); } }

.hero-greet-green { background: linear-gradient(120deg, #43459e 0%, #5a5cd9 55%, #696cff 100%); box-shadow: 0 18px 44px rgba(34, 48, 62, .28); }

.hero-ring {
    --val: 0;
    position: relative; z-index: 1; flex-shrink: 0;
    width: 92px; height: 92px; border-radius: 50%;
    display: grid; place-items: center;
    background: conic-gradient(#fff calc(var(--val) * 1%), rgba(255,255,255,.28) 0);
}
.hero-ring::before { content: ""; position: absolute; width: 70px; height: 70px; border-radius: 50%; background: rgba(255,255,255,.18); }
.hero-ring span { position: relative; font-size: 22px; font-weight: 700; color: #fff; }
.hero-ring small { font-size: 12px; font-weight: 600; opacity: .85; }

.hero-greet-actions { position: relative; z-index: 1; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-btn {
    display: inline-flex; align-items: center;
    padding: 10px 16px; border-radius: 11px;
    font-weight: 600; font-size: 13px;
    background: #fff; color: #5f61e6;
    transition: transform .14s ease, box-shadow .14s ease;
}
.hero-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.16); }
.hero-btn.ghost { background: rgba(255,255,255,.18); color: #fff; }
.hero-btn.ghost:hover { background: rgba(255,255,255,.26); }

.hero-greet-blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .35; pointer-events: none; }
.hero-blob-1 { width: 220px; height: 220px; right: -40px; top: -90px; background: radial-gradient(circle, #fde68a, transparent 70%); opacity: .55; }
.hero-blob-2 { width: 180px; height: 180px; right: 160px; bottom: -110px; background: radial-gradient(circle, #8f91ff, transparent 70%); opacity: .4; }
@media (max-width: 560px) { .hero-greet h1 { font-size: 21px; } .hero-greet { padding: 20px; } }

/* ===== Egitim degerlendirme formu ===== */
.eval-form { display: grid; gap: 16px; max-width: 720px; }
.eval-section-head { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #5f61e6; padding: 6px 0 2px; border-bottom: 2px solid #eeeeff; margin-top: 6px; }
.eval-section-head:first-child { margin-top: 0; }
.eval-q { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--panel); }
.eval-q-title { font-weight: 600; font-size: 14.5px; margin-bottom: 12px; display: flex; align-items: baseline; gap: 9px; line-height: 1.4; }
.eval-q-no { display: inline-grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; border-radius: 8px; background: #eeeeff; color: #5f61e6; font-size: 12px; font-weight: 700; }
.eval-req { color: #dc2626; }
.eval-rating { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.eval-star { position: relative; cursor: pointer; }
.eval-star input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.eval-star span { display: grid; place-items: center; width: 42px; height: 42px; border: 1.5px solid var(--line); border-radius: 11px; font-weight: 700; color: #64748b; transition: all .13s ease; }
.eval-star:hover span { border-color: #d2d3ff; }
.eval-star input:checked + span { background: linear-gradient(135deg, #5a5dd8, #696cff); border-color: transparent; color: #fff; box-shadow: 0 6px 14px rgba(105, 108, 255,.3); }
.eval-scale-hint { color: var(--muted); font-size: 12px; margin-left: 6px; }
.eval-options { display: grid; gap: 8px; }
.eval-q textarea { width: 100%; }
.eval-actions { margin-top: 4px; }

.eval-avg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.eval-avg { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fbfcfe; }
.eval-avg-num { font-size: 22px; font-weight: 700; color: #5f61e6; }
.eval-avg-num small { font-size: 12px; color: var(--muted); font-weight: 600; }
.eval-avg-bar { height: 7px; border-radius: 999px; background: #eef1f7; overflow: hidden; margin: 7px 0; }
.eval-avg-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #5a5dd8, #696cff); }
.eval-avg-text { font-size: 12.5px; color: var(--text); }
.eval-avg-text small { color: var(--muted); }

.reminder-status { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.reminder-status strong { color: var(--text); }
.reminder-status.warn { color: #b45309; }

/* atama: coklu departman + herkes notu */
.dept-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
    padding: 4px 2px;
}
.dept-check-grid .check-row {
    font-weight: 500;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: none;
    box-shadow: none;
}
.dept-check-grid .check-row:hover { background: #f6f8ff; }
.dept-check-grid .check-row:has(input:checked) {
    border-color: var(--primary);
    background: color-mix(in srgb, var(--primary) 8%, #fff);
    box-shadow: none;
}
.assign-allnote {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 15px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--primary) 7%, #fff);
    border: 1px solid color-mix(in srgb, var(--primary) 25%, var(--line));
    color: var(--text);
    font-size: 13px;
}
.assign-allnote svg { width: 22px; height: 22px; color: var(--primary); flex-shrink: 0; }

/* aranabilir secim kutusu (combobox) */
.combo { position: relative; }
.combo > input[type="text"] { width: 100%; }
.combo-list {
    position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px);
    max-height: 260px; overflow-y: auto;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
    padding: 6px;
}
.combo-item {
    display: flex; flex-direction: column; gap: 1px;
    width: 100%; text-align: left;
    padding: 8px 10px; border: 0; border-radius: 8px;
    background: transparent; cursor: pointer; font: inherit; color: var(--text);
}
.combo-item:hover, .combo-item.is-active { background: #e7e7ff; }
.combo-name { font-weight: 600; font-size: 13px; }
.combo-item small { color: var(--muted); font-size: 11.5px; }
.combo-empty { padding: 12px 10px; color: var(--muted); font-size: 13px; text-align: center; }

/* eğitim katalog listesi */
.courses-panel .course-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.courses-panel .course-name { font-weight: 600; }
.courses-panel .course-cell small { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.courses-panel td { vertical-align: middle; }
.courses-panel .actions { white-space: nowrap; text-align: right; }
a.badge { text-decoration: none; cursor: pointer; }
.muted-text { color: var(--muted); }

/* davet modal kanallari */
.invite-channels { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.invite-channels .chl { padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.invite-channels .chl.on { background: #dcfce7; color: #15803d; }
.invite-channels .chl.off { background: #fee2e2; color: #b91c1c; }
.checkbox-row { display: flex; flex-direction: row; align-items: center; gap: 9px; font-weight: 500; }
.checkbox-row input { width: auto; }
.row-clickable:hover { background: #f9fafc; }

/* detail modal: photo + trainings */
.modal-card-lg { width: min(540px, 100%); max-height: 92vh; overflow-y: auto; }
.card-form { margin-bottom: 18px; }
.card-divider { border-top: 1px dashed var(--line); margin: 16px 0 12px; }
.modal-avatar-img { object-fit: cover; padding: 0; }
.modal-section-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 10px; }
.modal-section-head h4 { margin: 0; font-size: 14px; font-weight: 700; }
.train-list { display: grid; gap: 10px; max-height: 300px; overflow-y: auto; }
.train-row { border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; background: #fbfcfe; }
.train-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.train-top-right { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.train-del { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid #fecaca; border-radius: 8px; background: #fef2f2; color: #dc2626; cursor: pointer; transition: background .13s ease, border-color .13s ease; }
.train-del:hover { background: #fee2e2; border-color: #f87171; }
.train-del svg { width: 15px; height: 15px; }
.train-exam { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid #dcdcff; border-radius: 8px; background: #eff6ff; color: #4b4dc4; cursor: pointer; transition: background .13s ease, border-color .13s ease; }
.train-exam:hover { background: #dbeafe; border-color: #8f91ff; }
.train-exam svg { width: 15px; height: 15px; }
.train-video { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid #bbf7d0; border-radius: 8px; background: #f0fdf4; color: #5fc22e; cursor: pointer; transition: background .13s ease, border-color .13s ease; }
.train-video:hover { background: #dcfce7; border-color: #8ee75c; }
.train-video svg { width: 15px; height: 15px; }
.train-name { font-weight: 600; font-size: 13px; }
.train-sub { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 7px; font-size: 11.5px; color: var(--muted); }
.train-sub b { color: var(--text); font-weight: 600; }
.modal-foot { margin-top: 16px; }

/* edit page: photo field + account actions */
.photo-field { display: flex; align-items: center; gap: 14px; }
.photo-preview { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--line); }
.photo-empty { display: grid; place-items: center; color: #94a3b8; background: #f1f5f9; }
.photo-empty svg { width: 30px; height: 30px; }
.photo-upload { flex: 1; }
.account-actions { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.account-actions-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* permission matrix toggles */
.perm-table { width: 100%; table-layout: fixed; }
.perm-table th,
.perm-table td { padding: 8px 4px; }
.perm-table th.perm-col { text-align: center; font-size: 11px; line-height: 1.25; white-space: normal; word-break: normal; text-transform: none; letter-spacing: 0; }
.perm-role {
    display: grid;
    gap: 6px;
    align-content: center;
    font-weight: 600;
    white-space: normal;
}
.perm-cell { text-align: center; }
.module-checks { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.perm-table th:first-child,
.perm-table td:first-child { width: 18%; min-width: 115px; padding-left: 12px; text-align: left; }
.perm-table th:last-child,
.perm-table td:last-child { width: 54px; text-align: center; }
.perm-role input {
    width: 100%;
    min-width: 0;
}
/* perm matrisinde daha kompakt switch */
.perm-cell .switch { width: 34px; height: 20px; }
.perm-cell .switch-track::after { width: 14px; height: 14px; }
.perm-cell .switch input:checked + .switch-track::after { transform: translateX(14px); }
.role-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 22px;
}
.role-meta:empty {
    display: none;
}
.button.small { min-height: 32px; padding: 7px 10px; font-size: 12px; }
.switch { position: relative; display: inline-block; width: 38px; height: 22px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.switch-track { position: absolute; inset: 0; background: #cbd5e1; border-radius: 99px; transition: background .18s; pointer-events: none; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .18s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + .switch-track { background: var(--primary); }
.switch input:checked + .switch-track::after { transform: translateX(16px); }
.switch input:disabled + .switch-track { opacity: .55; }

/* notification toggles */
.notify-list { display: grid; gap: 8px; }
.notify-row { display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfe; cursor: pointer; font-weight: 400; }
.notify-row input { width: auto; margin-top: 2px; flex-shrink: 0; accent-color: var(--primary); }
.notify-row strong { display: block; font-size: 13px; }
.notify-row small { color: var(--muted); font-size: 12px; }

/* brand and mail design studio */
.settings-studio {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    align-items: start;
}

.settings-main {
    display: grid;
    gap: 16px;
}

.settings-card {
    display: grid;
    gap: 14px;
}

.settings-card-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.settings-card h2,
.settings-card-head h2 {
    margin: 0;
    font-size: 16px;
}

.settings-card-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12.5px;
}

.brand-settings {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.brand-logo-preview,
.mail-preview-logo {
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), #5a5dd8);
    color: #fff;
    font-weight: 800;
}

.brand-logo-preview {
    width: 116px;
    height: 116px;
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(105, 108, 255, .18);
}

.brand-logo-preview img,
.mail-preview-logo img,
.brand-logo img,
.login-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.brand-logo-preview span {
    font-size: 38px;
}

.inline-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fbfcfe;
}

.inline-check input {
    width: auto;
}

.template-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fafc;
}

.template-tabs button {
    border: 0;
    border-radius: 9px;
    padding: 9px 12px;
    background: transparent;
    color: #64748b;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.template-tabs button.is-active {
    background: #fff;
    color: var(--primary-dark);
    box-shadow: 0 6px 16px rgba(15, 23, 42, .08);
}

.template-tabs button[data-custom-tab] {
    color: #5fc22e;
}

.template-panel {
    display: none;
}

.template-panel.is-active {
    display: block;
}

.placeholder-box {
    align-self: end;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
}

.custom-template-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--line);
}

.placeholder-box strong {
    width: 100%;
    font-size: 11px;
    color: var(--muted);
}

.placeholder-box span,
.token-pill {
    padding: 4px 7px;
    border: 0;
    border-radius: 7px;
    background: #e7e7ff;
    color: #4b4dc4;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 11px;
}

.token-pill {
    cursor: pointer;
    transition: background .14s, transform .14s;
}

.token-pill:hover {
    background: #dddfff;
    transform: translateY(-1px);
}

.notify-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 14px;
}

.settings-preview {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 12px;
}

.mail-device {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #111827;
    box-shadow: 0 22px 50px rgba(15, 23, 42, .18);
}

.mail-device-top {
    display: flex;
    gap: 6px;
    padding: 4px 2px 12px;
}

.mail-device-top span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #475569;
}

.mail-preview {
    overflow: hidden;
    border-radius: 14px;
    background: #f4f7fb;
}

.mail-preview-hero {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    background: #f8fafc;
    color: #111827;
    border-bottom: 1px solid #e5e7eb;
}

.mail-preview-logo {
    width: 96px;
    height: 44px;
    border-radius: 0;
    background: transparent;
    color: var(--mail-primary);
    font-size: 17px;
}

.mail-preview-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
}

.mail-preview-hero strong,
.mail-preview-hero small {
    display: block;
}

.mail-preview-hero small {
    font-size: 12px;
    color: #64748b;
}

.mail-preview-body {
    padding: 20px;
    background: #fff;
}

.mail-chip {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 9px;
    border-radius: 99px;
    background: color-mix(in srgb, var(--mail-accent) 15%, #fff);
    color: #5fc22e;
    font-size: 11px;
    font-weight: 700;
}

.mail-preview-body h3 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.25;
}

.mail-copy {
    color: #475569;
    font-size: 13px;
}

.mail-copy p {
    margin: 0 0 10px;
}

.mail-preview-body a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 12px 22px;
    border-radius: 10px;
    background: var(--mail-primary);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(105, 108, 255, 0.35);
}

.mail-preview-foot {
    padding: 14px 20px;
    color: #64748b;
    font-size: 11px;
    background: #eef2f7;
}

.brand-logo,
.login-brand-logo {
    display: inline-grid;
    place-items: center;
    overflow: hidden;
    background: #fff;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.login-brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
}

@media (max-width: 1100px) {
    .settings-studio {
        grid-template-columns: 1fr;
    }

    .settings-preview {
        position: static;
    }
}

@media (max-width: 720px) {
    .brand-settings,
    .notify-grid {
        grid-template-columns: 1fr;
    }
}

/* live color picker with hex readout */
.color-field { display: flex; align-items: center; gap: 10px; }
.color-field input[type="color"] { width: 54px; height: 38px; padding: 3px; border-radius: 9px; cursor: pointer; flex-shrink: 0; }
.color-hex { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; font-weight: 600; color: var(--text); background: #f1f5f9; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; letter-spacing: .5px; }

/* bulk contact panel */
.bulk-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bulk-head strong { margin-right: auto; font-size: 14px; }
.bulk-head select { width: auto; min-width: 160px; }
#bulkMails, #bulkPhones { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }

.user-status-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.user-kpi { width: 100%; font: inherit; text-align: left; cursor: pointer; color: inherit; }
.user-kpi.is-active {
    border-color: color-mix(in srgb, var(--kpi) 54%, var(--line));
    box-shadow: 0 18px 40px color-mix(in srgb, var(--kpi) 18%, transparent);
}

/* field caption (tek satır başlık) */
.field-cap { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }

/* modal içi modül yetki anahtarları */
.perm-switch-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 14px; }
.perm-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfe; font-weight: 500; font-size: 13px; cursor: pointer; }
@media (max-width: 560px) { .perm-switch-list { grid-template-columns: 1fr; } }

/* sertifika ortasinda buyuk logo amblemi */
.cert-emblem { display: grid; place-items: center; min-width: 150px; height: 110px; color: var(--cert); }
.cert-emblem img { max-width: 200px; max-height: 110px; width: auto; height: auto; object-fit: contain; }
/* logo yoksa yedek muhur yuvarlak kalsin */
.cert-emblem svg { width: 70px; height: 70px; padding: 12px; border-radius: 50%; background: radial-gradient(circle, #eaf1fb, #d8e6f7); border: 2px solid rgba(29,79,145,.3); box-sizing: content-box; }
.brand-mark.has-logo { background: #fff; }
.brand-mark.has-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }

/* ===== Ogrenci profil sayfasi ===== */
.profile-grid { display: grid; grid-template-columns: 300px 1fr; gap: 18px; align-items: start; }
@media (max-width: 880px) { .profile-grid { grid-template-columns: 1fr; } }

.profile-summary {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.profile-summary::before {
    content: "";
    position: absolute; left: 0; right: 0; top: 0; height: 74px;
    background: linear-gradient(135deg, #696cff, #5a5dd8);
}
.profile-photo {
    position: relative;
    width: 92px; height: 92px; border-radius: 26px;
    margin: 8px auto 12px; display: grid; place-items: center;
    object-fit: cover; border: 4px solid #fff;
    box-shadow: 0 8px 22px rgba(15,23,42,.18);
}
.profile-photo-initials { background: linear-gradient(135deg, #696cff, #5a5dd8); color: #fff; font-size: 30px; font-weight: 700; }
.profile-summary h2 { margin: 0; font-size: 18px; }
.profile-role { display: inline-block; margin-top: 4px; padding: 3px 12px; border-radius: 999px; background: #e7e7ff; color: #4b4dc4; font-size: 12px; font-weight: 600; }
.profile-facts { margin: 18px 0 0; text-align: left; display: grid; gap: 0; }
.profile-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px dashed var(--line); }
.profile-facts dt { color: var(--muted); font-size: 12.5px; margin: 0; }
.profile-facts dd { margin: 0; font-weight: 600; font-size: 12.5px; text-align: right; word-break: break-word; }

.profile-main { display: grid; gap: 18px; }

/* eğitim ilerleme özeti */
.prog-overview { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; }
.prog-ring {
    --val: 0;
    flex-shrink: 0;
    width: 96px; height: 96px; border-radius: 50%;
    display: grid; place-items: center;
    background: conic-gradient(var(--primary, #696cff) calc(var(--val) * 1%), #eef2f7 0);
}
.prog-ring::before { content: ""; position: absolute; width: 72px; height: 72px; border-radius: 50%; background: var(--panel); }
.prog-ring { position: relative; }
.prog-ring-num { position: relative; font-size: 22px; font-weight: 700; color: var(--text); }
.prog-ring-num small { font-size: 12px; font-weight: 600; color: var(--muted); }
.prog-overview-text strong { display: block; font-size: 15px; margin-bottom: 8px; }
.prog-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.prog-chip { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.prog-chip.ch-blue { background: #e0f2fe; color: #4b4dc4; }
.prog-chip.ch-slate { background: #f1f5f9; color: #475569; }
.prog-chip.ch-red { background: #fee2e2; color: #b91c1c; }
.prog-chip.ch-amber { background: #fef3c7; color: #b45309; }
@media (max-width: 520px) { .prog-overview { flex-direction: column; text-align: center; align-items: center; } }

/* ===== Sertifika kartlari ===== */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.cert-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
    display: flex; flex-direction: column;
    transition: transform .15s, box-shadow .15s;
}
.cert-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(30,41,59,.12); }
.cert-card-ribbon { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.cert-card-seal { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #b45309; background: linear-gradient(135deg, #fef3c7, #fde68a); }
.cert-card-seal svg { width: 22px; height: 22px; }
.cert-card h2 { margin: 0 0 12px; font-size: 16px; line-height: 1.3; }
.cert-card-meta { margin: 0 0 16px; display: grid; gap: 8px; }
.cert-card-meta > div { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; }
.cert-card-meta dt { color: var(--muted); margin: 0; }
.cert-card-meta dd { margin: 0; font-weight: 600; }
.cert-card .card-actions { margin-top: auto; }
.button.full { width: 100%; justify-content: center; }

/* yatay sertifika satirlari */
.cert-list { display: grid; gap: 12px; }
.cert-row {
    display: flex; align-items: center; gap: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px 18px;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.cert-row:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(30,41,59,.10); border-color: #fcd34d; }
.cert-row-seal {
    flex-shrink: 0;
    display: grid; place-items: center;
    width: 52px; height: 52px; border-radius: 14px;
    color: #b45309; background: linear-gradient(135deg, #fef3c7, #fde68a);
}
.cert-row-seal svg { width: 26px; height: 26px; }
.cert-row-main { flex: 1; min-width: 0; }
.cert-row-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cert-row-title h2 { margin: 0; font-size: 16px; line-height: 1.3; }
.cert-row-meta { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 8px; }
.cert-row-meta span { display: flex; flex-direction: column; line-height: 1.35; }
.cert-row-meta i { font-style: normal; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.cert-row-meta b { font-size: 13px; font-weight: 600; }
.cert-row-action { flex-shrink: 0; }
@media (max-width: 680px) {
    .cert-row { flex-wrap: wrap; }
    .cert-row-action { width: 100%; }
    .cert-row-action .button { width: 100%; justify-content: center; }
}

/* Hover stability: keep hover colors/shadows, but do not move hitboxes under the cursor. */
.button:hover,
.soft:hover,
.hero-btn:hover,
.kpi:hover,
.quick-card:hover,
.course-card:hover,
.demo-card:hover,
.person-card:hover,
.report-card:hover,
.cert-card:hover,
.cert-row:hover {
    transform: none;
}

.kpi:hover .kpi-icon,
.kpi:hover::after,
.quick-card:hover .quick-ico,
.demo-card:hover .demo-go,
.token-pill:hover,
.cprog-item:hover {
    transform: none;
}

/* Eğitim bazlı atama özeti */
.assignment-groups { display:grid; gap:12px; }
.assignment-group { border:1px solid var(--line); border-radius:12px; background:#fff; overflow:hidden; }
.assignment-group > summary { display:grid; grid-template-columns:24px minmax(240px,1fr) auto auto auto auto; align-items:center; gap:10px; padding:15px 18px; cursor:pointer; list-style:none; }
.assignment-group > summary::-webkit-details-marker { display:none; }
.assignment-group > summary::before { content:'+'; width:24px; height:24px; display:grid; place-items:center; border-radius:50%; background:#e7e7ff; color:#5f61e6; font-weight:700; }
.assignment-group[open] > summary::before { content:'−'; }
.assignment-group-title { font-weight:700; color:var(--text); }
.assignment-group-count { color:var(--muted); white-space:nowrap; }
.assignment-detail-table { border-top:1px solid var(--line); padding:0 12px 8px; }
.assignment-detail-table table { margin:0; }
@media (max-width: 900px) {
    .assignment-group > summary { grid-template-columns:1fr auto; }
    .assignment-group > summary .badge, .assignment-group-count { justify-self:start; }
}

.assignment-filters { display:flex; gap:10px; margin:0 0 14px; padding:12px; border:1px solid var(--line); border-radius:12px; background:#f8fafc; }
.assignment-filters input { flex:1; min-width:220px; }
.assignment-filters select { width:190px; }
@media (max-width: 640px) { .assignment-filters { flex-direction:column; } .assignment-filters select { width:100%; } }

.assignment-group-date { color:var(--muted); font-size:11px; white-space:nowrap; }
.assignment-group-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:10px 14px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:#f8fafc; }
.assignment-group-toolbar input { flex:1; min-width:210px; }
.assignment-group-toolbar select { width:170px; }
.assignment-group-toolbar form { margin:0; }
.panel-summary { cursor:pointer; list-style:none; }
.panel-summary::-webkit-details-marker { display:none; }
.notification-panel { overflow:hidden; }
.notification-filters { display:flex; gap:10px; margin:0 0 14px; padding:0 12px; }
.notification-filters input { flex:1; min-width:220px; }
.notification-filters select { width:190px; }
@media (max-width: 1100px) { .assignment-group > summary { grid-template-columns:24px minmax(180px,1fr) auto auto; } .assignment-group-date { white-space:normal; } }
@media (max-width: 640px) { .notification-filters { flex-direction:column; } .notification-filters select { width:100%; } .assignment-group-toolbar select { width:100%; } }

/* Atama grup başlığı: dar ekranlarda rozetlerin üst üste binmesini önler */
.assignment-group > summary { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; }
.assignment-group > summary::before { flex:0 0 24px; }
.assignment-group-title { flex:1 1 320px; min-width:220px; }
.assignment-group-count, .assignment-group-date, .assignment-group > summary .badge { flex:0 0 auto; }
.assignment-group-date { max-width:230px; }
@media (max-width: 760px) {
    .assignment-group-title { flex-basis:calc(100% - 36px); }
    .assignment-group-count, .assignment-group-date, .assignment-group > summary .badge { margin-left:36px; }
    .assignment-group-toolbar .button { width:100%; }
}

.assignment-group-date { display:inline-flex; align-items:center; min-height:28px; padding:4px 9px; border-radius:8px; background:#f8fafc; border:1px solid #e2e8f0; font-size:12px; }
.assignment-group-date strong { margin-right:4px; color:#475569; }
.assignment-group-date--due { color:#92400e; background:#fffbeb; border-color:#fcd34d; font-weight:700; }
.assignment-group-date--due.is-overdue { color:#b91c1c; background:#fef2f2; border-color:#fca5a5; box-shadow:0 0 0 2px rgba(239,68,68,.08); }
.assignment-group-date--due.is-overdue strong { color:#991b1b; }

/* ==========================================================================
   BİLDİRİM MERKEZİ (NOTIFICATION CENTER) & UI GELİŞTİRMELERİ
   ========================================================================== */
.notif-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.notif-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--line, #e2e8f0);
    background: #ffffff;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.notif-btn:hover {
    background: #f8fafc;
    color: #1e293b;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.notif-btn svg {
    width: 20px;
    height: 20px;
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
    display: none;
    pointer-events: none;
    animation: notifPulse 2.5s infinite;
}

.notif-badge.is-active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@keyframes notifPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); box-shadow: 0 0 10px rgba(239, 68, 68, 0.6); }
    100% { transform: scale(1); }
}

.notif-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 380px;
    max-width: min(380px, calc(100vw - 32px));
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.16), 0 0 1px rgba(15, 23, 42, 0.1);
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transform-origin: top right;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.notif-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.notif-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.notif-menu-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notif-menu-title strong {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.notif-count-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eff6ff;
    color: #4b4dc4;
    font-size: 11px;
    font-weight: 600;
}

.notif-mark-all-btn {
    border: none;
    background: transparent;
    color: #696cff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
}

.notif-mark-all-btn:hover {
    background: #e7e7ff;
    color: #5f61e6;
}

.notif-mark-all-btn.is-hidden {
    display: none !important;
}

.notif-list {
    max-height: 400px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.notif-list::-webkit-scrollbar {
    width: 6px;
}

.notif-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.notif-list::-webkit-scrollbar-track {
    background: #f8fafc;
}

.notif-empty {
    padding: 40px 20px;
    text-align: center;
    color: #94a3b8;
}

.notif-empty svg {
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
    color: #cbd5e1;
}

.notif-empty p {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
}

.notif-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f8fafc;
    transition: background 0.15s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-item:hover {
    background: #f8fafc;
}

.notif-item.is-unread {
    background: #f0fdf4;
}

.notif-item.is-unread::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    border-radius: 2px;
    background: #71dd37;
}

.notif-item-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.notif-item-icon svg {
    width: 18px;
    height: 18px;
}

.notif-icon-course {
    background: #dcdcff;
    color: #5f61e6;
}

.notif-icon-certificate {
    background: #fef3c7;
    color: #d97706;
}

.notif-icon-warning {
    background: #ffedd5;
    color: #ea580c;
}

.notif-icon-danger {
    background: #fee2e2;
    color: #dc2626;
}

.notif-icon-info {
    background: #e0f2fe;
    color: #5f61e6;
}

.notif-item-body {
    flex: 1;
    min-width: 0;
}

.notif-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 3px;
    line-height: 1.35;
}

.notif-item-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 6px;
    word-break: break-word;
}

.notif-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
}

.notif-item-time {
    color: #94a3b8;
}

.notif-item-link {
    color: #5f61e6;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

    align-items: center;
    gap: 8px;
}

.notif-menu-title strong {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.notif-count-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eff6ff;
    color: #4b4dc4;
    font-size: 11px;
    font-weight: 600;
}

.notif-mark-all-btn {
    border: none;
    background: transparent;
    color: #696cff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
}

.notif-mark-all-btn:hover {
    background: #e7e7ff;
    color: #5f61e6;
}

.notif-mark-all-btn.is-hidden {
    display: none !important;
}

.notif-list {
    max-height: 400px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.notif-list::-webkit-scrollbar {
    width: 6px;
}

.notif-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.notif-list::-webkit-scrollbar-track {
    background: #f8fafc;
}

.notif-empty {
    padding: 40px 20px;
    text-align: center;
    color: #94a3b8;
}

.notif-empty svg {
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
    color: #cbd5e1;
}

.notif-empty p {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
}

.notif-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f8fafc;
    transition: background 0.15s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-item:hover {
    background: #f8fafc;
}

.notif-item.is-unread {
    background: #f0fdf4;
}

.notif-item.is-unread::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    border-radius: 2px;
    background: #71dd37;
}

.notif-item-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.notif-item-icon svg {
    width: 18px;
    height: 18px;
}

.notif-icon-course {
    background: #dcdcff;
    color: #5f61e6;
}

.notif-icon-certificate {
    background: #fef3c7;
    color: #d97706;
}

.notif-icon-warning {
    background: #ffedd5;
    color: #ea580c;
}

.notif-icon-danger {
    background: #fee2e2;
    color: #dc2626;
}

.notif-icon-info {
    background: #e0f2fe;
    color: #5f61e6;
}

.notif-item-body {
    flex: 1;
    min-width: 0;
}

.notif-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 3px;
    line-height: 1.35;
}

.notif-item-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 6px;
    word-break: break-word;
}

.notif-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
}

.notif-item-time {
    color: #94a3b8;
}

.notif-item-link {
    color: #5f61e6;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.notif-item-link:hover {
    color: #5f61e6;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .notif-menu {
        right: -70px;
        width: 320px;
    }
}

/* ==========================================================================
   MOBİL VE RESPONSİVE TASARIM İYİLEŞTİRMELERİ
   ========================================================================== */
.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    border: 1px solid var(--line, #e2e8f0);
    background: #ffffff;
    color: #334155;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.sidebar-toggle:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.sidebar-toggle svg {
    width: 20px;
    height: 20px;
}

.sidebar-close-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    transition: background 0.15s ease;
}

.sidebar-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.sidebar-close-btn svg {
    width: 18px;
    height: 18px;
}

.sidebar-backdrop {
    display: none;
}

@media (max-width: 860px) {
    .app-shell {
        display: block;
        min-height: 100vh;
        overflow-x: hidden;
    }

    .sidebar-toggle {
        display: inline-flex;
    }

    .sidebar-close-btn {
        display: inline-flex;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 270px;
        max-width: 85vw;
        height: 100vh;
        z-index: 2100;
        transform: translateX(-100%);
        transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 0 35px rgba(15, 23, 42, 0.35);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.55);
        z-index: 2050;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s ease;
        backdrop-filter: blur(2px);
    }

    .sidebar-backdrop.is-open {
        opacity: 1;
        visibility: visible;
    }

    .main {
        width: 100%;
        min-width: 0;
    }

    .topbar {
        padding: 10px 14px;
        gap: 10px;
    }

    .topbar-title h1 {
        font-size: 15px;
        line-height: 1.25;
    }

    .topbar-title p {
        font-size: 11px;
    }

    .content {
        padding: 14px 12px;
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        margin-bottom: 16px !important;
    }

    .stat {
        padding: 14px !important;
    }

    .stat strong {
        font-size: 22px !important;
    }

    /* Tabloların mobilde ekranı kırmasını önler */
    .panel {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .panel > table {
        min-width: 580px;
    }
}

@media (max-width: 520px) {
    .stats {
        grid-template-columns: 1fr !important;
    }

    .topbar {
        padding: 8px 10px;
    }

    .topbar-title p {
        display: none; /* Mobilde yer kazanmak için role adını gizle */
    }

    .topbar-user {
        gap: 8px;
    }

    .notif-btn {
        width: 36px;
        height: 36px;
    }

    .avatar {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }

    .topbar-user .button.ghost {
        padding: 5px 8px;
        font-size: 11px;
    }
}

/* ==========================================================================
   ÖZEL MOBİL DÜZELTMELERİ (TOPBAR, KPI KARTLARI & TABLOLAR)
   ========================================================================== */
.topbar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}

.topbar-left {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

.topbar-title {
    min-width: 0 !important;
    overflow: hidden !important;
}

.topbar-title h1 {
    font-size: 16px !important;
    margin: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.topbar-user {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
}

@media (max-width: 768px) {
    /* 1. Üst Bar: Başlık ve Butonlar Tek Satırda */
    .topbar {
        padding: 10px 14px !important;
    }
    .topbar-title p {
        display: none !important;
    }

    /* 2. KPI Kartları: Mobilde Ferah ve Taşırmayan Düzen */
    .user-status-kpis {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }
    .user-status-kpis .kpi {
        padding: 10px 6px !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 6px !important;
        min-width: 0 !important;
    }
    .user-status-kpis .kpi-icon {
        width: 34px !important;
        height: 34px !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }
    .user-status-kpis .kpi-icon svg {
        width: 18px !important;
        height: 18px !important;
    }
    .user-status-kpis .kpi-body {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        min-width: 0 !important;
    }
    .user-status-kpis .kpi-label {
        font-size: 11px !important;
        font-weight: 600 !important;
        margin-bottom: 2px !important;
    }
    .user-status-kpis .kpi-value {
        font-size: 18px !important;
        line-height: 1.1 !important;
    }
    .user-status-kpis .kpi-sub {
        display: none !important; /* Mobilde taşan uzun açıklamayı gizle */
    }

    /* 3. Kullanıcılar Tablosu: Yatay Kaydırma ve Okunabilir Sütunlar */
    .users-panel .table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border-radius: 12px !important;
    }
    .users-panel table {
        table-layout: auto !important;
        min-width: 580px !important;
        width: 100% !important;
    }
    .users-panel col {
        width: auto !important;
    }
    .users-panel td,
    .users-panel th {
        white-space: nowrap !important;
        padding: 10px 12px !important;
    }
    .users-panel .cell-role {
        min-width: 95px !important;
        max-width: none !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
    .users-panel .u-cell {
        min-width: 160px !important;
    }
    .users-panel td.cell-dept,
    .users-panel td.cell-comp,
    .users-panel td.cell-edu {
        min-width: 80px !important;
    }
}

/* ==========================================================================
   YENİ NESİL MODERN GİRİŞ (LOGIN) EKRANI STİLLERİ
   ========================================================================== */
.auth-modern {
    display: flex;
    min-height: 100vh;
    background: #f8fafc;
}

.auth-modern .auth-brand {
    position: relative;
    flex: 1 1 50%;
    background: linear-gradient(150deg, #070b14 0%, #3a3c9e 55%, #0f172a 100%);
    color: #f8fafc;
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.auth-brand-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.5;
}

.auth-glow-1 {
    width: 380px;
    height: 380px;
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.45) 0%, transparent 70%);
}

.auth-glow-2 {
    width: 420px;
    height: 420px;
    bottom: -120px;
    right: -100px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, transparent 70%);
}

.auth-hero-tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.18);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #c9caff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.auth-brand-body h2 {
    font-size: 38px;
    line-height: 1.22;
    font-weight: 800;
    letter-spacing: -0.8px;
    margin: 0 0 16px;
    color: #ffffff;
}

.gradient-text {
    background: linear-gradient(135deg, #8f91ff 0%, #8f91ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-brand-body p {
    font-size: 15px;
    line-height: 1.6;
    color: #94a3b8;
    max-width: 460px;
    margin-bottom: 36px;
}

.auth-glass-cards {
    display: grid;
    gap: 16px;
    max-width: 440px;
}

.auth-glass-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 18px;
    padding: 18px 22px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
}

.cert-showcase {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cert-showcase-badge {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
    flex-shrink: 0;
}

.cert-showcase-badge svg {
    width: 24px;
    height: 24px;
}

.cert-showcase-meta {
    flex: 1;
    min-width: 0;
}

.cert-showcase-meta small {
    display: block;
    color: #fbbf24;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cert-showcase-meta strong {
    display: block;
    font-size: 15px;
    color: #ffffff;
    margin: 2px 0 1px;
}

.cert-showcase-meta span {
    display: block;
    font-size: 12px;
    color: #94a3b8;
}

.cert-status-tag {
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #8ee75c;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.stats-showcase {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 16px 20px;
}

.stat-mini {
    text-align: center;
}

.stat-mini-num {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.stat-mini-label {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.stat-mini-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.12);
}

.auth-brand-foot {
    color: #64748b;
    font-size: 12px;
}

/* Sağ Giriş Formu */
.auth-modern .auth-form-wrap {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: #f8fafc;
}

.auth-form-card {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 22px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.08);
    padding: 40px;
}

.auth-form-head {
    margin-bottom: 28px;
}

.auth-mobile-logo {
    display: none;
    margin-bottom: 20px;
}

.auth-form-head h1 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
    letter-spacing: -0.3px;
}

.auth-form-head .auth-sub {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

.form-group-modern {
    margin-bottom: 20px;
}

.form-group-modern label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-with-icon .field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 3;
    width: 20px;
    height: 20px;
    line-height: 0;
}

.input-with-icon .field-icon svg {
    width: 18px;
    height: 18px;
}

.auth-form .input-with-icon input,
.input-with-icon input {
    width: 100% !important;
    height: 48px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    padding-left: 46px !important;
    padding-right: 16px !important;
    border-radius: 12px !important;
    border: 1.5px solid #e2e8f0 !important;
    background: #ffffff !important;
    font-size: 14px !important;
    color: #1e293b !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.auth-form .input-with-icon.input-pass-wrap input,
.input-pass-wrap input {
    padding-right: 48px !important;
}

.input-with-icon input:focus {
    outline: none !important;
    border-color: #696cff !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14) !important;
}

.pass-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.15s ease;
}

.pass-toggle-btn:hover {
    color: #334155;
}

.pass-toggle-btn svg {
    width: 18px;
    height: 18px;
}

.modern-login-btn {
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #5f61e6 0%, #696cff 100%) !important;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 20px -4px rgba(105, 108, 255, 0.45);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    margin-top: 8px;
}

.modern-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -4px rgba(105, 108, 255, 0.55);
}

.modern-login-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.modern-login-btn:hover svg {
    transform: translateX(3px);
}

@media (max-width: 990px) {
    .auth-modern {
        flex-direction: column;
    }
    .auth-modern .auth-brand {
        padding: 36px 24px;
    }
    .auth-brand-body h2 {
        font-size: 28px;
    }
    .auth-glass-cards {
        max-width: 100%;
    }
    .auth-modern .auth-form-wrap {
        padding: 30px 16px;
    }
    .auth-form-card {
        padding: 28px 22px;
        box-shadow: none;
        border: none;
        background: transparent;
    }
}

/* ==========================================================================
   MODERN ÖĞRENCİ (STUDENT) EĞİTİM PORTALI STİLLERİ
   ========================================================================== */
.student-hero-banner {
    position: relative;
    background: linear-gradient(135deg, #3a3c9e 0%, #0f172a 100%);
    border-radius: 20px;
    padding: 32px 36px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.student-hero-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    top: -100px;
    right: 20%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.student-hero-left {
    flex: 1;
    min-width: 0;
    z-index: 1;
}

.student-hero-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #c9caff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.student-hero-left h1 {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.emoji-wave {
    display: inline-block;
    animation: waveEmoji 2s infinite;
    transform-origin: 70% 70%;
}

@keyframes waveEmoji {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

.student-hero-left p {
    color: #94a3b8;
    font-size: 14px;
    margin: 0 0 20px;
    max-width: 500px;
}

.student-hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 8px 18px;
}

.sh-stat strong {
    font-size: 15px;
    font-weight: 800;
    color: #8f91ff;
    margin-right: 6px;
}

.sh-stat span {
    font-size: 12px;
    color: #cbd5e1;
}

.sh-stat-divider {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.18);
}

/* Kaldığın Yerden Devam Et Kartı */
.student-resume-card {
    width: 340px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 16px;
    padding: 20px;
    z-index: 1;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.src-badge {
    font-size: 10.5px;
    font-weight: 700;
    color: #8ee75c;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
}

.src-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.src-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 6px;
}

.src-bar {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.15);
    overflow: hidden;
    margin-bottom: 14px;
}

.src-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #71dd37, #8f91ff);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.src-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, #71dd37 0%, #5fc22e 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.src-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.55);
}

.src-btn svg {
    width: 16px;
    height: 16px;
}

.student-resume-empty {
    text-align: center;
    padding: 24px 18px;
}

.src-empty-icon {
    font-size: 32px;
    margin-bottom: 6px;
}

.student-resume-empty h3 {
    font-size: 15px;
    color: #ffffff;
    margin: 0 0 6px;
}

.student-resume-empty p {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
}

/* Modern Öğrenci KPI Kartları */
.student-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.kpi-modern {
    background: #ffffff;
    border: 1px solid var(--line, #e2e8f0);
    border-radius: 16px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
}

.kpi-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.08);
}

.km-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--accent) 12%, #ffffff);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.km-icon svg {
    width: 20px;
    height: 20px;
}

.km-meta {
    display: flex;
    flex-direction: column;
}

.km-val {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.km-label {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 500;
    margin-top: 2px;
}

.section-head-modern {
    margin-bottom: 18px;
}

.section-head-modern h2 {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 3px;
}

.section-head-modern p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* Modern Kurs Kartları Grid */
.course-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 20px;
}

.modern-card {
    background: #ffffff;
    border: 1px solid var(--line, #e2e8f0);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 24px -4px rgba(15, 23, 42, 0.05);
    transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.modern-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}

.modern-card.is-completed {
    border-color: #bbf7d0;
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.m-card-banner {
    padding: 16px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.m-card-badges {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.m-cat-tag {
    font-size: 11px;
    font-weight: 700;
    color: #696cff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.m-status-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.tag-success { background: #dcfce7; color: #15803d; }
.tag-warning { background: #fef3c7; color: #b45309; }
.tag-progress { background: #e0f2fe; color: #4b4dc4; }
.tag-new { background: #f1f5f9; color: #475569; }

/* SVG Dairesel İlerleme Halkası */
.m-card-circle {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.m-progress-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.m-ring-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 3.8;
}

.m-ring-stroke {
    fill: none;
    stroke: #71dd37;
    stroke-width: 3.8;
    stroke-linecap: round;
    transition: stroke-dasharray 0.5s ease;
}

.m-ring-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    color: #0f172a;
}

.m-card-body {
    padding: 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.m-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
    line-height: 1.35;
}

.m-card-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.m-due-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.m-due-row svg {
    width: 15px;
    height: 15px;
    color: #94a3b8;
}

.m-due-row.is-overdue {
    color: #dc2626;
}

.m-due-row.is-overdue svg {
    color: #dc2626;
}

.due-warning-tag {
    margin-left: auto;
    padding: 2px 6px;
    border-radius: 4px;
    background: #fee2e2;
    color: #dc2626;
    font-size: 10px;
    font-weight: 700;
}

.m-card-foot {
    padding: 14px 20px 18px;
    background: #ffffff;
}

.m-actions-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.m-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700 !important;
}

.m-action-btn svg {
    width: 16px;
    height: 16px;
}

.m-exam-btn {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #334155 !important;
    font-weight: 700 !important;
}

.m-exam-btn:hover:not(:disabled) {
    background: #e7e7ff !important;
    border-color: #696cff !important;
    color: #5f61e6 !important;
}

.m-eval-btn {
    background: #fffbeb !important;
    border: 1.5px solid #fcd34d !important;
    color: #92400e !important;
    font-weight: 700 !important;
}

.m-completed-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.m-badge-cert {
    font-size: 12px;
    font-weight: 700;
    color: #15803d;
}

@media (max-width: 900px) {
    .student-hero-banner {
        flex-direction: column;
        padding: 24px 20px;
    }
    .student-resume-card {
        width: 100%;
    }
    .student-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .student-kpis {
        grid-template-columns: 1fr;
    }
    .student-hero-stats {
        width: 100%;
        justify-content: space-around;
        box-sizing: border-box;
    }
}

/* ==========================================================================
   KULLANICI TABLOSU MİKRO İLERLEME ÇUBUĞU
   ========================================================================== */
.user-progress-pill {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 110px;
}

.upp-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.upp-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #696cff 0%, #71dd37 100%);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.upp-txt {
    font-size: 11px;
    color: #64748b;
    line-height: 1;
}

.upp-txt b {
    color: #1e293b;
}



/* =========================================================================
   Kurumsal premium rotuslar
   ========================================================================= */

/* Baslik hiyerarsisi: daha siki harf araligi, daha net kademe */
h1 { letter-spacing: -.022em; font-weight: 700; }
h2 { letter-spacing: -.018em; font-weight: 650; }
h3, h4 { letter-spacing: -.012em; }

/* Sayisal degerler hizali gorunsun (KPI, tablo, rapor) */
.kpi-value, .stat, table td, .color-hex { font-variant-numeric: tabular-nums; }

/* Klavye odagi her yerde gorunur olsun - erisilebilirlik */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
    outline: none;
    box-shadow: var(--ring);
    border-radius: var(--radius-sm);
}

/* Birincil dugmeye kurumsal gradyan ve derinlik */
.button.primary {
    background: linear-gradient(135deg, var(--cu-azure) 0%, var(--cu-azure-dark) 100%);
    border-color: transparent;
    box-shadow: 0 1px 2px rgba(34, 48, 62, .12), 0 4px 12px rgba(105, 108, 255, .22);
}
.button.primary:hover {
    filter: brightness(1.06);
    box-shadow: 0 2px 4px rgba(34, 48, 62, .14), 0 8px 20px rgba(105, 108, 255, .30);
}
.button.primary:active { transform: translateY(1px); filter: brightness(.97); }

/* Paneller: tek duz cizgi yerine yumusak katmanli golge */
.panel { box-shadow: var(--shadow); border-color: var(--line); }

/* Kenar cubugu: kurumsal lacivert zemin */
.sidebar {
    background: linear-gradient(180deg, var(--cu-navy) 0%, var(--cu-navy-soft) 100%);
    border-right: 1px solid rgba(255, 255, 255, .07);
}
.sidebar .nav-link { color: rgba(255, 255, 255, .74); }
.sidebar .nav-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.sidebar .nav-link.is-active {
    background: rgba(105, 108, 255, .20);
    color: #fff;
    box-shadow: inset 3px 0 0 var(--cu-azure);
}
.sidebar .nav-group-title { color: rgba(255, 255, 255, .42); letter-spacing: .08em; }
.sidebar .brand { color: #fff; }

/* Sertifika vurgusu icin altin rozet tonu */
.badge.gold, .badge.certificate {
    background: linear-gradient(135deg, var(--cu-gold-light), var(--cu-gold));
    color: #3a2c00;
}

/* Hareketi azalt tercihine saygi */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
}
/* =========================================================================
   Giris sayfasi - sade, ortalanmis, kurumsal
   ========================================================================= */
.signin {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background:
        radial-gradient(1100px 600px at 50% -10%, #5a5cd9 0%, transparent 60%),
        linear-gradient(180deg, #43459e 0%, #3a3c9e 100%);
}

.signin-main { width: 100%; max-width: 420px; }

.signin-card {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    padding: 40px 32px 32px;
    box-shadow: 0 1px 2px rgba(0, 20, 34, .2), 0 24px 56px rgba(0, 20, 34, .28);
}

.signin-head { text-align: center; margin-bottom: 28px; }

.signin-logo { height: 44px; width: auto; margin: 0 auto 20px; display: block; }

.signin-mark {
    width: 52px; height: 52px;
    margin: 0 auto 20px;
    display: grid; place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--cu-azure), var(--cu-azure-dark));
    color: #fff;
}
.signin-mark svg { width: 26px; height: 26px; }

.signin-head h1 {
    margin: 0 0 6px;
    font-size: 25px;
    font-weight: 650;
    letter-spacing: -.02em;
    color: var(--text);
}
.signin-head p { margin: 0; font-size: 14px; color: var(--muted); }

.signin-alert {
    display: flex; align-items: flex-start; gap: 10px;
    margin-bottom: 20px; padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: #fdecec;
    border: 1px solid #f6cdcd;
    color: #9b1c1c;
    font-size: 13.5px; line-height: 1.45;
}
.signin-alert svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }

.signin-form { display: flex; flex-direction: column; gap: 18px; }

.signin-field { display: flex; flex-direction: column; gap: 7px; }
.signin-field label { font-size: 13px; font-weight: 550; color: var(--text); }

.signin-input { position: relative; display: flex; align-items: center; }

.signin-input-icon {
    position: absolute; left: 14px;
    width: 18px; height: 18px;
    color: #8da2b5; pointer-events: none;
}

.signin-input input {
    width: 100%;
    height: 46px;
    padding: 0 14px 0 44px;
    font: inherit;
    font-size: 14.5px;
    color: var(--text);
    background: var(--panel-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.signin-input input::placeholder { color: #9fb2c2; }
.signin-input input:hover { border-color: #cddcea; }
.signin-input input:focus {
    outline: none;
    background: var(--panel);
    border-color: var(--cu-azure);
    box-shadow: var(--ring);
}
.signin-input:has(.signin-pass-toggle) input { padding-right: 46px; }

.signin-pass-toggle {
    position: absolute; right: 8px;
    display: grid; place-items: center;
    width: 32px; height: 32px;
    border: none; background: transparent;
    color: #8da2b5; cursor: pointer;
    border-radius: 8px;
    transition: color .15s, background .15s;
}
.signin-pass-toggle:hover { color: var(--cu-azure-dark); background: #f0f0ff; }
.signin-pass-toggle svg { width: 18px; height: 18px; }

.signin-submit {
    height: 46px;
    margin-top: 4px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: inherit; font-size: 15px; font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--cu-azure) 0%, var(--cu-azure-dark) 100%);
    border: none; border-radius: var(--radius-sm);
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(34, 48, 62, .14), 0 6px 16px rgba(105, 108, 255, .26);
    transition: filter .15s, box-shadow .15s, transform .08s;
}
.signin-submit svg { width: 17px; height: 17px; transition: transform .18s; }
.signin-submit:hover { filter: brightness(1.06); }
.signin-submit:hover svg { transform: translateX(3px); }
.signin-submit:active { transform: translateY(1px); }

.signin-foot {
    margin-top: 24px;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    text-align: center;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .5);
}
.signin-sign { color: rgba(255, 255, 255, .68); }
.signin-sign strong { color: rgba(255, 255, 255, .92); font-weight: 600; }

@media (max-width: 420px) {
    .signin-card { padding: 32px 22px 26px; }
    .signin-head h1 { font-size: 22px; }
}

/* Panel sayfalarinda ust bardaki imza */
.topbar-sign {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    letter-spacing: .01em;
}
.topbar-sign strong { color: var(--text); font-weight: 600; }
@media (max-width: 900px) { .topbar-sign { display: none; } }
/* Giris alanlari: 1129. satirdaki genel input kurali uc :not() ile yuksek
   ozgullukte; ikon bosluklarinin gecerli olmasi icin ayni ozgullukte yaziyoruz. */
.signin .signin-form .signin-input input:not([type="hidden"]) {
    height: 46px;
    padding: 0 14px 0 44px;
    border-radius: var(--radius-sm);
    background: var(--panel-alt);
}
.signin .signin-form .signin-input:has(.signin-pass-toggle) input:not([type="hidden"]) { padding-right: 46px; }

/* Sifre goster/gizle: gizli ikon gercekten gizlensin */
.signin-pass-toggle svg[hidden] { display: none; }

/* Selamlama ikonu (emoji yerine SVG) - seffaf zemin, her OS'ta ayni gorunur */
.hero-emoji, .emoji-wave {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    vertical-align: -.1em;
    color: var(--cu-gold-light);
    animation: none;                 /* donen el sallama ikona uymuyor */
}
.hero-emoji svg, .emoji-wave svg {
    width: 100%;
    height: 100%;
    display: block;
}
/* Imza: sayfa basliginin yaninda, ikincil agirlikta */
.topbar-title h1 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.topbar-title .topbar-sign {
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
    letter-spacing: .01em;
}
.topbar-title .topbar-sign strong { font-weight: 600; color: var(--muted); }
@media (max-width: 780px) { .topbar-title .topbar-sign { display: none; } }

/* =========================================================================
   Degerlendirme sonuclari
   Genis matris tablo yerine: ozet -> yorumlar -> tekil kayitlar
   ========================================================================= */

/* --- Cevap dagilimi --- */
.evalr-dist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px 28px;
    padding: 4px 2px 2px;
}
.evalr-dist-q {
    font-size: 13.5px;
    font-weight: 550;
    color: var(--text);
    line-height: 1.45;
    margin-bottom: 10px;
}
.evalr-dist-bar {
    height: 7px;
    border-radius: 999px;
    background: #e8eef4;
    overflow: hidden;
}
.evalr-dist-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--cu-azure);
}
.evalr-dist-bar span.is-pos { background: var(--success); }
.evalr-dist-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-top: 7px;
    font-size: 12.5px;
    color: var(--muted);
}
.evalr-dist-meta strong { font-size: 13.5px; color: var(--text); font-weight: 600; }
.evalr-dist-rest {
    display: flex; flex-wrap: wrap; gap: 6px 10px;
    margin-top: 6px;
    font-size: 11.5px; color: var(--muted);
}
.evalr-dist-empty { font-size: 12.5px; color: var(--muted); font-style: italic; }

/* --- Yazili yorumlar --- */
.evalr-comment-group { margin-top: 22px; }
.evalr-comment-group:first-of-type { margin-top: 6px; }
.evalr-comment-q {
    margin: 0 0 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
}
.evalr-comment-q small {
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #e7e7ff;
    color: var(--cu-azure-dark);
    font-size: 11px;
    font-weight: 600;
}
.evalr-comments {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}
.evalr-comment {
    margin: 0;
    padding: 14px 16px;
    background: var(--panel-alt);
    border: 1px solid var(--line);
    border-left: 3px solid var(--cu-azure);
    border-radius: var(--radius-sm);
}
.evalr-comment p {
    margin: 0 0 8px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text);
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.evalr-comment cite {
    font-style: normal;
    font-size: 11.5px;
    color: var(--muted);
}

/* --- Tekil katilimlar --- */
.evalr-filter {
    width: 260px;
    max-width: 100%;
    height: 36px;
    padding: 0 12px;
    font: inherit;
    font-size: 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--panel-alt);
}
.evalr-filter:focus { outline: none; border-color: var(--cu-azure); box-shadow: var(--ring); }

.evalr-list { display: flex; flex-direction: column; gap: 8px; }

.evalr-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--panel);
    overflow: hidden;
}
.evalr-item[open] { border-color: #cfe4f2; box-shadow: var(--shadow-sm); }

.evalr-item > summary {
    display: grid;
    grid-template-columns: minmax(180px, 1.6fr) minmax(160px, 2fr) minmax(110px, 1fr) auto 20px;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    cursor: pointer;
    list-style: none;
}
.evalr-item > summary::-webkit-details-marker { display: none; }
.evalr-item > summary:hover { background: var(--panel-alt); }

.evalr-who { display: flex; flex-direction: column; min-width: 0; }
.evalr-who strong { font-size: 13.5px; font-weight: 600; color: var(--text); }
.evalr-who small { font-size: 11.5px; color: var(--muted); }
.evalr-who strong, .evalr-who small,
.evalr-course, .evalr-dept {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.evalr-course { font-size: 13px; color: var(--text); }
.evalr-dept { font-size: 12.5px; color: var(--muted); }
.evalr-date { font-size: 12px; color: var(--muted); white-space: nowrap; }
.evalr-chev { width: 18px; height: 18px; color: var(--muted); transition: transform .18s; }
.evalr-item[open] .evalr-chev { transform: rotate(180deg); }

.evalr-answers {
    border-top: 1px solid var(--line);
    background: var(--panel-alt);
    padding: 6px 16px 14px;
}
.evalr-answer {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--line);
}
.evalr-answer:last-child { border-bottom: none; }
.evalr-answer.is-empty { opacity: .55; }
.evalr-answer-q { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.evalr-answer-a {
    font-size: 13px; font-weight: 550; color: var(--text);
    line-height: 1.5; overflow-wrap: anywhere; white-space: pre-line;
}

.evalr-noresult {
    padding: 22px 4px;
    text-align: center;
    font-size: 13.5px;
    color: var(--muted);
}

/* --- Dar ekran: satirlari dikey yiginla --- */
@media (max-width: 860px) {
    .evalr-item > summary {
        grid-template-columns: 1fr 20px;
        grid-template-areas:
            "who chev"
            "course chev"
            "meta chev";
        gap: 4px 12px;
        align-items: start;
    }
    .evalr-who { grid-area: who; }
    .evalr-course { grid-area: course; white-space: normal; }
    .evalr-dept { grid-area: meta; }
    .evalr-date { display: none; }
    .evalr-chev { grid-area: chev; align-self: center; }
    .evalr-answer { grid-template-columns: 1fr; gap: 4px; }
    .evalr-filter { width: 100%; }
}

/* =========================================================================
   Yonetici video onizleme (ogrenci oynaticisindan bagimsiz)
   ========================================================================= */
body.vprev-open { overflow: hidden; }

.vprev {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}
.vprev[hidden] { display: none; }

.vprev-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 20, 34, .68);
    backdrop-filter: blur(3px);
}

.vprev-box {
    position: relative;
    width: min(880px, 100%);
    background: var(--panel);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 20, 34, .2), 0 28px 64px rgba(0, 20, 34, .35);
    animation: vprevIn .16s ease-out;
}
@keyframes vprevIn { from { opacity: 0; transform: translateY(8px) scale(.99); } }

.vprev-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px 14px 20px;
    border-bottom: 1px solid var(--line);
}
.vprev-title {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vprev-close {
    flex: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: background .15s, color .15s;
}
.vprev-close:hover { background: #eef4f9; color: var(--text); }
.vprev-close svg { width: 18px; height: 18px; }

.vprev-stage { background: #000; }
.vprev-video {
    display: block;
    width: 100%;
    max-height: 68vh;
    background: #000;
}

.vprev-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 20px;
    border-top: 1px solid var(--line);
    background: var(--panel-alt);
    font-size: 12px;
}
.vprev-status { color: var(--muted); }
.vprev-status.is-error { color: var(--danger); font-weight: 550; }
.vprev-hint { color: var(--muted); text-align: right; }

/* Liste icindeki kucuk onizleme kapagi */
.vid-thumb-img {
    width: 76px;
    height: 44px;
    object-fit: cover;
    border-radius: 8px;
    background: #0d1b26;
    display: block;
}
.vid-preview-btn {
    position: relative;
    display: inline-flex;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 8px;
}
.vid-preview-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: rgba(0, 20, 34, .34) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M8 5v14l11-7z'/></svg>") no-repeat center / 20px 20px;
    opacity: .9;
    transition: opacity .15s;
}
.vid-preview-btn:hover::after { opacity: 1; background-color: rgba(0, 20, 34, .5); }
.vid-preview-btn:focus-visible { box-shadow: var(--ring); }

@media (max-width: 640px) {
    .vprev-hint { display: none; }
    .vprev-video { max-height: 52vh; }
}

/* =========================================================================
   SNEAT TASARIM DILI
   -------------------------------------------------------------------------
   Referans sablondan OLCULEREK cikarilan tasarim sistemi. Kaynak kod veya
   varlik kopyalanmadi; yalnizca olculen degerler (renk, yaricap, golge,
   tipografi olcegi) kendi bilesenlerimize uygulandi.

   Imza ozellikleri:
     1) Pastel zeminli ikon kutulari  (acik zemin + doygun ikon)
     2) Renkli buton golgeleri        (butonun kendi renginde parilti)
     3) Kucuk yaricap (4-6px) + ince baslik agirligi -> ferah, hafif his
     4) Beyaz kenar cubugu, yuzen ust bar
   ========================================================================= */

/* --- Tipografi tabani --- */
body {
    font-family: 'Public Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.53;
    color: var(--sn-body);
    background: var(--sn-bg);
}

h1, h2, h3, h4, h5 {
    color: var(--sn-heading);
    font-weight: 500;
    letter-spacing: normal;
}
h1 { font-size: 22px; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }
h4, h5 { font-size: 15px; }

/* =========================================================================
   Kenar cubugu - beyaz, hafif
   ========================================================================= */
.sidebar {
    background: var(--sn-card);
    border-right: 1px solid var(--sn-line);
    box-shadow: none;
}

.sidebar .brand { color: var(--sn-heading); }

.sidebar .nav-group-title {
    color: var(--sn-muted);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .4px;
    text-transform: uppercase;
    opacity: .85;
}

.sidebar .nav-link {
    color: var(--sn-body);
    border-radius: var(--sn-radius);
    font-size: 14.5px;
    font-weight: 400;
    transition: background .15s, color .15s;
}
.sidebar .nav-link:hover {
    background: var(--sn-hover);
    color: var(--sn-heading);
}

/* Aktif oge: birincil renkte dolgu + ayni renkte yumusak golge */
.sidebar .nav-link.is-active {
    background: linear-gradient(270deg, rgba(105, 108, 255, .7) 0%, var(--sn-primary) 100%);
    color: #fff;
    box-shadow: 0 2px 6px 0 rgba(105, 108, 255, .3);
}
.sidebar .nav-link.is-active .nav-ico,
.sidebar .nav-link.is-active svg { color: #fff; }

/* =========================================================================
   Ust bar - yuzen kart
   ========================================================================= */
.topbar {
    background: var(--sn-card);
    border: none;
    border-radius: var(--sn-radius);
    box-shadow: 0 2px 6px 0 rgba(34, 48, 62, .08);
    margin: 14px 18px 0;
}
.topbar-title h1 { font-size: 19px; font-weight: 500; }
.topbar-title p { color: var(--sn-muted); font-size: 13px; }

.content { padding-top: 18px; }

/* =========================================================================
   Kartlar / paneller
   ========================================================================= */
.panel,
.kpi,
.create-form,
.vprev-box,
.evalr-item,
.signin-card {
    background: var(--sn-card);
    border: none;
    border-radius: var(--sn-radius);
    box-shadow: var(--sn-shadow);
}

.panel-head h2 { font-size: 18px; font-weight: 500; }

/* =========================================================================
   Butonlar - kucuk yaricap, renkli golge
   ========================================================================= */
.button,
.signin-submit {
    border-radius: var(--sn-radius-sm);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .2px;
    transition: background .15s, box-shadow .15s, transform .08s, filter .15s;
}

.button.primary,
.signin-submit {
    background: var(--sn-primary);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 4px 0 rgba(105, 108, 255, .4);
}
.button.primary:hover,
.signin-submit:hover {
    background: var(--sn-primary-dark);
    box-shadow: 0 2px 6px 0 rgba(105, 108, 255, .5);
    filter: none;
}
.button.primary:active,
.signin-submit:active { transform: translateY(1px); }

.button.danger {
    background: var(--sn-danger);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 4px 0 rgba(255, 62, 29, .4);
}
.button.danger:hover { background: #e63716; box-shadow: 0 2px 6px 0 rgba(255, 62, 29, .5); }

.button.warning {
    background: var(--sn-warning);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 4px 0 rgba(255, 171, 0, .4);
}

/* Ikincil / sade buton */
.button:not(.primary):not(.danger):not(.warning):not(.ghost) {
    background: var(--sn-card);
    border: 1px solid var(--sn-line);
    color: var(--sn-body);
    box-shadow: none;
}
.button:not(.primary):not(.danger):not(.warning):not(.ghost):hover {
    background: var(--sn-hover);
    border-color: #d4d7da;
    color: var(--sn-heading);
}

.button[disabled], .button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* =========================================================================
   Pastel etiketli ikon kutulari  (sablonun imzasi)
   ========================================================================= */
.page-icon,
.kpi-icon {
    border-radius: var(--sn-radius);
    background: var(--sn-primary-label);
    color: var(--sn-primary);
    box-shadow: none;
}
.page-icon svg, .kpi-icon svg { color: inherit; }

.badge {
    border-radius: var(--sn-radius-sm);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .2px;
    padding: 4px 9px;
    background: var(--sn-primary-label);
    color: var(--sn-primary);
    border: none;
}
.badge.is-success, .badge.success { background: var(--sn-success-label); color: var(--sn-success); }
.badge.is-danger,  .badge.danger  { background: var(--sn-danger-label);  color: var(--sn-danger); }
.badge.is-info,    .badge.info    { background: var(--sn-info-label);    color: var(--sn-info); }
.badge.warning                    { background: var(--sn-warning-label); color: var(--sn-warning); }
.badge.is-muted                   { background: #e9eaec;                 color: var(--sn-muted); }

/* =========================================================================
   KPI kutulari
   ========================================================================= */
.kpi-label {
    color: var(--sn-muted);
    font-size: 13px;
    font-weight: 400;
}
.kpi-value {
    color: var(--sn-heading);
    font-size: 24px;
    font-weight: 500;
}
.kpi-sub { color: var(--sn-muted); font-size: 12px; }

/* =========================================================================
   Tablolar
   ========================================================================= */
table { font-size: 14.5px; }

th {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .2px;
    text-transform: uppercase;
    color: var(--sn-heading);
    border-bottom: 1px solid var(--sn-line);
}
td { color: var(--sn-body); border-bottom: 1px solid var(--sn-line); }
tbody tr:hover { background: var(--sn-hover); }

/* =========================================================================
   Formlar
   ========================================================================= */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
select,
textarea {
    border-radius: var(--sn-radius);
    border-color: var(--sn-line);
    font-size: 14.5px;
    color: var(--sn-heading);
    background: var(--sn-card);
}
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
select:focus,
textarea:focus {
    border-color: var(--sn-primary);
    box-shadow: var(--ring);
    outline: none;
}
label { color: var(--sn-heading); font-size: 13px; font-weight: 500; }

/* =========================================================================
   Durum kutulari
   ========================================================================= */
.alert {
    border-radius: var(--sn-radius);
    border: none;
    background: var(--sn-info-label);
    color: #0b6d84;
    font-size: 13.5px;
}
.alert.danger { background: var(--sn-danger-label); color: #b32511; }

.empty-state { color: var(--sn-muted); }

/* Giris sayfasi zeminini de palete uydur */
.signin {
    background:
        radial-gradient(900px 520px at 50% -10%, #8688ff 0%, transparent 60%),
        linear-gradient(180deg, #5f61e6 0%, #4b4dc4 100%);
}
.signin-foot { color: rgba(255, 255, 255, .62); }
.signin-sign { color: rgba(255, 255, 255, .78); }
.signin-mark { background: linear-gradient(135deg, var(--sn-primary), var(--sn-primary-dark)); }

@media (max-width: 900px) {
    .topbar { margin: 10px 12px 0; }
}

/* =========================================================================
   Video oynatici - mobil
   -------------------------------------------------------------------------
   .player-layout sabit 320px'lik ikinci sutuna sahipti ve HIC medya sorgusu
   yoktu. 375px'lik telefonda video sutununa 5px kaliyor, video 0x0 olarak
   render edilip izlenemiyordu. Dar ekranda tek sutuna indiriyoruz; bilgi
   paneli videonun altina gecer.
   ========================================================================= */
@media (max-width: 900px) {
    .player-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }
    .player-panel { order: 1; }
    .info-panel   { order: 2; }

    /* Dikey telefonda 62vh siniri videoyu gereksiz kucultuyordu */
    .player-panel video,
    .video-placeholder { max-height: none; }

    .player-topbar { flex-wrap: wrap; gap: 10px; }
    .player-topbar-title strong { white-space: normal; }
}

/* Dar telefonlarda videoyu panel kenarlarina kadar genislet */
@media (max-width: 560px) {
    .player-panel { padding-left: 0; padding-right: 0; }
    .player-panel video,
    .video-placeholder { border-radius: 0; }
    .player-panel .watch-status,
    .player-panel #playerMessage { margin-left: 14px; margin-right: 14px; }
}

/* =========================================================================
   Termin rozeti - atamalar sayfasi
   -------------------------------------------------------------------------
   Onceki hali: white-space:nowrap + max-width:230px -> uzun tarih araliklari
   ("04.07.2026 – 08.10.2026 · 29 gecikmiş") kutuya sigmayip KESILIYORDU.
   Ayrica renkler eski temadan kalmaydi (#fffbeb/#fcd34d), Sneat paletiyle
   uyusmuyordu.
   ========================================================================= */
.assignment-group-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: none;              /* kesilmeyi kaldir */
    min-height: 26px;
    padding: 3px 11px;
    border: none;
    border-radius: 999px;
    background: #f1f2f4;
    color: var(--sn-body);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}
.assignment-group-date strong {
    margin-right: 0;
    color: var(--sn-muted);
    font-weight: 500;
}

/* Termini yaklasan */
.assignment-group-date--due {
    background: var(--sn-warning-label);
    color: #9a6a00;
    font-weight: 500;
}
.assignment-group-date--due strong { color: #b07a00; }

/* Termini gecmis */
.assignment-group-date--due.is-overdue {
    background: var(--sn-danger-label);
    color: #c0290f;
    box-shadow: none;
}
.assignment-group-date--due.is-overdue strong { color: #c0290f; }

/* Gecikme sayisi: ayri, dolu cip -> tarih metnine karismaz */
.assignment-overdue-count {
    display: inline-flex;
    align-items: center;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--sn-danger);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1px;
    white-space: nowrap;
}

/* Dar ekranda tarih araligi alt satira sarkabilsin */
@media (max-width: 1100px) {
    .assignment-group-date { white-space: normal; border-radius: 10px; }
}

/* =========================================================================
   Atama grubu: izgara hizalamasi
   -------------------------------------------------------------------------
   Onceki hali flex-wrap idi; her satirdaki kutular farkli genislikte oldugu
   icin sutunlar hizalanmiyor, "Başlangıç:/Termin:/kişi/tamamlandı" etiketleri
   her satirda tekrar ediyordu. Artik tek bir izgara sablonunu hem baslik
   satiri hem de gruplar kullaniyor; etiketler sutun basligina tasindi.
   ========================================================================= */
.assignment-groups {
    --ag-cols: 26px minmax(180px, 1fr) 58px minmax(170px, 215px) minmax(180px, 245px) 78px 70px 82px;
}

.assignment-group-head,
.assignment-group > summary {
    display: grid;
    grid-template-columns: var(--ag-cols);
    align-items: center;
    gap: 10px 12px;
}

.assignment-group-head {
    padding: 9px 18px 8px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--sn-muted);
    border-bottom: 1px solid var(--sn-line);
}
/* Sayisal sutunlari ortala: basliklarla degerler ayni hizada dursun */
.assignment-group-head span:nth-child(3),
.assignment-group-head span:nth-child(6),
.assignment-group-head span:nth-child(7),
.assignment-group-head span:nth-child(8) { text-align: center; }

.assignment-group-count { justify-self: center; font-weight: 600; color: var(--sn-heading); }
.assignment-group > summary .badge { justify-self: center; min-width: 38px; justify-content: center; }
.assignment-group-date { justify-self: stretch; justify-content: center; }

/* Baslangic tarihi notr: anlam tasiyan renk yalnizca terminde kalsin */
.assignment-group-date--start { background: transparent; color: var(--sn-muted); padding-left: 0; padding-right: 0; }

/* Tekrar eden etiketler genis ekranda gizli, sutun basligi isi goruyor */
.ag-label { display: none; }

@media (max-width: 1100px) {
    /* Izgara cozulur, etiketler geri gelir: bilgi kaybi olmaz */
    .assignment-group-head { display: none; }
    .assignment-group > summary {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 12px;
    }
    .ag-label { display: inline; }
    .assignment-group-count,
    .assignment-group > summary .badge,
    .assignment-group-date { justify-self: auto; }
    .assignment-group-date--start { background: #f1f2f4; padding-left: 11px; padding-right: 11px; }
}

/* Sayisal sutunlar sabit kutu: hucreyi doldurup icerigi ortalar.
   justify-self:center kullanilirsa "1" ile "166" farkli genislikte oldugu
   icin kutularin sol kenari kayiyor ve sutun hizasi bozuluyordu. */
.assignment-group-count {
    justify-self: stretch;
    text-align: center;
}
.assignment-group > summary .badge {
    justify-self: stretch;
    justify-content: center;
    min-width: 0;
}
@media (max-width: 1100px) {
    .assignment-group-count { justify-self: auto; text-align: left; }
    .assignment-group > summary .badge { justify-self: auto; }
}

/* =========================================================================
   Sertifika baskisi: sayfaya sigdir
   -------------------------------------------------------------------------
   Onceki hali sabit 297mm x 210mm idi. Kullanici baski penceresinde
   "Kenar Bosluklari: Varsayilan" secince basilabilir alan daha kucuk kaliyor,
   sayfanin en altindaki dokuman kodu seridi (QM-F-...) sayfa disinda kalip
   KIRPILIYORDU. Artik sayfa genisligi VE yuksekligine gore kucugu secilir;
   hangi kenar boslugu secilirse secilsin belgenin tamami sigar.
   ========================================================================= */
@media print {
    .certtpl-page {
        height: auto;
        min-height: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .certtpl-sheet {
        /* 100vw ve 100vh baskida sayfanin basilabilir alanina karsilik gelir */
        width: min(100vw, calc(100vh * 297 / 210));
        height: auto;
        max-width: 100%;
        aspect-ratio: 297 / 210;
        margin: 0 auto;
        overflow: visible;
    }
    /* Arka plan gorseli her durumda basilsin */
    .certtpl-sheet {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

/* =========================================================================
   Sertifika baskisi: panel cercevesi ve konfeti
   -------------------------------------------------------------------------
   Oturum ACIK kullanici sertifikayi uygulama duzeninin icinde goruyor
   (ust bar, kenar cubugu, konfeti). Onceki kurallar ust bar/kenar cubugunu
   gizliyordu ama:
     - body'ye sabit height:210mm + overflow:hidden veriliyordu; kenar
       boslugu "Varsayilan" secilince basilabilir alan daha kisa kaldigi
       icin belgenin ALT KISMI kesiliyordu,
     - konfeti canvas'inin hic sinifi yoktu, gizlenemiyordu.
   ========================================================================= */
@media print {
    @page { size: A4 landscape; margin: 0; }

    html, body {
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    .app-shell, .main, .content {
        display: block !important;
        width: auto !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    /* Panel cercevesi ve suslemeler baskida yok */
    .sidebar,
    .sidebar-backdrop,
    .topbar,
    .cert-actions,
    .print-hide,
    .confetti-canvas,
    .notif-dropdown,
    .toast-wrap,
    .toast {
        display: none !important;
    }

    .certtpl-page {
        height: auto !important;
        min-height: 0 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    .certtpl-sheet {
        width: min(100vw, calc(100vh * 297 / 210)) !important;   /* % degil vw: ebeveyne bagimli degil */
        height: auto !important;
        max-width: 100% !important;
        aspect-ratio: 297 / 210;
        margin: 0 auto !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
        page-break-inside: avoid;
        break-inside: avoid;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

/* Termin guncelleme formu (atama grubu arac cubugu) */
.due-date-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border: 1px solid var(--sn-line);
    border-radius: var(--sn-radius);
    background: var(--sn-card);
}
.due-date-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--sn-muted);
    white-space: nowrap;
}
.due-date-label input[type="date"] {
    width: auto;
    min-width: 140px;
    height: 30px;
    padding: 0 8px;
    font-size: 13px;
}
.due-date-scope {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    font-size: 11.5px;
    font-weight: 400;
    color: var(--sn-muted);
    white-space: nowrap;
    cursor: pointer;
}
.due-date-scope input { margin: 0; }
@media (max-width: 760px) {
    .due-date-form { width: 100%; flex-wrap: wrap; }
    .due-date-label input[type="date"] { flex: 1; }
}
