:root {
    --yonetim-bg: #eef2f8;
    --yonetim-sidebar: #0b4b9b;
    --yonetim-sidebar-dark: #0a3f84;
    --yonetim-card: #ffffff;
    --yonetim-border: #d9e3ef;
    --yonetim-text: #1f3658;
    --yonetim-muted: #627998;
    --yonetim-primary: #1f73d7;
    --yonetim-primary-dark: #1a63ba;
    --yonetim-success: #128c5e;
    --yonetim-danger: #c0392b;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
}

body.yonetim-page {
    margin: 0;
    padding: 0;
    font-family: "Poppins", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background: var(--yonetim-bg);
    color: var(--yonetim-text);
    min-height: 100vh;
    overflow-x: hidden;
}

.yonetim-auth-wrap,
.yonetim-dashboard-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 14px;
}

.yonetim-auth-card,
.yonetim-dashboard-card {
    width: 100%;
    max-width: 440px;
    background: var(--yonetim-card);
    border: 1px solid var(--yonetim-border);
    border-radius: 18px;
    padding: 28px 24px;
    box-shadow: 0 18px 40px rgba(14, 46, 83, 0.09);
}

.yonetim-auth-card-wide {
    max-width: 940px;
}

.yonetim-auth-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.yonetim-auth-logo {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    margin-bottom: 16px;
    object-fit: contain;
    border: 1px solid #dbe5ef;
    padding: 6px;
}

.yonetim-auth-card h1 {
    font-size: 1.7rem;
    margin: 0;
}

.yonetim-auth-card p {
    margin: 8px 0 20px;
    color: var(--yonetim-muted);
}

.yonetim-auth-card form {
    display: grid;
    gap: 10px;
}

.yonetim-auth-card label {
    font-size: 0.95rem;
    font-weight: 600;
}

.yonetim-auth-card input {
    width: 100%;
    border: 1px solid #c8d6e6;
    border-radius: 10px;
    padding: 11px 12px;
    font-size: 0.98rem;
    color: var(--yonetim-text);
}

.yonetim-auth-card select {
    width: 100%;
    border: 1px solid #c8d6e6;
    border-radius: 10px;
    padding: 11px 12px;
    font-size: 0.98rem;
    color: var(--yonetim-text);
    background: #fff;
}

.yonetim-auth-card input:focus {
    border-color: #7ca8de;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(10, 79, 168, 0.14);
}

.yonetim-auth-card select:focus {
    border-color: #7ca8de;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(10, 79, 168, 0.14);
}

.yonetim-auth-card button,
.yonetim-logout-btn {
    border: 0;
    border-radius: 10px;
    background: var(--yonetim-primary);
    color: #fff;
    font-weight: 600;
    padding: 12px 14px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.yonetim-auth-card button:hover,
.yonetim-logout-btn:hover {
    background: var(--yonetim-primary-dark);
    transform: translateY(-1px);
}

.yonetim-alert {
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.93rem;
    margin-bottom: 14px;
}

.yonetim-alert-error {
    color: #832d25;
    background: #fde9e6;
    border: 1px solid #f5c5be;
}

.yonetim-alert-success {
    color: #0f6a47;
    background: #e7f8f0;
    border: 1px solid #bde8d3;
}

.okul-auth-tabs {
    display: flex;
    gap: 8px;
    margin: 14px 0 16px;
}

.okul-auth-tab {
    border: 1px solid #c8d9eb;
    background: #f4f9ff;
    color: #2a4f79;
    border-radius: 10px;
    padding: 9px 14px;
    font-weight: 600;
    cursor: pointer;
}

.okul-auth-tab.is-active {
    background: #1f73d7;
    border-color: #1f73d7;
    color: #fff;
}

.okul-auth-panel {
    display: none;
}

.okul-auth-panel.is-active {
    display: block;
}

.okul-auth-form-grid {
    display: grid;
    gap: 10px;
}

.okul-register-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.okul-auth-submit {
    border: 0;
    border-radius: 10px;
    background: var(--yonetim-primary);
    color: #fff;
    font-weight: 700;
    padding: 12px 14px;
}

.okul-captcha-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    align-items: center;
}

.okul-captcha-code {
    min-width: 90px;
    text-align: center;
    background: #f1f6fc;
    border: 1px dashed #a9c2dc;
    color: #1f4d7b;
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.okul-captcha-refresh {
    width: 42px;
    height: 42px;
    border: 1px solid #c8d9eb;
    border-radius: 10px;
    background: #f8fbff;
    color: #2a5f98;
}

.okul-kvkk-check {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    color: var(--yonetim-muted);
    font-size: 0.9rem;
    margin-top: 2px;
}

/* Dashboard */
.yonetim-dashboard-page {
    overflow-x: hidden;
}

.yonetim-dashboard-page .yonetim-layout {
    display: block;
}

.yonetim-dashboard-page .yonetim-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 230px;
    overflow-y: auto;
    z-index: 1020;
}

.yonetim-dashboard-page .yonetim-content {
    margin-left: 230px;
    min-height: 100vh;
    padding-top: 32px;
}

.yonetim-dashboard-page .yonetim-topbar {
    position: fixed;
    top: 0;
    left: 230px;
    right: 0;
    z-index: 1030;
}

.yonetim-dashboard-page .yonetim-main {
    margin-top: 0;
    padding-top: 0;
}

.yonetim-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    grid-template-areas: "sidebar content";
}

.yonetim-sidebar {
    grid-area: sidebar;
    background: linear-gradient(180deg, var(--yonetim-sidebar) 0%, var(--yonetim-sidebar-dark) 100%);
    color: #fff;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 14px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.yonetim-sidebar-brand {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%),
        radial-gradient(circle at 85% 10%, rgba(126, 210, 255, 0.2), transparent 55%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 12px 28px rgba(4, 19, 44, 0.18);
    overflow: hidden;
}

.yonetim-sidebar-brand-glow {
    position: absolute;
    width: 96px;
    height: 96px;
    right: -26px;
    top: -30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(130, 220, 255, 0.34) 0%, rgba(130, 220, 255, 0) 70%);
    pointer-events: none;
}

.yonetim-sidebar-brand-logo-wrap {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(239,246,255,0.94) 100%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 10px 18px rgba(3, 18, 40, 0.18);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.yonetim-sidebar-brand img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #fff;
    padding: 4px;
    object-fit: contain;
}

.yonetim-sidebar-brand-text {
    min-width: 0;
}

.yonetim-sidebar-brand-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #dff1ff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.yonetim-sidebar-brand strong {
    display: block;
    font-size: 0.98rem;
    line-height: 1.12;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.yonetim-sidebar-brand span {
    font-size: 0.7rem;
    opacity: 0.88;
}

.yonetim-sidebar-brand-text > span:last-child {
    color: rgba(231, 241, 255, 0.95);
}

.okul-sidebar-brand-title,
.okul-sidebar-brand-sub {
    display: block;
    font-size: 0.96rem;
    line-height: 1.2;
}

.okul-sidebar-brand-title {
    font-weight: 700;
}

.okul-sidebar-brand-sub {
    font-weight: 600;
    opacity: 0.95;
}

.okul-sidebar-brand-sub-small {
    display: block;
    font-size: 0.78rem;
    line-height: 1.15;
    font-weight: 600;
    opacity: 0.9;
}

.yonetim-nav {
    display: grid;
    gap: 8px;
}

.yonetim-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #eaf2ff;
    text-decoration: none;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.yonetim-nav a i {
    width: 18px;
    text-align: center;
}

.yonetim-nav a.active,
.yonetim-nav a:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.yonetim-content {
    grid-area: content;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.yonetim-topbar {
    min-height: 72px;
    background: #fff;
    border-bottom: 1px solid var(--yonetim-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 24px;
}

.yonetim-topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.yonetim-topbar-left h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #213b60;
}

.yonetim-sidebar-toggle {
    border: 1px solid #cfe0f4;
    background: #f6fbff;
    color: #21548e;
    border-radius: 10px;
    width: 42px;
    height: 42px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    cursor: pointer;
}

.yonetim-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.yonetim-session-box {
    line-height: 1;
    text-align: right;
}

.yonetim-session-box span {
    display: block;
    color: #8a9cb7;
    font-size: 0.67rem;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.yonetim-session-box strong {
    color: #1f73d7;
    font-size: 1.25rem;
    font-weight: 700;
}

.yonetim-user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f9ff;
    border: 1px solid #d7e5f5;
    border-radius: 12px;
    padding: 6px 10px;
}

.yonetim-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--yonetim-primary);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
}

.yonetim-user-avatar-logo {
    object-fit: contain;
    background: #ffffff;
    padding: 2px;
    border: 1px solid #d7e5f5;
}

.yonetim-user-text strong {
    display: block;
    font-size: 0.86rem;
    line-height: 1.15;
}

.yonetim-user-text small {
    color: #7f94b1;
    font-size: 0.73rem;
}

.yonetim-logout-btn {
    padding: 10px 14px;
    font-size: 0.9rem;
    border-radius: 9px;
}

.yonetim-logout-icon-btn {
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.02rem;
}

.yonetim-main {
    padding: 24px;
}

.yonetim-hero-card {
    background: linear-gradient(135deg, #1d62b4 0%, #3284ed 100%);
    border-radius: 16px;
    color: #fff;
    padding: 24px 26px;
    box-shadow: 0 14px 28px rgba(29, 98, 180, 0.24);
    margin-bottom: 18px;
}

.yonetim-hero-card h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.yonetim-hero-card p {
    margin: 8px 0 0;
    opacity: 0.94;
    font-size: 1rem;
}

.yonetim-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.yonetim-stat-card {
    background: #fff;
    border: 1px solid var(--yonetim-border);
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    box-shadow: 0 10px 22px rgba(20, 56, 98, 0.06);
}

.yonetim-stat-card h3 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.1;
    color: #1f508a;
    font-weight: 700;
}

.yonetim-stat-card p {
    margin: 0;
    color: #647b99;
    font-size: 0.95rem;
}

.yonetim-stat-card span {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #e8f2ff;
    color: #216ecf;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.yonetim-service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.yonetim-service-card {
    background: #fff;
    border: 1px solid var(--yonetim-border);
    border-radius: 14px;
    padding: 18px 15px 16px;
    text-align: center;
    box-shadow: 0 10px 22px rgba(20, 56, 98, 0.05);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.yonetim-service-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.yonetim-service-card.is-unread {
    border-color: #8fc0ff;
    box-shadow: 0 16px 30px rgba(31, 115, 215, 0.14);
    background: linear-gradient(180deg, #ffffff 0%, #f5faff 100%);
}

.yonetim-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(16, 57, 103, 0.13);
}

.yonetim-badge-alert {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #1f73d7;
    color: #fff;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 6px 14px rgba(31, 115, 215, 0.2);
}

.yonetim-service-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1f73d7 0%, #2463b5 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.yonetim-service-card h3 {
    margin: 0 0 7px;
    font-size: 1.38rem;
    font-weight: 600;
}

.yonetim-service-card p {
    margin: 0;
    color: var(--yonetim-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.yonetim-badge-new {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #f8445b;
    color: #fff;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.yonetim-form-card {
    background: #fff;
    border: 1px solid var(--yonetim-border);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 10px 22px rgba(20, 56, 98, 0.05);
}

.yonetim-form-card h2 {
    margin: 0 0 6px;
    font-size: 1.4rem;
}

.yonetim-form-card > p {
    margin: 0 0 16px;
    color: var(--yonetim-muted);
}

.yonetim-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.yonetim-form-field {
    display: grid;
    gap: 6px;
}

.yonetim-form-field-full {
    grid-column: 1 / -1;
}

.yonetim-form-field label {
    font-size: 0.92rem;
    font-weight: 600;
}

.yonetim-form-field input,
.yonetim-form-field textarea,
.yonetim-form-field select {
    border: 1px solid #c8d6e6;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.95rem;
    color: var(--yonetim-text);
    width: 100%;
}

.yonetim-form-field input:focus,
.yonetim-form-field textarea:focus,
.yonetim-form-field select:focus {
    border-color: #7ca8de;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(10, 79, 168, 0.14);
}

.yonetim-form-section {
    border-top: 1px solid var(--yonetim-border);
    margin-top: 6px;
    padding-top: 14px;
}

.yonetim-form-section h3 {
    margin: 0 0 4px;
    font-size: 1.1rem;
}

.yonetim-form-section p {
    margin: 0;
    color: var(--yonetim-muted);
    font-size: 0.9rem;
}

.yonetim-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.yonetim-preview-item {
    border: 1px dashed #c7d8ec;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}

.yonetim-preview-item span {
    display: block;
    font-size: 0.85rem;
    color: var(--yonetim-muted);
    margin-bottom: 8px;
}

.yonetim-preview-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.yonetim-form-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
}

.yonetim-meta-info {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--yonetim-muted);
    font-size: 0.92rem;
}

.app-toast-stack {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 4000;
    display: grid;
    gap: 10px;
    width: min(420px, calc(100vw - 24px));
}

.app-toast {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    border-radius: 12px;
    border: 1px solid #d6e2f1;
    background: #ffffff;
    color: #1f3658;
    padding: 10px 12px;
    box-shadow: 0 12px 24px rgba(16, 45, 82, 0.16);
    animation: appToastIn 0.18s ease-out;
}

.app-toast-success {
    border-left: 4px solid #1fa16c;
}

.app-toast-error {
    border-left: 4px solid #d24a3b;
}

.app-toast-body {
    font-size: 0.93rem;
    line-height: 1.45;
}

.app-toast-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.app-toast-close {
    border: 0;
    background: transparent;
    color: #587495;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.app-toast.is-hiding {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.destek-page-grid {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 16px;
}

.destek-page-grid-single {
    grid-template-columns: minmax(0, 1fr);
}

.destek-list-card,
.destek-chat-card {
    background: #fff;
    border: 1px solid var(--yonetim-border);
    border-radius: 14px;
    box-shadow: 0 10px 22px rgba(20, 56, 98, 0.05);
}

.destek-list-card {
    padding: 16px;
    display: grid;
    gap: 14px;
    align-content: start;
    max-height: calc(100vh - 130px);
    overflow: hidden;
}

.destek-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.destek-list-header h2 {
    margin: 0;
    font-size: 1.12rem;
}

.destek-list-header span {
    color: #6a809f;
    font-size: 0.82rem;
}

.destek-new-form,
.destek-reply-form {
    display: grid;
    gap: 8px;
}

.destek-new-form label,
.destek-reply-form label {
    font-size: 0.84rem;
    font-weight: 600;
    color: #395a82;
}

.destek-new-form input,
.destek-new-form textarea,
.destek-reply-form input,
.destek-reply-form textarea,
.destek-reply-form select {
    width: 100%;
    border: 1px solid #c8d6e6;
    border-radius: 10px;
    padding: 10px 11px;
    font-size: 0.92rem;
    color: var(--yonetim-text);
    background: #fff;
}

.destek-thread-list {
    display: grid;
    gap: 8px;
    overflow: auto;
    padding-right: 4px;
}

.destek-thread-item {
    border: 1px solid #dbe7f4;
    border-radius: 10px;
    padding: 10px 11px;
    text-decoration: none;
    color: var(--yonetim-text);
    display: grid;
    gap: 4px;
}

.destek-thread-item strong {
    font-size: 0.9rem;
}

.destek-thread-item small {
    color: #6982a2;
    font-size: 0.78rem;
}

.destek-thread-item:hover,
.destek-thread-item.is-active {
    border-color: #96bbe8;
    background: #f3f8ff;
}

.destek-chat-card {
    min-height: 620px;
    height: calc(100vh - 130px);
    max-height: calc(100vh - 130px);
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    overflow: hidden;
}

.destek-chat-header {
    border-bottom: 1px solid var(--yonetim-border);
    padding: 16px 18px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.destek-chat-header h3 {
    margin: 0;
    font-size: 1.04rem;
}

.destek-chat-header p {
    margin: 4px 0 0;
    color: #637b9a;
    font-size: 0.86rem;
}

.destek-chat-typing {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #2f7e57;
    font-size: 0.82rem;
    font-weight: 600;
}

.destek-chat-typing .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2fb36d;
    box-shadow: 0 0 0 0 rgba(47, 179, 109, 0.3);
    animation: destekTypingPulse 1.2s ease-in-out infinite;
}

.destek-messages {
    padding: 14px 18px;
    overflow: auto;
    background: #f6f9ff;
    display: grid;
    gap: 10px;
    min-height: 0;
}

.destek-message {
    border-radius: 11px;
    padding: 10px 12px;
    max-width: min(82%, 820px);
    border: 1px solid #d8e5f4;
    background: #fff;
}

.destek-message.is-me {
    margin-left: auto;
    border-color: #aac8ec;
    background: #edf5ff;
}

.destek-message-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.destek-message-meta strong {
    font-size: 0.83rem;
}

.destek-message-meta span {
    font-size: 0.75rem;
    color: #728aa8;
}

.destek-message p {
    margin: 0;
    white-space: pre-wrap;
    font-size: 0.9rem;
    line-height: 1.45;
}

.destek-msg-source {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(31, 115, 215, 0.08);
    color: #3f628f;
    font-size: 0.78rem;
}

.destek-msg-source span {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.destek-msg-inline-actions {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.destek-msg-edit-btn {
    border: 1px solid #c8d8ec;
    background: #fff;
    color: #365c8e;
    border-radius: 7px;
    padding: 2px 8px;
    font-size: 0.75rem;
    line-height: 1.2;
}

.destek-msg-edit-btn:hover {
    border-color: #a8c6ea;
    color: #1f73d7;
    background: #f7fbff;
}

.destek-msg-edited {
    color: #6d839f;
    font-size: 0.74rem;
    font-style: italic;
}

.destek-msg-state {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #7a8fa9;
}

.destek-msg-state.is-read {
    color: #1f73d7;
}

.destek-attachments {
    margin-top: 8px;
    display: grid;
    gap: 6px;
}

.destek-image-thumb {
    border: 1px solid #d6e4f5;
    border-radius: 10px;
    background: #f9fcff;
    padding: 8px;
    display: grid;
    gap: 6px;
    justify-items: start;
    cursor: pointer;
    text-align: left;
}

.destek-image-thumb img {
    width: 92px;
    height: 92px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #cfe0f5;
    display: block;
}

.destek-image-thumb span {
    font-size: 0.8rem;
    color: #2e5d96;
    word-break: break-word;
}

.destek-attachments a {
    text-decoration: none;
    color: #1e67c0;
    font-size: 0.84rem;
}

.destek-image-modal[hidden] {
    display: none;
}

.destek-image-modal {
    position: fixed;
    inset: 0;
    z-index: 4100;
}

.destek-image-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 19, 34, 0.7);
}

.destek-image-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 900px);
    max-height: 92vh;
    margin: 3vh auto 0;
    background: #fff;
    border-radius: 14px;
    padding: 12px 12px 10px;
    box-shadow: 0 18px 40px rgba(7, 22, 44, 0.35);
    display: grid;
    gap: 8px;
}

.destek-image-modal-close {
    justify-self: end;
    width: 36px;
    height: 36px;
    border: 1px solid #d5e2f3;
    border-radius: 9px;
    background: #fff;
    color: #2a4d78;
    cursor: pointer;
}

.destek-image-modal-dialog img {
    width: 100%;
    max-height: 76vh;
    object-fit: contain;
    border-radius: 10px;
    background: #eff4fb;
}

.destek-image-modal-dialog p {
    margin: 0;
    font-size: 0.88rem;
    color: #4f6d93;
    word-break: break-word;
}

.destek-reply-form {
    border-top: 1px solid var(--yonetim-border);
    padding: 14px 18px 18px;
    background: #fff;
}

.destek-empty,
.destek-empty-chat,
.destek-closed-note {
    margin: 0;
    color: #607b9d;
    font-size: 0.9rem;
}

.destek-empty-chat {
    height: 100%;
    display: grid;
    place-content: center;
    text-align: center;
    gap: 8px;
}

.destek-empty-chat i {
    font-size: 1.6rem;
    color: #7fa0c9;
}

.destek-board-card {
    background: #f7f9fd;
    border: 1px solid var(--yonetim-border);
    border-radius: 16px;
    box-shadow: 0 10px 22px rgba(20, 56, 98, 0.04);
    padding: 14px;
}

.destek-board-header {
    text-align: center;
    padding: 8px 8px 14px;
}

.destek-board-header h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #2c496f;
}

.destek-board-header p {
    margin: 4px 0 0;
    color: #7188a6;
    font-size: 0.85rem;
}

.destek-talep-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.destek-talep-card {
    position: relative;
    background: #fff;
    border: 1px solid #e2eaf4;
    border-radius: 18px;
    padding: 18px 16px 16px;
    text-align: center;
    box-shadow: 0 8px 18px rgba(20, 56, 98, 0.05);
    min-height: 280px;
    display: grid;
    align-content: start;
    justify-items: center;
    gap: 8px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.destek-talep-card.has-unread {
    border-color: #8dc0ff;
    box-shadow: 0 14px 28px rgba(31, 115, 215, 0.13);
    background: linear-gradient(180deg, #ffffff 0%, #f5faff 100%);
}

.destek-talep-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 26px rgba(20, 56, 98, 0.1);
    border-color: #c8daee;
}

.destek-talep-card.is-active {
    border-color: #83b2e8;
    box-shadow: 0 12px 24px rgba(31, 115, 215, 0.12);
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.destek-talep-unread-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #0d63c9;
    background: #eaf4ff;
    border: 1px solid #c9e1fb;
    box-shadow: 0 4px 10px rgba(31, 115, 215, 0.08);
}

.destek-talep-unread-badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1f73d7;
    box-shadow: 0 0 0 3px rgba(31, 115, 215, 0.16);
}

.destek-talep-logo-wrap {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #f0f3f9;
    box-shadow: 0 4px 10px rgba(13, 38, 72, 0.14);
    display: grid;
    place-items: center;
    overflow: hidden;
    margin-bottom: 4px;
}

.destek-talep-logo {
    width: 78px;
    height: 78px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
}

.destek-talep-card h3 {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.3;
    min-height: 2.5em;
    font-weight: 700;
    color: #1e2e47;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.destek-talep-yetkili {
    margin: 0;
    color: #5f7696;
    font-size: 0.9rem;
    min-height: 1.35em;
}

.destek-talep-meta {
    margin: 0;
    color: #758ba8;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.destek-talep-actions {
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.destek-talep-actions form {
    margin: 0;
}

.destek-talep-actions .btn {
    border-radius: 7px;
    padding: 6px 12px;
    font-size: 0.86rem;
    box-shadow: 0 4px 10px rgba(20, 56, 98, 0.08);
}

.destek-talep-actions .btn[disabled] {
    opacity: 0.9;
    cursor: not-allowed;
}

.destek-chat-wrap {
    display: block;
}

.destek-chat-overlay {
    position: fixed;
    inset: 0;
    z-index: 3200;
    display: grid;
    place-items: center;
    padding: 16px;
}

.destek-chat-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(14, 24, 40, 0.48);
    backdrop-filter: blur(2px);
}

.destek-chat-card-modal {
    position: relative;
    z-index: 1;
    width: min(96vw, 1540px);
    height: min(92vh, 980px);
    max-height: min(92vh, 980px);
    min-height: min(92vh, 720px);
    border-radius: 18px;
    border: 1px solid #cfdcec;
    box-shadow: 0 24px 55px rgba(8, 23, 45, 0.28);
    background: #fff;
}

.destek-chat-modal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 8px;
    border-bottom: 1px solid #e6edf6;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8fd 100%);
}

.destek-chat-modal-school {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.destek-chat-modal-school-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e7eef7;
    display: grid;
    place-items: center;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(18, 47, 84, 0.08);
}

.destek-chat-modal-school-logo img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
}

.destek-chat-modal-school-text {
    min-width: 0;
}

.destek-chat-modal-school-text h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.2;
    color: #2a5fb7;
    font-weight: 700;
}

.destek-chat-modal-school-text p {
    margin: 4px 0 0;
    color: #677f9f;
    font-size: 0.88rem;
}

.destek-chat-overlay-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #d7e3f2;
    background: #fff;
    color: #405a7d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(20, 56, 98, 0.06);
}

.destek-chat-overlay-close:hover {
    background: #f7fbff;
    color: #1f73d7;
    border-color: #bdd5f0;
}

@keyframes appToastIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes destekTypingPulse {
    0% { box-shadow: 0 0 0 0 rgba(47, 179, 109, 0.28); }
    70% { box-shadow: 0 0 0 8px rgba(47, 179, 109, 0); }
    100% { box-shadow: 0 0 0 0 rgba(47, 179, 109, 0); }
}

@media (max-width: 1199.98px) {
    .yonetim-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .yonetim-service-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .yonetim-dashboard-page .yonetim-layout {
        display: grid;
    }

    .yonetim-dashboard-page .yonetim-sidebar {
        width: 250px;
        max-width: 86vw;
        transform: translateX(-100%);
    }

    .yonetim-dashboard-page .yonetim-sidebar.show {
        transform: translateX(0);
    }

    .yonetim-dashboard-page .yonetim-content {
        margin-left: 0;
        min-height: 0;
        padding-top: 0;
    }

    .yonetim-dashboard-page .yonetim-topbar {
        position: sticky;
        top: 0;
        left: auto;
        right: auto;
        z-index: 1000;
    }

    .yonetim-dashboard-page .yonetim-main {
        padding-top: 0;
    }

    .yonetim-layout {
        grid-template-columns: 1fr;
        grid-template-areas: "content";
    }

    .yonetim-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        width: 250px;
        max-width: 86vw;
        z-index: 1100;
        transition: transform 0.25s ease;
    }

    .yonetim-sidebar.show {
        transform: translateX(0);
    }

    .yonetim-sidebar-toggle {
        display: inline-flex;
    }

    .yonetim-main {
        padding: 18px;
    }

    .yonetim-topbar {
        position: sticky;
        top: 0;
        left: auto;
        right: auto;
        width: 100%;
        padding: 12px 18px;
    }

    .yonetim-topbar-left h1 {
        font-size: 1.45rem;
    }

    .yonetim-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .yonetim-preview-grid {
        grid-template-columns: 1fr;
    }

    .destek-page-grid {
        grid-template-columns: 1fr;
    }

    .destek-talep-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .destek-list-card {
        max-height: none;
    }

    .destek-chat-card {
        min-height: 520px;
        height: calc(100vh - 120px);
        max-height: calc(100vh - 120px);
    }

    .destek-chat-card-modal {
        width: min(98vw, 1540px);
        height: min(94vh, 980px);
        min-height: 0;
    }

    .yonetim-content {
        margin-left: 0;
    }
}

@media (min-width: 992px) {
    .yonetim-dashboard-page .yonetim-sidebar {
        transform: none !important;
    }

    .yonetim-sidebar {
        position: sticky;
        top: 0;
        transform: none !important;
    }
}

@media (max-width: 767.98px) {
    .yonetim-sidebar-brand {
        padding: 12px 10px;
        border-radius: 14px;
        gap: 10px;
    }

    .yonetim-sidebar-brand-logo-wrap {
        width: 58px;
        height: 58px;
        border-radius: 14px;
    }

    .yonetim-sidebar-brand img {
        width: 46px;
        height: 46px;
    }

    .yonetim-sidebar-brand strong {
        font-size: 0.9rem;
    }

    .destek-talep-grid {
        grid-template-columns: 1fr;
    }

    .destek-talep-card {
        min-height: 0;
    }

    .destek-chat-overlay {
        padding: 8px;
    }

    .destek-chat-card-modal {
        width: 100%;
        height: 96vh;
        max-height: 96vh;
        border-radius: 14px;
    }

    .destek-chat-modal-top {
        padding: 10px 12px 8px;
    }

    .destek-chat-modal-school-logo {
        width: 42px;
        height: 42px;
    }

    .destek-chat-modal-school-logo img {
        width: 34px;
        height: 34px;
    }

    .destek-chat-modal-school-text h3 {
        font-size: 0.9rem;
    }
}

/* Okullar (Yonetim) */
.yonetim-card {
    background: var(--yonetim-card);
    border: 1px solid var(--yonetim-border);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(14, 46, 83, 0.06);
}

.yonetim-card-pad {
    padding: 18px;
}

.yonetim-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.yonetim-card-title {
    margin: 0;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

.yonetim-card-sub {
    margin: 6px 0 0;
    color: var(--yonetim-muted);
    font-size: 0.95rem;
}

.yonetim-filter-row {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) minmax(0, 220px) auto;
    gap: 12px;
    align-items: end;
}

.yonetim-filter-item label {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #587395;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.yonetim-filter-item input,
.yonetim-filter-item select {
    width: 100%;
    border: 1px solid #c8d6e6;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 0.98rem;
    color: var(--yonetim-text);
    background: #fff;
}

.yonetim-filter-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.yonetim-table-wrap {
    overflow: auto;
}

.yonetim-table thead th {
    white-space: nowrap;
}

.yonetim-okul-cell {
    display: grid;
    gap: 3px;
}

.yonetim-okul-cell small {
    font-size: 0.82rem;
}

.yonetim-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.yonetim-pagination .pagination {
    margin: 0;
}

.yonetim-modal-backdrop[hidden] {
    display: none;
}

.yonetim-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 1060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.yonetim-modal-card {
    width: min(980px, 100%);
    max-height: calc(100vh - 44px);
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    border: 1px solid #d7e3f0;
}

.yonetim-modal-header,
.yonetim-modal-footer {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.yonetim-modal-footer {
    border-bottom: none;
    border-top: 1px solid #e2e8f0;
    justify-content: flex-end;
}

.yonetim-modal-title {
    margin: 0;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.yonetim-modal-sub {
    margin-top: 4px;
    color: var(--yonetim-muted);
    font-size: 0.92rem;
}

.yonetim-modal-close {
    width: 36px;
    height: 36px;
    border: 1px solid #c8d9eb;
    border-radius: 10px;
    background: #f8fbff;
    color: #2a5f98;
    font-size: 22px;
    line-height: 1;
}

.yonetim-modal-body {
    padding: 14px 16px;
}

.yonetim-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.yonetim-info-box {
    border: 1px solid #dbe5ef;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 12px;
}

.yonetim-info-box h4 {
    margin: 0 0 10px;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #34597f;
}

.yonetim-kv {
    display: grid;
    gap: 8px;
}

.yonetim-kv-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #e3edf8;
    border-radius: 12px;
}

.yonetim-kv-row span {
    color: #5f7898;
    font-weight: 700;
    font-size: 0.9rem;
}

.yonetim-kv-row strong {
    color: #173b65;
    font-weight: 700;
    font-size: 0.92rem;
}

.yonetim-stat-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.yonetim-mini-tile {
    display: flex;
    gap: 10px;
    align-items: center;
    border: 1px solid #e3edf8;
    border-radius: 14px;
    background: #fff;
    padding: 10px;
}

.yonetim-mini-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(31, 115, 215, 0.1);
    color: #1f73d7;
}

.yonetim-mini-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: #173b65;
    line-height: 1.1;
}

.yonetim-mini-label {
    font-size: 0.85rem;
    color: #5f7898;
    font-weight: 700;
}

.yonetim-danger-zone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(192, 57, 43, 0.35);
    background: rgba(192, 57, 43, 0.06);
    border-radius: 14px;
    padding: 12px;
}

@media (max-width: 991.98px) {
    .yonetim-filter-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

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

    .yonetim-modal-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .yonetim-auth-card,
    .yonetim-dashboard-card {
        border-radius: 14px;
        padding: 22px 18px;
    }

    .yonetim-topbar-right {
        gap: 8px;
    }

    .yonetim-user-text {
        display: none;
    }

    .yonetim-session-box {
        display: none;
    }

    .yonetim-stats-grid,
    .yonetim-service-grid {
        grid-template-columns: 1fr;
    }

    .yonetim-hero-card h2 {
        font-size: 1.6rem;
    }

    .yonetim-hero-card p {
        font-size: 0.94rem;
    }

    .okul-register-grid {
        grid-template-columns: 1fr;
    }

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

    .app-toast-stack {
        left: 12px;
        right: 12px;
        width: auto;
    }
}
