/* ==========================================================================
   Cimcoz Yıllık — tema katmanı
   Metronic'in üzerine yüklenir. Sadece görünüm; davranış yok.
   Yön: basılı yıllık. Kâğıt zemin, mürekkep metin, tek vurgu rengi,
   ince çizgiler, gölge ve gradient yok.
   ========================================================================== */

:root:not([data-bs-theme=dark]),
[data-bs-theme=light] {
    --y-paper: #f4f1ea;
    --y-paper-2: #ebe6db;
    --y-surface: #fffdf8;
    --y-ink: #1d1b17;
    --y-ink-2: #4a463e;
    --y-muted: #7a7366;
    --y-line: #e2dccf;
    --y-line-strong: #cfc7b6;
    --y-accent: #a8402b;
    --y-accent-dark: #8a3221;
    --y-accent-soft: #f5e6e0;

    --y-serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
    --y-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

    /* Bootstrap / Metronic eşlemeleri */
    --bs-font-sans-serif: var(--y-sans);
    --bs-body-font-family: var(--y-sans);
    --bs-body-color: var(--y-ink);
    --bs-body-color-rgb: 29, 27, 23;
    --bs-body-bg: var(--y-surface);
    --bs-app-bg-color: var(--y-paper);
    --bs-app-blank-bg-color: var(--y-paper);
    --bs-border-color: var(--y-line);
    --bs-border-radius: 6px;
    --bs-border-radius-sm: 4px;
    --bs-border-radius-lg: 8px;
    --bs-border-radius-xl: 10px;

    --bs-link-color: var(--y-accent);
    --bs-link-color-rgb: 168, 64, 43;
    --bs-link-hover-color: var(--y-accent-dark);

    --bs-primary: #a8402b;
    --bs-primary-rgb: 168, 64, 43;
    --bs-primary-active: #8a3221;
    --bs-primary-light: #f5e6e0;
    --bs-primary-inverse: #ffffff;
    --bs-text-primary: #a8402b;
    --bs-primary-bg-subtle: #f5e6e0;
    --bs-primary-border-subtle: #e6c3b8;

    --bs-success: #3d6b4a;
    --bs-success-rgb: 61, 107, 74;
    --bs-success-active: #2f5539;
    --bs-success-light: #e5eee6;
    --bs-text-success: #3d6b4a;

    --bs-info: #3f5a78;
    --bs-info-rgb: 63, 90, 120;
    --bs-info-active: #304760;
    --bs-info-light: #e4eaf1;
    --bs-text-info: #3f5a78;

    --bs-warning: #b0731a;
    --bs-warning-rgb: 176, 115, 26;
    --bs-warning-active: #925e12;
    --bs-warning-light: #f6ecda;
    --bs-warning-inverse: #ffffff;
    --bs-text-warning: #b0731a;

    --bs-danger: #b42318;
    --bs-danger-rgb: 180, 35, 24;
    --bs-danger-active: #941c13;
    --bs-danger-light: #f8e4e1;
    --bs-text-danger: #b42318;

    --bs-dark: #1d1b17;
    --bs-dark-rgb: 29, 27, 23;
    --bs-dark-active: #000000;
    --bs-text-dark: #1d1b17;

    --bs-light: #f4f1ea;
    --bs-light-active: #ebe6db;

    --bs-gray-100: #f7f5f0;
    --bs-gray-200: #efebe3;
    --bs-gray-300: #e2dccf;
    --bs-gray-400: #c4bcab;
    --bs-gray-500: #9a9283;
    --bs-gray-600: #7a7366;
    --bs-gray-700: #5a554b;
    --bs-gray-800: #3a362f;
    --bs-gray-900: #1d1b17;
    --bs-text-muted: #7a7366;

    --bs-card-bg: var(--y-surface);
    --bs-card-box-shadow: none;
    --bs-card-border-color: var(--y-line);

    --bs-input-bg: var(--y-surface);
    --bs-input-solid-bg: var(--y-paper);
    --bs-input-solid-bg-focus: var(--y-paper-2);

    --bs-app-header-base-bg-color: var(--y-paper);
    --bs-app-header-base-box-shadow: none;
    --bs-app-header-minimize-bg-color: var(--y-paper);
    --bs-app-header-minimize-box-shadow: none;
}


/* Koyu mod (yalnızca tema düğmesi olan sayfalar için) */
[data-bs-theme=dark] {
    --y-paper: #171612;
    --y-paper-2: #1f1d19;
    --y-surface: #23211c;
    --y-ink: #f1ede4;
    --y-ink-2: #cfc9bc;
    --y-muted: #9a9283;
    --y-line: #35322b;
    --y-line-strong: #4a463e;
    --y-accent: #d0674f;
    --y-accent-dark: #b9543d;
    --y-accent-soft: #3a2620;
    --y-serif: "Source Serif 4", Georgia, serif;
    --y-sans: "IBM Plex Sans", system-ui, sans-serif;

    --bs-body-bg: var(--y-paper);
    --bs-body-color: var(--y-ink);
    --bs-card-bg: var(--y-surface);
    --bs-border-color: var(--y-line);
    --bs-primary: #d0674f;
    --bs-primary-rgb: 208, 103, 79;
    --bs-primary-light: #3a2620;
    --bs-text-primary: #d0674f;
}

[data-bs-theme=dark] .photo-toolbar {
    background: var(--y-paper) !important;
    border-bottom-color: var(--y-line) !important;
}

/* --------------------------------------------------------------------------
   Temel
   -------------------------------------------------------------------------- */
html, body {
    font-family: var(--y-sans);
    color: var(--y-ink);
    -webkit-font-smoothing: antialiased;
}

body.app-default,
body.app-blank {
    background-color: var(--y-paper) !important;
}

::selection {
    background: var(--y-accent);
    color: #fff;
}

h1, h2, h3, .h1, .h2, .h3,
.page-heading,
.card-title .card-label,
.modal-title {
    font-family: var(--y-serif);
    font-weight: 600 !important;
    letter-spacing: -0.01em;
    color: var(--y-ink);
}

.text-dark, .text-gray-900 { color: var(--y-ink) !important; }
.text-gray-800 { color: var(--bs-gray-800) !important; }
.text-gray-600, .text-gray-700 { color: var(--y-ink-2) !important; }
.text-muted, .text-gray-500 { color: var(--y-muted) !important; }

a { text-underline-offset: 3px; }

/* Sayfa başlığı — yıllık bölüm başlığı gibi */
.page-title {
    padding-bottom: 1.25rem;
    margin-bottom: 1.75rem !important;
    border-bottom: 1px solid var(--y-line);
}

.page-title .page-heading {
    font-size: 1.75rem !important;
    letter-spacing: 0.01em;
}

.page-title p {
    margin: 0.35rem 0 0 !important;
}

/* --------------------------------------------------------------------------
   Kabuk: header + sidebar
   -------------------------------------------------------------------------- */
.app-header,
[data-kt-app-header-fixed=true] .app-header,
[data-kt-sticky-app-header-minimize=on] .app-header {
    background-color: var(--y-paper) !important;
    border-bottom: 1px solid var(--y-line) !important;
    box-shadow: none !important;
}

[data-kt-app-layout=dark-sidebar] .app-sidebar,
.app-sidebar {
    background-color: var(--y-paper-2) !important;
    border-right: 1px solid var(--y-line) !important;
    box-shadow: none !important;
}

[data-kt-app-layout=dark-sidebar] .app-sidebar .app-sidebar-logo {
    border-bottom: 1px solid var(--y-line) !important;
}

.app-sidebar-logo-default,
.app-sidebar-logo-minimize {
    background-color: transparent !important;
    border-radius: 0 !important;
    mix-blend-mode: multiply;
}

.app-sidebar-toggle {
    background-color: var(--y-surface) !important;
    border: 1px solid var(--y-line) !important;
    box-shadow: none !important;
}

.app-sidebar-toggle i { color: var(--y-ink-2) !important; }

.app-sidebar .menu > .menu-item {
    margin-bottom: 2px;
}

.app-sidebar .menu > .menu-item .menu-link {
    border-radius: 4px !important;
    padding: 0.6rem 0.85rem !important;
    position: relative;
    transition: background-color .12s ease, color .12s ease !important;
}

.app-sidebar .menu > .menu-item .menu-link,
.app-sidebar .menu > .menu-item .menu-link .menu-title {
    color: var(--y-ink-2) !important;
    font-weight: 500;
}

.app-sidebar .menu > .menu-item .menu-link .menu-icon,
.app-sidebar .menu > .menu-item .menu-link .menu-icon i {
    color: var(--y-muted) !important;
}

.app-sidebar .menu > .menu-item .menu-link:hover:not(.active) {
    background-color: rgba(29, 27, 23, 0.05) !important;
}

.app-sidebar .menu > .menu-item .menu-link:hover:not(.active) .menu-title,
.app-sidebar .menu > .menu-item .menu-link:hover:not(.active) .menu-icon i {
    color: var(--y-ink) !important;
}

.app-sidebar .menu > .menu-item .menu-link.active {
    background-color: var(--y-surface) !important;
    box-shadow: inset 0 0 0 1px var(--y-line);
}

.app-sidebar .menu > .menu-item .menu-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--y-accent);
}

.app-sidebar .menu > .menu-item .menu-link.active .menu-title {
    color: var(--y-ink) !important;
    font-weight: 600;
}

.app-sidebar .menu > .menu-item .menu-link.active .menu-icon i {
    color: var(--y-accent) !important;
}

/* Kullanıcı avatarı (header) */
.app-navbar .symbol-label {
    background-color: var(--y-ink) !important;
    color: var(--y-paper) !important;
    font-family: var(--y-serif);
    font-weight: 600;
    border-radius: 50%;
}

/* Açılır menüler */
.menu-sub-dropdown,
.dropdown-menu {
    background-color: var(--y-surface) !important;
    border: 1px solid var(--y-line) !important;
    border-radius: 6px !important;
    box-shadow: 0 8px 24px rgba(29, 27, 23, 0.08) !important;
}

.menu-sub-dropdown .menu-content .symbol-label {
    background-color: var(--y-ink) !important;
    color: var(--y-paper) !important;
    font-family: var(--y-serif);
    border-radius: 50%;
}

.separator { border-bottom-color: var(--y-line) !important; }

/* --------------------------------------------------------------------------
   Kartlar
   -------------------------------------------------------------------------- */
.card {
    background-color: var(--y-surface);
    border: 1px solid var(--y-line) !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}

.card.shadow-sm,
.card.shadow,
.shadow-sm,
.shadow { box-shadow: none !important; }

.card > .card-header {
    min-height: 64px;
}

.card > .card-header:not(.border-0) {
    border-bottom: 1px solid var(--y-line) !important;
}

.card .card-title .card-label {
    font-size: 1.2rem !important;
}

/* Kart başlığındaki dekoratif ikon balonları */
.card-header .card-toolbar > .symbol.symbol-circle {
    display: none;
}

.card-footer {
    background: transparent;
    border-top: 1px solid var(--y-line) !important;
}

/* Sembol/ikon kutuları: daire yerine sakin kare */
.symbol .symbol-label {
    border-radius: 6px;
}

.symbol.symbol-circle .symbol-label {
    border-radius: 50%;
}

/* --------------------------------------------------------------------------
   Butonlar
   -------------------------------------------------------------------------- */
.btn {
    border-radius: 4px !important;
    font-weight: 500 !important;
    letter-spacing: 0.005em;
    box-shadow: none !important;
    transition: background-color .12s ease, border-color .12s ease, color .12s ease !important;
}

.btn:not(.btn-icon):not(.btn-sm):not(.btn-lg) {
    padding: 0.7rem 1.2rem;
}

.btn.btn-primary {
    background-color: var(--y-accent) !important;
    border: 1px solid var(--y-accent) !important;
    color: #fff !important;
}

.btn.btn-primary:hover:not(:disabled),
.btn.btn-primary:focus,
.btn.btn-primary:active {
    background-color: var(--y-accent-dark) !important;
    border-color: var(--y-accent-dark) !important;
}

.btn.btn-dark {
    background-color: var(--y-ink) !important;
    border-color: var(--y-ink) !important;
    color: var(--y-paper) !important;
}

.btn.btn-secondary,
.btn.btn-light,
.btn.btn-default {
    background-color: var(--y-surface) !important;
    border: 1px solid var(--y-line-strong) !important;
    color: var(--y-ink) !important;
}

.btn.btn-secondary:hover,
.btn.btn-light:hover,
.btn.btn-default:hover {
    background-color: var(--y-paper) !important;
    border-color: var(--y-ink-2) !important;
}

.btn.btn-light-primary {
    background-color: var(--y-accent-soft) !important;
    color: var(--y-accent) !important;
    border: 1px solid transparent !important;
}

.btn.btn-light-primary:hover {
    border-color: var(--y-accent) !important;
}

.btn.btn-light-primary i { color: inherit !important; }

.btn.btn-icon.btn-light {
    border-color: var(--y-line) !important;
}

/* --------------------------------------------------------------------------
   Formlar
   -------------------------------------------------------------------------- */
.form-label,
label.form-label,
.required {
    color: var(--y-ink-2);
    font-weight: 500 !important;
    font-size: 0.9rem;
}

.form-control,
.form-select {
    background-color: var(--y-surface);
    border: 1px solid var(--y-line-strong);
    border-radius: 4px !important;
    color: var(--y-ink);
    box-shadow: none !important;
    transition: border-color .12s ease !important;
}

.form-control.bg-transparent { background-color: var(--y-surface) !important; }

.form-control::placeholder { color: var(--bs-gray-500); }

.form-control:focus,
.form-select:focus {
    border-color: var(--y-ink) !important;
    background-color: var(--y-surface);
    box-shadow: 0 0 0 3px rgba(168, 64, 43, 0.12) !important;
}

.form-control.form-control-solid,
.form-select.form-select-solid {
    background-color: var(--y-paper);
    border-color: var(--y-line);
}

.form-control[readonly] {
    background-color: var(--y-paper);
}

textarea.form-control {
    line-height: 1.65;
}

.form-text { color: var(--y-muted); }

.form-check-input {
    border-color: var(--y-line-strong);
}

.form-check-input:checked,
.form-check.form-check-solid .form-check-input:checked {
    background-color: var(--y-accent) !important;
    border-color: var(--y-accent) !important;
}

/* Seçilebilir radio kartları (Yazı Türü vb.) */
.form-check.border.rounded {
    background-color: var(--y-surface);
    border-color: var(--y-line-strong) !important;
    border-radius: 6px !important;
}

.form-check.border.rounded:has(> .form-check-input:checked) {
    border-color: var(--y-accent) !important;
    background-color: var(--y-accent-soft) !important;
}

/* --------------------------------------------------------------------------
   Tablolar
   -------------------------------------------------------------------------- */
.table {
    --bs-table-bg: transparent;
    color: var(--y-ink);
}

.table > thead > tr > th,
.table thead th {
    color: var(--y-muted) !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--y-line-strong) !important;
}

.table.table-row-dashed tr,
.table.table-row-bordered tr,
.table tbody tr {
    border-bottom: 1px solid var(--y-line) !important;
    border-bottom-style: solid !important;
}

.table tbody tr:hover > * {
    background-color: rgba(29, 27, 23, 0.025);
}

.page-item.active .page-link,
.dataTables_wrapper .page-item.active .page-link {
    background-color: var(--y-ink) !important;
    border-color: var(--y-ink) !important;
    color: var(--y-paper) !important;
}

.page-link {
    border-radius: 4px !important;
    color: var(--y-ink-2);
}

/* --------------------------------------------------------------------------
   Rozetler, uyarılar, modallar
   -------------------------------------------------------------------------- */
.badge {
    border-radius: 3px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
}

.alert {
    border-radius: 6px;
    border: 1px solid var(--y-line);
    box-shadow: none;
}

.alert-danger {
    background-color: var(--bs-danger-light);
    border-color: #ecc2bd;
    color: var(--bs-danger);
}

.modal-content {
    background-color: var(--y-surface);
    border: 1px solid var(--y-line);
    border-radius: 8px !important;
    box-shadow: 0 20px 50px rgba(29, 27, 23, 0.18) !important;
}

.modal-header,
.modal-footer {
    border-color: var(--y-line) !important;
}

.modal-backdrop.show { opacity: 0.4; }

/* SweetAlert2 */
.swal2-popup {
    font-family: var(--y-sans) !important;
    background: var(--y-surface) !important;
    border-radius: 8px !important;
    border: 1px solid var(--y-line);
}

.swal2-title {
    font-family: var(--y-serif) !important;
    color: var(--y-ink) !important;
    font-weight: 600 !important;
}

.swal2-html-container { color: var(--y-ink-2) !important; }

.swal2-styled {
    border-radius: 4px !important;
    box-shadow: none !important;
    font-weight: 500 !important;
}

.swal2-styled.swal2-confirm {
    background-color: var(--y-accent) !important;
}

.swal2-styled.swal2-cancel,
.swal2-styled.swal2-deny {
    background-color: var(--y-surface) !important;
    color: var(--y-ink) !important;
    border: 1px solid var(--y-line-strong) !important;
}

/* Select2 */
.select2-container--bootstrap5 .select2-selection,
.select2-container--bootstrap-5 .select2-selection,
.select2-container .select2-selection--single {
    border-color: var(--y-line-strong) !important;
    border-radius: 4px !important;
    background-color: var(--y-surface) !important;
}

.select2-container--bootstrap5 .select2-results__option--highlighted,
.select2-container .select2-results__option--highlighted {
    background-color: var(--y-accent-soft) !important;
    color: var(--y-ink) !important;
}

/* --------------------------------------------------------------------------
   Ortak bileşenler (sayfalarda kullanılan)
   -------------------------------------------------------------------------- */

/* Admin / öğretmen karşılama şeridi */
.welcome-banner {
    background-color: var(--y-ink);
    color: var(--y-paper);
    border-radius: 6px;
    padding: 2rem 2.25rem;
}

.welcome-banner .text-white-75 { color: rgba(244, 241, 234, 0.7) !important; }

.welcome-banner h1 {
    font-family: var(--y-serif);
    color: var(--y-paper) !important;
    font-size: 1.85rem !important;
}

.welcome-banner .symbol-label {
    background-color: var(--y-paper) !important;
    color: var(--y-ink) !important;
    font-family: var(--y-serif);
    border-radius: 50%;
}

@media (max-width: 767.98px) {
    .welcome-banner { padding: 1.5rem; }
    .welcome-banner > .d-flex { flex-direction: column; align-items: flex-start !important; gap: 1rem; }
    .welcome-banner .text-end { text-align: left !important; }
}

/* Yüzer bildirim (my-texts, received-texts) */
.toast {
    border-radius: 6px !important;
    border: 1px solid var(--y-line) !important;
    background: var(--y-surface) !important;
    box-shadow: 0 8px 24px rgba(29, 27, 23, 0.1) !important;
    animation-duration: .18s !important;
}

/* Hareketi azalt tercihi */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}

/* --------------------------------------------------------------------------
   Anı yazısı kartları (Yazdığım / Bana Yazılan)
   -------------------------------------------------------------------------- */
body .memory-text-card {
    border: 1px solid var(--y-line) !important;
    border-radius: 6px !important;
    background: var(--y-surface);
    transition: border-color .12s ease !important;
}

body .memory-text-card:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: var(--y-line-strong) !important;
}

body .memory-text-card .symbol-label {
    background-color: var(--y-paper-2) !important;
    border-radius: 50% !important;
}

body .memory-text-card .symbol-label i {
    color: var(--y-ink-2) !important;
}

body .memory-text-card h4 {
    font-family: var(--y-serif);
    font-weight: 600 !important;
    font-size: 1.15rem;
}

body .memory-text-card .fs-6.fw-normal {
    font-family: var(--y-serif);
    font-size: 1.05rem !important;
    line-height: 1.7;
    color: var(--y-ink) !important;
}

body .memory-text-card .fs-8 {
    font-variant-numeric: tabular-nums;
}

body .sort-btn {
    width: 34px;
    height: 34px;
    border: 1px solid var(--y-line-strong);
    background: var(--y-surface);
    border-radius: 4px;
}

body .sort-btn i { color: var(--y-ink-2); }

body .sort-btn:hover:not(:disabled) {
    background: var(--y-paper);
    border-color: var(--y-ink-2);
    transform: none;
}

body .sort-btn:active:not(:disabled) { transform: none; }

body .sort-btn:disabled { background: transparent; opacity: .35; }

body .sort-btn.delete-btn:hover:not(:disabled) {
    background: var(--bs-danger-light);
    border-color: var(--bs-danger);
}

body .sort-btn.edit-btn:hover:not(:disabled) {
    background: var(--y-paper);
    border-color: var(--y-ink);
}

body .sort-btn.loading::after,
body .loading-spinner {
    border-color: var(--y-line);
    border-top-color: var(--y-accent);
}

body .toast.success { border-left: 3px solid var(--bs-success) !important; }
body .toast.error   { border-left: 3px solid var(--bs-danger) !important; }

body .loading-overlay { background: rgba(244, 241, 234, 0.6); }

@media (max-width: 768px) {
    body .sort-btn { width: 40px; height: 40px; }
}

/* Sekmeler */
.nav-line-tabs .nav-item .nav-link {
    color: var(--y-muted);
    font-weight: 500;
}

.nav-line-tabs .nav-item .nav-link i { color: inherit !important; }

.nav-line-tabs .nav-item .nav-link.active,
.nav-line-tabs .nav-item .nav-link:hover:not(.disabled) {
    color: var(--y-ink) !important;
    border-bottom-color: var(--y-accent) !important;
}

.nav-line-tabs {
    border-bottom-color: var(--y-line) !important;
}

/* Breadcrumb noktaları */
.breadcrumb .bullet { background-color: var(--y-line-strong) !important; }

/* Boş durum ikon balonları */
.text-center > .symbol.symbol-100px .symbol-label {
    background-color: var(--y-paper-2) !important;
}

.text-center > .symbol.symbol-100px .symbol-label i {
    color: var(--y-muted) !important;
}

/* Karakter paneli (my-texts) */
body .bg-light-purple,
body .bg-light-teal,
body .bg-light-orange { background-color: var(--y-paper) !important; }
body .text-purple,
body .text-teal,
body .text-orange { color: var(--y-ink) !important; }

/* --------------------------------------------------------------------------
   Dashboard bileşenleri
   -------------------------------------------------------------------------- */
.dash-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--y-line);
}

.dash-eyebrow {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--y-accent);
    margin-bottom: .4rem;
}

.dash-title {
    font-family: var(--y-serif);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.15;
    margin: 0;
    color: var(--y-ink);
}

.dash-sub {
    color: var(--y-muted);
    margin-top: .35rem;
}

/* Kapanış bandı */
.dash-countdown {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .9rem 1.1rem;
    margin-bottom: 1.5rem;
    background: var(--y-surface);
    border: 1px solid var(--y-line);
    border-left: 3px solid var(--y-accent);
    border-radius: 4px;
}

.dash-countdown strong {
    font-family: var(--y-serif);
    font-size: 1.6rem;
    line-height: 1;
    color: var(--y-ink);
    font-variant-numeric: tabular-nums;
}

.dash-countdown span { color: var(--y-ink-2); }
.dash-countdown.is-closed { border-left-color: var(--y-muted); }

/* İstatistik şeridi: tek kart, bölmeli */
.dash-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    background: var(--y-surface);
    border: 1px solid var(--y-line);
    border-radius: 6px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.dash-stat {
    padding: 1.25rem 1.4rem;
    border-right: 1px solid var(--y-line);
    margin-right: -1px;
    border-bottom: 1px solid var(--y-line);
    margin-bottom: -1px;
    min-width: 0;
}

.dash-stat-label {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--y-muted);
}

.dash-stat-value {
    font-family: var(--y-serif);
    font-size: 2.1rem;
    font-weight: 600;
    line-height: 1.1;
    margin-top: .45rem;
    color: var(--y-ink);
    font-variant-numeric: tabular-nums;
}

.dash-stat-value small {
    font-family: var(--y-sans);
    font-size: .9rem;
    font-weight: 500;
    color: var(--y-muted);
    margin-left: .2rem;
}

.dash-stat-note {
    font-size: .8rem;
    color: var(--y-muted);
    margin-top: .25rem;
}

.dash-stat-note a { color: var(--y-accent); font-weight: 500; }

/* Panel (kart) */
.dash-panel {
    background: var(--y-surface);
    border: 1px solid var(--y-line);
    border-radius: 6px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dash-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid var(--y-line);
}

.dash-panel-head h3 {
    font-family: var(--y-serif);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
}

.dash-panel-head a,
.dash-panel-head .dash-meta {
    font-size: .85rem;
    color: var(--y-muted);
    white-space: nowrap;
}

.dash-panel-head a { color: var(--y-accent); font-weight: 500; }
.dash-panel-head a:hover { color: var(--y-accent-dark); text-decoration: underline; }

.dash-panel-body { padding: 1.1rem 1.4rem; flex: 1; }
.dash-panel-body.p-0 { padding: 0; }

.dash-empty {
    color: var(--y-muted);
    padding: 1.5rem 0;
    text-align: center;
}

/* Satır listesi */
.dash-list { list-style: none; margin: 0; padding: 0; }

.dash-list > li {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .75rem 1.4rem;
    border-bottom: 1px solid var(--y-line);
}

.dash-list > li:last-child { border-bottom: 0; }

.dash-list .dash-grow { flex: 1; min-width: 0; }

.dash-list .dash-name {
    color: var(--y-ink);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-list .dash-small {
    font-size: .8rem;
    color: var(--y-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-list .dash-time {
    font-size: .8rem;
    color: var(--y-muted);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.dash-scroll { max-height: 420px; overflow-y: auto; }

/* Baş harf avatarı */
.dash-initial {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--y-paper-2);
    color: var(--y-ink-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--y-serif);
    font-weight: 600;
    font-size: .9rem;
}

/* Durum etiketi */
.dash-chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .75rem;
    font-weight: 600;
    padding: .2rem .55rem;
    border-radius: 3px;
    white-space: nowrap;
}

.dash-chip.is-done { background: var(--bs-success-light); color: var(--bs-success); }
.dash-chip.is-todo { background: var(--y-paper); color: var(--y-ink-2); border: 1px solid var(--y-line-strong); }
.dash-chip.is-warn { background: var(--bs-warning-light); color: var(--bs-warning-active); }
.dash-chip.is-muted { background: var(--y-paper); color: var(--y-muted); }

a.dash-chip.is-todo:hover { border-color: var(--y-accent); color: var(--y-accent); }

/* İlerleme çubuğu */
.dash-progress {
    height: 6px;
    background: var(--y-paper-2);
    border-radius: 3px;
    overflow: hidden;
}

.dash-progress > span {
    display: block;
    height: 100%;
    background: var(--y-ink);
    border-radius: 3px;
}

.dash-progress.is-accent > span { background: var(--y-accent); }

/* Yazı alıntısı */
.dash-quote {
    font-family: var(--y-serif);
    color: var(--y-ink);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: .2rem;
}

/* Tablo */
.dash-table { width: 100%; border-collapse: collapse; }

.dash-table th {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--y-muted);
    padding: .7rem 1rem;
    border-bottom: 1px solid var(--y-line-strong);
    text-align: left;
    white-space: nowrap;
    position: sticky;
    top: 0;
    background: var(--y-surface);
}

.dash-table td {
    padding: .7rem 1rem;
    border-bottom: 1px solid var(--y-line);
    vertical-align: middle;
    color: var(--y-ink);
}

.dash-table tr:last-child td { border-bottom: 0; }
.dash-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.dash-table th.num { text-align: right; }
.dash-table th:first-child, .dash-table td:first-child { padding-left: 1.4rem; }
.dash-table th:last-child, .dash-table td:last-child { padding-right: 1.4rem; }
.dash-table tbody tr:hover td { background: rgba(29, 27, 23, .025); }
.dash-table .is-zero { color: var(--y-muted); }

.dash-search {
    max-width: 220px;
    padding: .4rem .7rem !important;
    font-size: .85rem;
}

/* Çubuk grafik (tek seri) */
.dash-bars {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 2px;
    align-items: end;
    height: 180px;
    padding-top: 1.5rem;
    border-bottom: 1px solid var(--y-line-strong);
}

.dash-bar {
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    cursor: default;
}

.dash-bar > i {
    display: block;
    width: 70%;
    max-width: 28px;
    min-height: 2px;
    background: var(--y-ink);
    border-radius: 4px 4px 0 0;
}

.dash-bar.is-today > i { background: var(--y-accent); }
.dash-bar.is-zero > i { background: var(--y-line-strong); }

.dash-bar:hover > i { opacity: .8; }

.dash-bar .dash-tip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--y-ink);
    color: var(--y-paper);
    font-size: .75rem;
    padding: .3rem .5rem;
    border-radius: 3px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity .1s ease;
    z-index: 2;
}

.dash-bar:hover .dash-tip,
.dash-bar:focus .dash-tip { opacity: 1; }

.dash-bar-label {
    position: absolute;
    top: -1.35rem;
    font-size: .75rem;
    font-weight: 600;
    color: var(--y-ink);
    font-variant-numeric: tabular-nums;
}

.dash-axis {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 2px;
    margin-top: .4rem;
}

.dash-axis span {
    font-size: .68rem;
    color: var(--y-muted);
    text-align: center;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 767.98px) {
    .dash-axis span:nth-child(even) { visibility: hidden; }
    .dash-title { font-size: 1.6rem; }
}

/* Hızlı bağlantılar */
.dash-links { list-style: none; margin: 0; padding: 0; }

.dash-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .8rem 1.4rem;
    border-bottom: 1px solid var(--y-line);
    color: var(--y-ink);
    font-weight: 500;
}

.dash-links li:last-child a { border-bottom: 0; }
.dash-links a::after { content: "→"; color: var(--y-muted); }
.dash-links a:hover { background: var(--y-paper); color: var(--y-accent); }
.dash-links a:hover::after { color: var(--y-accent); }

/* Paneli dolduran kaydırılabilir alan (yan sütunla aynı yükseklik) */
.dash-panel > .dash-fill {
    flex: 1 1 0;
    min-height: 320px;
    max-height: none;
}

@media (max-width: 1199.98px) {
    .dash-panel > .dash-fill { flex: none; max-height: 480px; }
}
