@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --navy: #1e3264;
    --navy-dark: #162348;
    --navy-light: #2a4480;
    --gold: #c8a951;
    --gold-light: #dbc06a;
    --bg: #eceef2;
    --surface: #ffffff;
    --text: #1a1a2e;
    --text-secondary: #5a6478;
    --text-muted: #8b95a8;
    --border: #dde1ea;
    --border-focus: #1e3264;
    --success: #1a7f4b;
    --success-bg: #edf7f1;
    --error: #c0392b;
    --error-bg: #fdf0ee;
    --warning: #92600a;
    --warning-bg: #fef9ec;
    --info: #1a5f8a;
    --info-bg: #edf5fa;
    --radius: 10px;
    --radius-lg: 14px;
    --shadow: 0 2px 12px rgba(30, 50, 100, 0.08);
    --shadow-lg: 0 8px 32px rgba(30, 50, 100, 0.12);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--navy-light); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ══════════════════════════════════════
   AUTH PAGES (login, register, verify)
   ══════════════════════════════════════ */
.auth-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.auth-wrapper {
    width: 100%;
    max-width: 480px;
}

.auth-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.auth-card-header {
    background: var(--navy);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-card-header .logo {
    height: 52px;
    width: auto;
    flex-shrink: 0;
}

.auth-card-header-text {
    flex: 1;
    min-width: 0;
}

.auth-card-header-text .uni-label {
    display: block;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--gold);
    text-transform: uppercase;
}

.auth-card-header-text .sys-name {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.auth-card-body {
    padding: 2rem 2rem 1.75rem;
}

.auth-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

.auth-footer-text {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
}

/* ══════════════════════════════════════
   APP SHELL (logged-in pages)
   ══════════════════════════════════════ */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }

.app-header {
    background: var(--navy);
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.app-header-brand {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
}

.app-header-brand .logo { height: 40px; width: auto; }

.app-header-brand-text .uni-label {
    display: block;
    font-size: 0.5625rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--gold);
    text-transform: uppercase;
}

.app-header-brand-text .sys-name {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.app-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.app-nav a, .app-nav button {
    color: rgba(255,255,255,0.85);
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.4375rem 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

.app-nav a:hover, .app-nav button:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
}

.app-nav .nav-user {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.85);
    padding: 0.25rem 0.625rem;
}

.app-nav .nav-user-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-right: 0.625rem;
    margin-right: 0.25rem;
    border-right: 1px solid rgba(255,255,255,0.15);
}

.app-nav .nav-user-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.08);
}

.app-main {
    flex: 1;
    padding: 2rem 1.5rem;
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
}

.app-footer {
    text-align: center;
    padding: 1.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.footer-unit {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.7rem;
    letter-spacing: 0.01em;
}

/* ══════════════════════════════════════
   FORM ELEMENTS
   ══════════════════════════════════════ */
.form-group { margin-bottom: 1.125rem; }

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.375rem;
}

.form-control {
    width: 100%;
    padding: 0.6875rem 0.875rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--text);
    background: var(--surface);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(30, 50, 100, 0.1);
}

.form-control::placeholder { color: #b0b8c9; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap .form-control { padding-left: 2.5rem; }

.input-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.875rem;
    pointer-events: none;
}

.field-error {
    display: block;
    color: var(--error);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.form-footer {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 1.25rem;
}

.form-footer a { font-weight: 600; color: var(--navy-light); text-decoration: none; }
.form-footer a:hover { text-decoration: underline; }

/* ══════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.6875rem 1.25rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
}

.btn-primary {
    background: var(--navy);
    color: #fff;
}

.auth-card-body .btn-primary,
.landing-actions .btn-primary { width: 100%; }

.btn-primary:hover {
    background: var(--navy-dark);
    color: #fff;
    text-decoration: none;
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1.5px solid var(--border);
}

.auth-card-body .btn-secondary,
.landing-actions .btn-secondary { width: 100%; }

.btn-secondary:hover {
    border-color: var(--navy-light);
    color: var(--navy);
    text-decoration: none;
}

.btn-sm { padding: 0.4375rem 0.875rem; font-size: 0.8125rem; width: auto; }
.btn-lg { padding: 0.8125rem 1.5rem; font-size: 0.9375rem; }

.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--navy);
    width: auto;
}

.btn-outline:hover { background: rgba(30,50,100,0.05); text-decoration: none; color: var(--navy); }

/* ══════════════════════════════════════
   ALERTS
   ══════════════════════════════════════ */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid #b8dfc8; }
.alert-error { background: var(--error-bg); color: var(--error); border: 1px solid #f0c4bf; }
.alert-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid #f0dfa8; }
.alert-info { background: var(--info-bg); color: var(--info); border: 1px solid #b8d9ec; }

/* ══════════════════════════════════════
   STEPS (registration progress)
   ══════════════════════════════════════ */
.steps-bar {
    display: flex;
    margin-bottom: 1.75rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.steps-bar .step {
    flex: 1;
    text-align: center;
    padding: 0.5rem 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-muted);
    background: #f8f9fb;
    border-right: 1px solid var(--border);
}

.steps-bar .step:last-child { border-right: none; }
.steps-bar .step.active { background: var(--navy); color: #fff; }
.steps-bar .step.done { background: var(--success-bg); color: var(--success); }

/* ══════════════════════════════════════
   PAGE CONTENT (app pages)
   ══════════════════════════════════════ */
.page-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.page-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.content-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.25rem;
}

.content-card h2 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

/* ══════════════════════════════════════
   AF LIST / CARDS
   ══════════════════════════════════════ */
.af-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.af-item h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.af-item .af-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.af-item-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

/* ══════════════════════════════════════
   TIP SELECTION
   ══════════════════════════════════════ */
.tip-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tip-item {
    display: block;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.tip-item:hover {
    border-color: var(--navy-light);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text);
}

.tip-item h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.375rem;
}

.tip-item p { font-size: 0.8125rem; color: var(--text-muted); }

/* ══════════════════════════════════════
   KAYIT SELECTION
   ══════════════════════════════════════ */
.kayit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    margin-bottom: 0.5rem;
    transition: border-color 0.15s, background 0.15s;
}

.kayit-item:hover { border-color: #c0c8d8; }
.kayit-item:has(input:checked) { border-color: var(--navy-light); background: #f4f6fa; }

.kayit-item input { accent-color: var(--navy); margin-top: 0.15rem; }
.kayit-item strong { font-size: 0.875rem; display: block; }
.kayit-item small { font-size: 0.75rem; color: var(--text-muted); }

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f8f9fb;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
}

.checkbox-row input { accent-color: var(--navy); }

.checkbox-list {
    max-height: 280px;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem;
}

.checkbox-list .checkbox-row { margin-bottom: 0.35rem; }

.ek-bilgi-section-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--navy);
    margin: 1.25rem 0 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--border);
}

.ek-bilgi-section-title:first-of-type { margin-top: 0; }

.ek-bilgi-checkbox-list {
    max-height: none;
    margin-bottom: 1rem;
}

.ek-bilgi-checkbox-list .checkbox-row {
    margin-bottom: 0.5rem;
    background: transparent;
    padding: 0.35rem 0.5rem;
}

.ek-bilgi-subfield {
    margin: 0 0 0.75rem 1.75rem;
}

.radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.35rem;
}

.radio-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    cursor: pointer;
}

.beyan-metin {
    background: #f8f9fb;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    font-size: 0.8125rem;
    line-height: 1.55;
    margin-bottom: 0.75rem;
}

.beyan-onay-row { background: #fff8e6; border: 1px solid #f0d78c; }

.ek-bilgi-ozet-card .ek-bilgi-list {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
    font-size: 0.875rem;
}

.field-error {
    display: block;
    color: var(--danger, #c0392b);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.personel-live-search { position: relative; }

.personel-live-status {
    font-size: 0.8125rem;
    margin-top: 0.4rem;
}

.personel-live-results {
    margin-top: 0.5rem;
    border: 1px solid var(--border);
    background: var(--surface);
    max-height: 360px;
    overflow-y: auto;
}

.personel-live-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    text-align: left;
    padding: 0.65rem 0.85rem;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: transparent;
    cursor: pointer;
    color: inherit;
}

.personel-live-item:last-child { border-bottom: 0; }
.personel-live-item:hover { background: rgba(12, 45, 87, 0.06); }

.personel-live-avatar {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #d9e2ec;
}

.personel-live-initials {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #3d5a73;
}

.personel-live-avatar img,
.personel-live-photo {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    display: block;
}

.personel-live-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.personel-live-meta strong { font-size: 0.9rem; }
.personel-live-meta span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

#seciliPersonelMetin {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: 0.35rem;
}

#seciliPersonelMetin .personel-live-photo {
    width: 32px;
    height: 32px;
}

.nav-scope {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    color: var(--gold-light) !important;
}

.tip-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    background: var(--surface);
    border: 1.5px solid var(--border) !important;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    color: var(--text);
    font-family: inherit;
}

.tip-card:hover { border-color: var(--navy) !important; box-shadow: var(--shadow); }
.tip-card.selected { border-color: var(--gold) !important; }

/* ══════════════════════════════════════
   TABLE
   ══════════════════════════════════════ */
.table-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.data-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.data-table th, .data-table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.data-table th { background: #f8f9fb; font-weight: 600; font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.data-table tbody tr:hover { background: #fafbfc; }
.data-table tbody tr:last-child td { border-bottom: none; }

.badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
}

.badge-wait { background: #fef3cd; color: #856404; }
.badge-done { background: var(--success-bg); color: var(--success); }
.badge-review { background: #dbeafe; color: #1d4ed8; }
.badge-action { background: #ffedd5; color: #c2410c; }
.badge-cancel { background: #fee2e2; color: #b91c1c; }

.personel-not-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.personel-not-form h3 {
    font-size: 1rem;
    margin: 0 0 0.75rem;
}

.personel-not-card .checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.personel-not-card .checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.personel-not-card .checkbox-item-muted {
    opacity: 0.65;
}

.personel-bildirim-meta {
    font-weight: 400;
    font-size: 0.8125rem;
    color: inherit;
    opacity: 0.85;
}

.personel-eksik-belge-list {
    padding-left: 1.25rem;
}

.belge-yonetim-card.personel-eksik {
    border-color: #fdba74;
    background: #fff7ed;
}

.basvuru-card-alert {
    margin-top: 0.5rem;
    padding: 0.375rem 0.625rem;
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 600;
    background: #ffedd5;
    color: #c2410c;
}

.basvuru-card-alert-danger {
    background: #fee2e2;
    color: #b91c1c;
}

@media (max-width: 768px) {
    .personel-not-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   INFO LIST
   ══════════════════════════════════════ */
.info-list { margin: 1.25rem 0; }
.info-list dt { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.info-list dd { font-size: 0.9375rem; font-weight: 500; padding: 0.375rem 0 0.75rem; border-bottom: 1px solid var(--border); margin-bottom: 0.25rem; }

/* ══════════════════════════════════════
   AF DETAIL
   ══════════════════════════════════════ */
.af-content { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.75; }
.af-content-actions { margin-top: 1.5rem; display: flex; gap: 0.5rem; }

/* ══════════════════════════════════════
   CODE INPUT
   ══════════════════════════════════════ */
.code-input {
    font-size: 1.5rem !important;
    letter-spacing: 0.4em;
    text-align: center;
    font-weight: 700;
    color: var(--navy);
}

/* ══════════════════════════════════════
   LANDING FEATURES
   ══════════════════════════════════════ */
.landing-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.landing-feature {
    padding: 1rem;
    background: #f8f9fb;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.landing-feature h4 {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.landing-feature p { font-size: 0.75rem; color: var(--text-muted); }

.landing-actions { display: flex; flex-direction: column; gap: 0.625rem; }

/* ══════════════════════════════════════
   UTILITIES
   ══════════════════════════════════════ */
.hidden { display: none !important; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.8125rem; }
.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.75rem; }
.mb-3 { margin-bottom: 1.25rem; }
.mt-2 { margin-top: 0.75rem; }
.inline-form { display: inline; }
.actions-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.file-input { font-size: 0.8125rem; }

/* ══════════════════════════════════════
   ADMIN PANEL
   ══════════════════════════════════════ */
.admin-header { background: var(--navy-dark); }

.admin-shell {
    display: flex;
    min-height: 100vh;
    background: var(--bg);
}

.admin-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--navy-dark);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 40;
}

.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 1.15rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.admin-sidebar-brand:hover { text-decoration: none; }
.admin-sidebar-brand .logo { height: 36px; width: auto; flex-shrink: 0; }

.admin-sidebar-brand-text .uni-label {
    display: block;
    font-size: 0.5625rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--gold);
    text-transform: uppercase;
}

.admin-sidebar-brand-text .sys-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
}

.admin-sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.admin-sidebar-user .nav-user-photo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.2);
}

.admin-sidebar-user-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.admin-sidebar-user-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-sidebar-scope {
    font-size: 0.6875rem;
    color: var(--gold-light);
    text-decoration: none;
    line-height: 1.3;
}

.admin-sidebar-scope:hover {
    color: #fff;
    text-decoration: underline;
}

.admin-sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 0.65rem;
    gap: 0.15rem;
    flex: 1;
}

.admin-nav-section {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    padding: 0.85rem 0.75rem 0.35rem;
}

.admin-nav-link {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    color: rgba(255,255,255,0.78);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.admin-nav-link:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    text-decoration: none;
}

.admin-nav-link.active {
    background: rgba(200, 169, 81, 0.18);
    color: var(--gold-light);
}

.admin-sidebar-footer {
    padding: 0.75rem 0.65rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.admin-nav-logout {
    color: rgba(255,255,255,0.55);
}

.admin-nav-logout:hover {
    background: rgba(192, 57, 43, 0.25);
    color: #fff;
}

.admin-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--navy-dark);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 30;
}

.admin-topbar-title {
    font-size: 0.9375rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-menu-toggle {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    flex-shrink: 0;
}

.admin-menu-toggle:hover {
    background: rgba(255,255,255,0.18);
}

.admin-main {
    flex: 1;
    padding: 1.75rem 2rem;
    max-width: 1280px;
    width: 100%;
}

.admin-page-footer {
    padding: 1rem 2rem 1.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.admin-sidebar-backdrop {
    display: none;
}

@media (max-width: 960px) {
    .admin-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
        box-shadow: var(--shadow-lg);
    }

    .admin-shell.sidebar-open .admin-sidebar {
        transform: translateX(0);
    }

    .admin-topbar { display: flex; }

    .admin-sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        z-index: 35;
    }

    .admin-shell.sidebar-open .admin-sidebar-backdrop {
        display: block;
    }

    .admin-main {
        padding: 1.25rem 1rem;
    }

    .admin-page-footer {
        padding: 1rem;
    }
}

.page-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.action-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.yonlendirme-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.25rem;
    align-items: start;
}

.yonlendirme-block {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.yonlendirme-block h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--navy);
}

.yonlendirme-arrow {
    align-self: center;
    font-size: 1.75rem;
    color: var(--gold);
    font-weight: 700;
    padding-top: 2rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-card-warn {
    border-color: #f0c36d;
    background: #fff8e6;
}

.stat-card-warn .stat-value {
    color: #b45309;
}

.hata-teknik-detay {
    margin-top: 0.35rem;
}

.hata-teknik-pre {
    margin: 0.35rem 0 0;
    padding: 0.5rem;
    font-size: 0.75rem;
    line-height: 1.4;
    background: var(--surface-alt, #f4f6f9);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 12rem;
    overflow: auto;
}

.log-detay-cell {
    max-width: 22rem;
}

.email-preview {
    padding: 0.75rem 1rem;
    background: #f8f9fb;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--navy);
    font-family: monospace;
}

.badge-success { background: var(--success-bg); color: var(--success); }
.badge-muted { background: #eef0f4; color: var(--text-muted); }

/* ══════════════════════════════════════
   BAŞVURU PAGES
   ══════════════════════════════════════ */
.basvuru-page-header { margin-bottom: 1.25rem; }
.back-link {
    display: inline-block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.5rem;
}
.back-link:hover { color: var(--navy); }

.basvuru-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow);
}

.basvuru-step {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--text-muted);
    flex: 1;
}

.basvuru-step-num {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: #eef0f4;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.basvuru-step.active .basvuru-step-num { background: var(--navy); color: #fff; }
.basvuru-step.done .basvuru-step-num { background: var(--success-bg); color: var(--success); }
.basvuru-step.active .basvuru-step-label { color: var(--navy); font-weight: 600; }
.basvuru-step-label { font-size: 0.875rem; }
.basvuru-step-label small { font-weight: 400; color: var(--text-muted); }

.basvuru-step-line {
    width: 2rem;
    height: 2px;
    background: var(--border);
    margin: 0 0.5rem;
    flex-shrink: 0;
}
.basvuru-step-line.done { background: var(--success); }

.section-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.section-divider::before, .section-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.kayit-list { display: flex; flex-direction: column; gap: 0.5rem; }

.basvuru-info-banner { margin-bottom: 1rem; }

.belge-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
}

.belge-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    background: #fafbfc;
}

.belge-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.375rem;
}

.belge-card-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--navy);
}

.belge-card-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.625rem;
    line-height: 1.4;
}

.belge-upload-zone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 1rem 0.75rem;
    border: 1.5px dashed var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s, background 0.15s;
}

.belge-upload-zone:hover { border-color: var(--navy-light); background: #f8f9fb; }
.belge-upload-zone.has-file { border-color: var(--success); background: var(--success-bg); }
.belge-upload-icon { font-size: 1.25rem; }
.belge-upload-text { font-size: 0.75rem; font-weight: 500; color: var(--text-secondary); }
.belge-upload-hint { font-size: 0.6875rem; color: var(--text-muted); }
.belge-upload-selected { font-size: 0.8125rem; font-weight: 600; color: var(--success); margin: 0.5rem 0 0; }

.belge-file-row {
    margin-top: 0.5rem;
}

.belge-file-row .belge-dosya-input {
    display: block;
    width: 100%;
    font-size: 0.875rem;
    padding: 0.5rem;
    cursor: pointer;
}

.belge-card.has-file {
    border-color: var(--success);
}

.belge-upload-zone .belge-dosya-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    font-size: 0;
}

.file-input-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.basvuru-submit-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow);
    margin-top: 0.5rem;
}

.basvuru-submit-note {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
}

.tip-grid-lg { gap: 1rem; }
.tip-item-lg {
    padding: 1.75rem;
    position: relative;
}
.tip-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.tip-action {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--navy);
}

.info-bullet-list {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Başvuru detay & yönetim */
.basvuru-ozet-card { margin-bottom: 1rem; }
.basvuru-ozet-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.basvuru-ozet-grid-full {
    grid-column: 1 / -1;
}
.basvuru-yonlendirme-ozet {
    font-size: 0.875rem;
    line-height: 1.5;
}
.ozet-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}
.ozet-value { font-size: 0.875rem; font-weight: 500; color: var(--text); }

.belge-progress { margin-top: 0.5rem; }
.belge-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0.375rem;
}
.belge-progress-bar {
    height: 6px;
    background: #eef0f4;
    border-radius: 3px;
    overflow: hidden;
}
.belge-progress-fill {
    height: 100%;
    background: var(--navy);
    border-radius: 3px;
    transition: width 0.3s;
}
.belge-progress-sm { max-width: 280px; margin-top: 0.75rem; }

.belge-yonetim-list { display: flex; flex-direction: column; gap: 0.75rem; }
.belge-yonetim-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.125rem 1.25rem;
    box-shadow: var(--shadow);
}
.belge-yonetim-card.eksik { border-left: 3px solid #f0dfa8; }
.belge-yonetim-card.yuklu { border-left: 3px solid var(--success); }
.belge-yonetim-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.belge-yonetim-desc { font-size: 0.8125rem; color: var(--text-muted); margin: 0.25rem 0 0.5rem; }
.belge-yonetim-file { font-size: 0.8125rem; color: var(--text-secondary); }
.belge-yonetim-file small { display: block; color: var(--text-muted); margin-top: 0.125rem; }
.belge-yonetim-actions { display: flex; align-items: center; gap: 0.375rem; flex-wrap: wrap; }
.belge-upload-inline label {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    margin: 0;
}
.belge-upload-inline .file-input-hidden {
    display: none;
}

.basvuru-card-list { display: flex; flex-direction: column; gap: 0.875rem; }
.basvuru-card-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow);
}
.basvuru-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.375rem;
}
.basvuru-card-top h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
}
.basvuru-card-meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.25rem;
}
.basvuru-card-main { flex: 1; min-width: 240px; }

.danger-zone {
    margin-top: 1.25rem;
    border-left: 3px solid var(--error);
}
.danger-zone h2 {
    font-size: 0.9375rem;
    color: var(--error);
    margin-bottom: 0.5rem;
}

.basvuru-ozet-grid small.text-sm { display: block; margin-top: 0.125rem; }

/* ══════════════════════════════════════
   MODAL
   ══════════════════════════════════════ */
body.modal-open { overflow: hidden; }

.app-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.app-modal.hidden { display: none; }

.app-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(22, 35, 72, 0.55);
}

.app-modal-card {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem 1.5rem 1.25rem;
}

.app-modal-title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.app-modal-lead {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.yonlendirme-onay-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.75rem;
    align-items: center;
    background: var(--warning-bg);
    border: 1px solid #f0e0b0;
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.yonlendirme-onay-arrow {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
}

/* ══════════════════════════════════════
   DESTEK / TICKET
   ══════════════════════════════════════ */
.destek-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 70;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.125rem;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: 999px;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: transform 0.15s, box-shadow 0.15s;
}

.destek-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(22, 35, 72, 0.35);
}

.destek-fab-icon { font-size: 1.125rem; line-height: 1; }

.destek-modal-card {
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
}

.destek-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.destek-modal-header .app-modal-title { margin-bottom: 0; }

.destek-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

.destek-talep-listesi {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
}

.destek-liste-baslik {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.destek-talep-item {
    display: block;
    width: 100%;
    text-align: left;
    background: var(--surface-alt, #f8f9fc);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.625rem 0.75rem;
    margin-bottom: 0.375rem;
    cursor: pointer;
    transition: border-color 0.15s;
}

.destek-talep-item:hover { border-color: var(--navy); }

.destek-talep-konu {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.destek-talep-meta {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.125rem;
}

.destek-mesaj-alani { margin-bottom: 1rem; }

.destek-geri-btn {
    background: none;
    border: none;
    color: var(--navy);
    font-size: 0.8125rem;
    cursor: pointer;
    padding: 0;
    margin-bottom: 0.5rem;
}

.destek-aktif-konu {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
}

.destek-mesaj-thread {
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    background: #fafbfc;
}

.destek-thread-msg {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.destek-thread-msg:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.destek-thread-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.8125rem;
    margin-bottom: 0.25rem;
}

.destek-thread-header span { color: var(--text-secondary); font-size: 0.75rem; }

.destek-thread-msg p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

.destek-thread-admin {
    background: rgba(22, 35, 72, 0.06);
    border-radius: var(--radius);
    padding: 0.5rem 0.625rem;
}

.btn-block { width: 100%; }

.destek-mesaj-listesi .destek-mesaj {
    padding: 0.875rem;
    border-radius: var(--radius);
    margin-bottom: 0.625rem;
    border: 1px solid var(--border);
}

.destek-mesaj-admin { background: rgba(22, 35, 72, 0.05); border-left: 3px solid var(--navy); }
.destek-mesaj-kullanici { background: #fafbfc; border-left: 3px solid var(--gold, #c9a227); }

.destek-mesaj-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.375rem;
    font-size: 0.8125rem;
}

.destek-mesaj-body {
    margin: 0;
    white-space: pre-wrap;
    font-size: 0.875rem;
    line-height: 1.55;
}

.destek-son-mesaj {
    max-width: 240px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.destek-row-bekliyor { background: rgba(255, 193, 7, 0.08); }

.alert.hidden { display: none; }

.required-mark {
    color: #c0392b;
    font-weight: 700;
}

.zorunlu-soru-aciklama {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0 0 0.5rem;
}

.zorunlu-soru-grup.validation-error-group {
    border: 2px solid #c0392b;
    border-radius: var(--radius);
    padding: 0.75rem;
    background: rgba(192, 57, 43, 0.06);
}

.zorunlu-radio-row {
    padding: 0.5rem 0;
}

.belge-card.belge-card-hata {
    border-color: #c0392b;
    box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.15);
}

.belge-card-hata .belge-upload-zone {
    border-color: #c0392b;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 600px) {
    .form-row, .tip-grid, .landing-features, .stat-grid, .belge-grid, .basvuru-ozet-grid, .yonlendirme-grid, .yonlendirme-onay-grid { grid-template-columns: 1fr; }
    .yonlendirme-arrow { padding-top: 0; text-align: center; }
    .basvuru-steps { flex-direction: column; align-items: flex-start; }
    .basvuru-step-line { width: 2px; height: 1rem; margin: 0 0 0 0.875rem; }
    .basvuru-submit-bar { flex-direction: column; align-items: stretch; }
    .basvuru-submit-bar .btn { width: 100%; }
    .basvuru-card-item { flex-direction: column; align-items: stretch; }
    .belge-yonetim-card { flex-direction: column; }
    .auth-card-body { padding: 1.5rem; }
    .app-header { padding: 0 1rem; height: auto; flex-wrap: wrap; padding-top: 0.75rem; padding-bottom: 0.75rem; gap: 0.5rem; }
    .af-item { flex-direction: column; align-items: flex-start; }
    .steps-bar .step { font-size: 0.5625rem; padding: 0.375rem 0.125rem; }
}

/* Bağlantısı değiştirilen birimler bilgilendirme modalı */
.baglanti-degisikligi-card { max-width: 640px; }

.baglanti-degisikligi-liste {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 46vh;
    overflow-y: auto;
    border: 1px solid var(--border, #e2e6ee);
    border-radius: var(--radius, 8px);
}

.baglanti-degisikligi-liste li {
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid var(--border, #e2e6ee);
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--text-secondary, #5a6478);
}

.baglanti-degisikligi-liste li:last-child { border-bottom: none; }

.baglanti-degisikligi-liste .baglanti-birimler {
    color: var(--text-primary, #1f2733);
}

.baglanti-degisikligi-liste a {
    font-weight: 600;
    color: var(--navy, #1e3264);
    text-decoration: underline;
}

.baglanti-degisikligi-sonuc {
    margin-top: 0.875rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary, #1f2733);
}

.belge-durum-bekliyor { color: var(--text-secondary, #5a6478); }

/* ══════════════════════════════════════════════════════════════════
   İYİLEŞTİRMELER (yalnızca ekleme)
   Bu blok mevcut kuralları değiştirmez; sonrasında geldiği için
   aynı özgüllükteki tanımları geçersiz kılar. JavaScript'in tuttuğu
   sınıflar (.hidden, .has-file, .belge-card-hata, .belge-yuklu,
   .validation-error-group, .modal-open …) yalnızca GÖRSEL olarak
   zenginleştirilir; display davranışına dokunulmaz.
   ══════════════════════════════════════════════════════════════════ */

:root {
    --focus-ring: 0 0 0 3px rgba(30, 50, 100, 0.18);
    --shadow-sm: 0 1px 2px rgba(30, 50, 100, 0.06);
}

/* Klavye erişilebilirliği: fare tıklamasında halka çıkmaz, Tab'da çıkar. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
label.btn:focus-within {
    outline: none;
    box-shadow: var(--focus-ring);
}

/* Butonlarda basma geri bildirimi ve devre dışı durumu */
.btn:active { transform: translateY(1px); }

.btn:disabled,
.btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.btn-primary { box-shadow: var(--shadow-sm); }
.btn-primary:active { background: var(--navy-dark); }

/* Kartlar: daha yumuşak yükselti */
.content-card { transition: box-shadow 0.18s ease, border-color 0.18s ease; }

.content-card h2 {
    letter-spacing: 0.01em;
    text-transform: none;
}

/* Rozetler: ince çerçeve ile daha okunaklı */
.badge {
    line-height: 1.5;
    border: 1px solid rgba(0, 0, 0, 0.06);
    white-space: nowrap;
    vertical-align: middle;
}

/* Form alanları: hata durumu daha belirgin */
.form-control:hover:not(:focus) { border-color: #c5ccdb; }

.form-control.input-validation-error,
.input-validation-error {
    border-color: var(--error);
    background: var(--error-bg);
}

.form-control.input-validation-error:focus {
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
}

.validation-error-group {
    border-radius: var(--radius);
    padding: 0.625rem 0.75rem;
    background: var(--error-bg);
    box-shadow: inset 0 0 0 1.5px rgba(192, 57, 43, 0.35);
}

/* Belge kartları: durum okunabilirliği */
.belge-card { transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease; }

.belge-card.has-file {
    border-color: #9fd3b6;
    background: var(--success-bg);
}

.belge-card.belge-card-hata {
    border-color: var(--error);
    background: var(--error-bg);
}

.belge-card.belge-yuklu .belge-upload-selected { color: var(--success); }

.belge-durum-bekliyor { color: var(--text-secondary); font-weight: 500; }

.belge-yonetim-card { transition: border-color 0.18s ease, box-shadow 0.18s ease; }
.belge-yonetim-card:hover { box-shadow: var(--shadow-lg); }

.belge-yonetim-card.yuklu { border-left: 3px solid var(--success); }
.belge-yonetim-card.eksik { border-left: 3px solid var(--border); }
.belge-yonetim-card.personel-eksik { border-left: 3px solid #f97316; }

.belge-yonetim-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ── Eksik belge bildirimi ───────────────────────────────────── */
.eksik-belge-bildirim { border-left: 3px solid var(--warning); }
.eksik-belge-bildirim.eksik-belge-tamam { border-left-color: var(--success); }

.eksik-belge-lead {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.eksik-belge-liste {
    margin: 0 0 0.75rem 1.25rem;
    font-size: 0.875rem;
    color: var(--text);
}

.eksik-belge-liste li { margin-bottom: 0.25rem; }

.eksik-belge-not {
    background: var(--warning-bg);
    border: 1px solid #f5e3b8;
    border-radius: var(--radius);
    padding: 0.75rem 0.875rem;
    margin-bottom: 0.75rem;
}

.eksik-belge-not p {
    font-size: 0.875rem;
    color: var(--text);
    margin: 0.25rem 0 0;
    white-space: pre-line;
}

.eksik-belge-ozet {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.eksik-belge-form {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.eksik-belge-form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.eksik-belge-secim {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.375rem 1rem;
    margin-bottom: 1rem;
}

.eksik-belge-secim .checkbox-row {
    padding: 0.375rem 0.5rem;
    border-radius: var(--radius);
    transition: background 0.15s ease;
}

.eksik-belge-secim .checkbox-row:hover { background: rgba(30, 50, 100, 0.04); }

/* ── Mobil düzen ─────────────────────────────────────────────── */
@media (max-width: 640px) {
    .form-row { grid-template-columns: 1fr; }

    .belge-yonetim-card {
        flex-direction: column;
        align-items: stretch;
    }

    .belge-yonetim-actions { justify-content: flex-start; }

    .action-row {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .page-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .eksik-belge-secim { grid-template-columns: 1fr; }
}

/* Yazdırma: gereksiz kontroller kâğıda basılmasın */
@media print {
    .app-header,
    .app-footer,
    .action-row,
    .belge-yonetim-actions,
    .destek-fab { display: none !important; }

    .content-card {
        box-shadow: none;
        border-color: #999;
        break-inside: avoid;
    }
}

/* Hareket azaltma tercihine saygı */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ══════════════════════════════════════════════════════════════════
   GÖRSEL YENİLEME — v2
   Yalnızca ekleme. Hiçbir sınıf/id yeniden adlandırılmadı; JavaScript'in
   toggle ettiği sınıflara (.hidden, .has-file, .belge-card-hata,
   .belge-yuklu, .validation-error-group, .modal-open) display verilmedi.
   ══════════════════════════════════════════════════════════════════ */

:root {
    --ring: 0 0 0 3px rgba(30, 50, 100, 0.16);
    --elev-1: 0 1px 2px rgba(22, 35, 72, 0.05), 0 1px 3px rgba(22, 35, 72, 0.06);
    --elev-2: 0 2px 4px rgba(22, 35, 72, 0.05), 0 8px 24px rgba(22, 35, 72, 0.09);
    --elev-3: 0 12px 40px rgba(22, 35, 72, 0.16);
    --surface-2: #f7f8fb;
}

body {
    background:
        radial-gradient(1100px 520px at 12% -12%, #e3e8f4 0%, rgba(227, 232, 244, 0) 62%),
        radial-gradient(900px 460px at 105% 0%, #e8eaf1 0%, rgba(232, 234, 241, 0) 58%),
        var(--bg);
    background-attachment: fixed;
}

/* ── Başlıklar ─────────────────────────────────────────────────── */
.page-title {
    font-size: 1.625rem;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.page-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.basvuru-page-header { margin-bottom: 1.75rem; }

.back-link {
    display: inline-block;
    margin-bottom: 0.625rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.back-link:hover { color: var(--navy); text-decoration: none; }

/* ── Üst bar ───────────────────────────────────────────────────── */
.app-header {
    background: linear-gradient(115deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 4px 18px rgba(22, 35, 72, 0.22);
    position: sticky;
    top: 0;
    z-index: 40;
}

.app-header-brand .logo { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25)); }

.app-nav a, .app-nav button { transition: background 0.15s ease, color 0.15s ease; }

/* ── Kartlar ───────────────────────────────────────────────────── */
.content-card {
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--elev-1);
    border-color: #e4e8f0;
}

.content-card:hover { box-shadow: var(--elev-2); }

.content-card h2 {
    position: relative;
    font-size: 1rem;
    padding-bottom: 0.75rem;
    padding-left: 0.875rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.content-card h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 4px;
    height: 1.05rem;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--navy-light), var(--gold));
}

/* ── Butonlar ──────────────────────────────────────────────────── */
.btn {
    border-radius: 10px;
    letter-spacing: 0.005em;
    transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.08s ease, border-color 0.16s ease;
}

.btn-primary {
    background: linear-gradient(180deg, var(--navy-light) 0%, var(--navy) 100%);
    box-shadow: var(--elev-1);
}

.btn-primary:hover {
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
    box-shadow: var(--elev-2);
}

.btn-secondary { box-shadow: var(--elev-1); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-outline:hover { box-shadow: var(--elev-1); }
.btn:active { transform: translateY(1px); }

.btn:disabled, .btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-lg { border-radius: 12px; font-size: 1rem; padding: 0.9375rem 1.75rem; }

/* ── Form alanları ─────────────────────────────────────────────── */
.form-group label { font-size: 0.8125rem; letter-spacing: 0.005em; }

.form-control {
    padding: 0.8125rem 0.9375rem;
    border-radius: 10px;
    border-color: #dfe4ee;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.form-control:hover:not(:focus):not([readonly]) { border-color: #c3cbdc; }
.form-control:focus { box-shadow: var(--ring); }
.form-control[readonly] { background: var(--surface-2); color: var(--text-secondary); }

select.form-control { cursor: pointer; }
textarea.form-control { line-height: 1.55; }

.form-control.input-validation-error,
.input-validation-error { border-color: var(--error); background: var(--error-bg); }

.form-control.input-validation-error:focus { box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.16); }

.validation-error-group {
    border-radius: 12px;
    padding: 0.75rem 0.875rem;
    background: var(--error-bg);
    box-shadow: inset 0 0 0 1.5px rgba(192, 57, 43, 0.3);
}

.checkbox-row {
    border-radius: 10px;
    padding: 0.4375rem 0.5rem;
    transition: background 0.14s ease;
}

.checkbox-row:hover { background: rgba(30, 50, 100, 0.045); }
.checkbox-row input, .radio-inline input { width: 1.05rem; height: 1.05rem; }

/* ── Kayıt seçim kartları ──────────────────────────────────────── */
.kayit-item {
    border-radius: 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.kayit-item:hover { box-shadow: var(--elev-1); }

.kayit-item:has(input:checked) {
    box-shadow: 0 0 0 2px var(--navy-light) inset, var(--elev-1);
    background: #f2f5fb;
}

/* ── Rozetler ──────────────────────────────────────────────────── */
.badge {
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    letter-spacing: 0.015em;
    line-height: 1.5;
    border: 1px solid rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    vertical-align: middle;
}

/* ── Uyarı kutuları ────────────────────────────────────────────── */
.alert {
    position: relative;
    padding: 0.875rem 1rem 0.875rem 1.125rem;
    border-radius: 12px;
    font-size: 0.875rem;
    line-height: 1.55;
    overflow: hidden;
}

.alert::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: currentColor;
    opacity: 0.65;
}

/* ── Tablolar ──────────────────────────────────────────────────── */
.data-table { font-size: 0.875rem; }

.data-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.data-table tbody tr { transition: background 0.12s ease; }
.data-table tbody tr:nth-child(even) { background: #fcfcfe; }
.data-table tbody tr:hover { background: #f1f4fa; }
.data-table td { vertical-align: middle; }

/* ── Belge kartları (başvuru formu) ────────────────────────────── */
.belge-card {
    border-radius: 12px;
    padding: 1.125rem;
    background: var(--surface);
    border-color: #e4e8f0;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.belge-card:hover { box-shadow: var(--elev-1); }
.belge-card-title { font-size: 0.875rem; }
.belge-card-desc { font-size: 0.75rem; }

.belge-card.has-file {
    border-color: #a5d7bd;
    background: linear-gradient(180deg, #f4fbf7 0%, var(--surface) 100%);
}

.belge-card.belge-card-hata {
    border-color: var(--error);
    background: linear-gradient(180deg, #fdf2f0 0%, var(--surface) 100%);
}

.belge-durum-bekliyor { color: var(--text-secondary); font-weight: 500; }

/* ── Belge yönetim listesi (detay ekranları) ───────────────────── */
.belge-yonetim-card {
    border-radius: 14px;
    box-shadow: var(--elev-1);
    border-left-width: 4px;
    border-left-style: solid;
    border-left-color: var(--border);
    transition: box-shadow 0.16s ease, border-color 0.16s ease;
}

.belge-yonetim-card:hover { box-shadow: var(--elev-2); }
.belge-yonetim-card.yuklu { border-left-color: var(--success); }
.belge-yonetim-card.personel-eksik { border-left-color: #f97316; }

.belge-yonetim-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }

/* ── Eksik belge bildirimi ─────────────────────────────────────── */
.eksik-belge-bildirim {
    border-left: 4px solid var(--warning);
    background: linear-gradient(180deg, #fffdf6 0%, var(--surface) 55%);
}

.eksik-belge-bildirim.eksik-belge-tamam {
    border-left-color: var(--success);
    background: linear-gradient(180deg, #f5fbf8 0%, var(--surface) 55%);
}

.eksik-belge-lead { font-size: 0.9375rem; color: var(--text-secondary); margin-bottom: 0.875rem; }

.eksik-belge-liste { margin: 0 0 0.875rem 1.125rem; font-size: 0.875rem; }
.eksik-belge-liste li { margin-bottom: 0.3125rem; }

.eksik-belge-not {
    background: var(--warning-bg);
    border: 1px solid #f2e2b6;
    border-radius: 12px;
    padding: 0.875rem 1rem;
    margin-bottom: 0.875rem;
}

.eksik-belge-not p { font-size: 0.875rem; margin: 0.25rem 0 0; white-space: pre-line; }

.eksik-belge-ozet { display: flex; align-items: center; gap: 0.625rem; flex-wrap: wrap; margin-bottom: 0.875rem; }

.eksik-belge-form { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }

.eksik-belge-form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.625rem;
}

.eksik-belge-secim {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.25rem 1rem;
    margin-bottom: 1.125rem;
    padding: 0.625rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-2);
}

/* ── Modal ─────────────────────────────────────────────────────── */
.app-modal-card {
    border-radius: 18px;
    box-shadow: var(--elev-3);
    padding: 1.75rem 1.75rem 1.5rem;
}

.app-modal-backdrop { backdrop-filter: blur(2px); }
.app-modal-title { font-size: 1.25rem; letter-spacing: -0.015em; }

/* ── Giriş / kayıt ekranı ──────────────────────────────────────── */
.auth-card { border-radius: 18px; box-shadow: var(--elev-3); }

.auth-card-header {
    background: linear-gradient(115deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
}

.auth-title { font-size: 1.5rem; letter-spacing: -0.02em; }

/* ── Yönetim paneli kenar çubuğu ───────────────────────────────── */
.admin-nav-link { border-radius: 8px; transition: background 0.14s ease, color 0.14s ease; }

.admin-nav-link.active { box-shadow: inset 3px 0 0 var(--gold); }

/* ── Erişilebilirlik ───────────────────────────────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
label.btn:focus-within {
    outline: none;
    box-shadow: var(--ring);
}

/* ── Mobil ─────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .app-main { padding: 1.25rem 1rem; }
    .content-card { padding: 1.25rem; border-radius: 14px; }
    .page-title { font-size: 1.375rem; }

    .form-row { grid-template-columns: 1fr; }

    .belge-yonetim-card { flex-direction: column; align-items: stretch; }
    .belge-yonetim-actions { justify-content: flex-start; }

    .action-row { flex-wrap: wrap; gap: 0.5rem; }

    .page-header-row { flex-direction: column; align-items: flex-start; gap: 0.75rem; }

    .eksik-belge-secim { grid-template-columns: 1fr; }

    .data-table th { position: static; }
}

/* ── Yazdırma ──────────────────────────────────────────────────── */
@media print {
    body { background: #fff; }

    .app-header,
    .app-footer,
    .admin-sidebar,
    .action-row,
    .belge-yonetim-actions,
    .destek-fab { display: none !important; }

    .content-card {
        box-shadow: none;
        border-color: #999;
        break-inside: avoid;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Öğrenci işleri ekranı — filtre çubuğu */
.ogrenci-isleri-filtre {
    display: grid;
    grid-template-columns: minmax(240px, 2fr) minmax(160px, 1fr) auto;
    gap: 1rem;
    align-items: end;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-2, #f7f8fb);
}

.ogrenci-isleri-filtre .form-group { margin-bottom: 0; }

.ogrenci-isleri-filtre-actions { display: flex; gap: 0.5rem; }

.ogrenci-isleri-birim { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem; }
.ogrenci-isleri-birim:last-child { margin-bottom: 0; }

@media (max-width: 720px) {
    .ogrenci-isleri-filtre { grid-template-columns: 1fr; }
}

/* Giriş ekranı — personel/yönetici girişi bağlantısı */
.auth-personel-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-top: 1rem;
    padding: 0.875rem 1.125rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--elev-1);
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.08s ease;
}

.auth-personel-link:hover {
    border-color: var(--navy-light);
    box-shadow: var(--elev-2);
    text-decoration: none;
    color: var(--text);
}

.auth-personel-link:active { transform: translateY(1px); }

.auth-personel-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: #fff;
    font-size: 1.0625rem;
}

.auth-personel-link > span:nth-child(2) { flex: 1; min-width: 0; }

.auth-personel-link strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
}

.auth-personel-link small {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.0625rem;
}

.auth-personel-arrow {
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 1.0625rem;
    transition: transform 0.16s ease, color 0.16s ease;
}

.auth-personel-link:hover .auth-personel-arrow { transform: translateX(3px); color: var(--navy); }
