:root {
    --zt-bg: #eef3ef;
    --zt-bg-deep: #e2ebe4;
    --zt-ink: #15241e;
    --zt-muted: #5a6b63;
    --zt-primary: #184a3c;
    --zt-primary-2: #2a6a54;
    --zt-primary-soft: #d7ebe2;
    --zt-accent: #c4a574;
    --zt-panel: rgba(255, 255, 255, 0.78);
    --zt-panel-solid: #fbfcf9;
    --zt-border: rgba(24, 74, 60, 0.12);
    --zt-danger: #a63d3d;
    --zt-warning: #9a6b1f;
    --zt-radius: 16px;
    --zt-radius-sm: 10px;
    --zt-shadow: 0 1px 0 rgba(21, 36, 30, 0.04), 0 12px 28px -18px rgba(21, 36, 30, 0.35);
    --zt-font: "Figtree", "Segoe UI", sans-serif;
    --zt-display: "Fraunces", Georgia, serif;
    --bs-body-font-family: var(--zt-font);
    --bs-body-color: var(--zt-ink);
    --bs-primary: var(--zt-primary);
    --bs-link-color: var(--zt-primary);
    --bs-link-hover-color: var(--zt-primary-2);
    --bs-border-radius: var(--zt-radius-sm);
}

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

body.zt-body {
    margin: 0;
    min-height: 100vh;
    color: var(--zt-ink);
    font-family: var(--zt-font);
    font-weight: 500;
    letter-spacing: -0.01em;
    background:
        radial-gradient(900px 420px at 8% -8%, #cfe5d8 0%, transparent 58%),
        radial-gradient(760px 380px at 96% 4%, #efe6d4 0%, transparent 52%),
        linear-gradient(180deg, #f5f8f5 0%, var(--zt-bg) 42%, var(--zt-bg-deep) 100%);
    background-attachment: fixed;
}

body.zt-body-auth {
    display: flex;
    align-items: center;
}

h1, h2, h3, .h1, .h2, .h3, .h4, .zt-brand-text {
    font-family: var(--zt-display);
    letter-spacing: -0.02em;
    font-weight: 650;
}

.zt-main {
    padding-top: 1.25rem;
}

.zt-page {
    animation: zt-rise 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes zt-rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Topbar / Nav ---- */
.zt-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 0.75rem 0 0;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.zt-nav {
    background: rgba(24, 74, 60, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    margin: 0 auto;
    max-width: calc(100% - 1.5rem);
    padding: 0.35rem 0.75rem;
    box-shadow: 0 10px 30px -18px rgba(12, 40, 30, 0.65);
}

.zt-nav .container {
    max-width: 1140px;
}

.zt-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: #fff !important;
    text-decoration: none;
    padding: 0.25rem 0;
}

.zt-brand-mark {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 8px;
    background:
        linear-gradient(145deg, #f0e2c4 0%, #c4a574 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    position: relative;
}

.zt-brand-mark::after {
    content: '';
    position: absolute;
    inset: 28% 28%;
    border-radius: 3px;
    background: var(--zt-primary);
    opacity: 0.85;
}

.zt-brand-text {
    font-size: 1.15rem;
    color: #fff;
    line-height: 1;
}

.zt-nav-links .nav-link {
    color: rgba(255, 255, 255, 0.72) !important;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.55rem 0.8rem !important;
    border-radius: 10px;
    transition: color 160ms ease, background 160ms ease;
}

.zt-nav-links .nav-link:hover,
.zt-nav-links .nav-link.is-active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.12);
}

.zt-toggler {
    border: 0;
    width: 2.4rem;
    height: 2.4rem;
    padding: 0.55rem;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.zt-toggler span {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
}

.zt-btn-ghost {
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: transparent;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4rem 0.85rem;
    transition: background 160ms ease, border-color 160ms ease;
}

.zt-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff !important;
}

.zt-dropdown {
    border: 1px solid var(--zt-border);
    border-radius: 12px;
    padding: 0.4rem;
    box-shadow: var(--zt-shadow);
    background: #fff;
}

.zt-dropdown .dropdown-item {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.55rem 0.75rem;
}

.zt-dropdown .dropdown-item:hover {
    background: var(--zt-primary-soft);
    color: var(--zt-primary);
}

/* ---- Buttons ---- */
.btn {
    font-weight: 600;
    letter-spacing: -0.01em;
    border-radius: 10px;
    transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    --bs-btn-bg: var(--zt-primary);
    --bs-btn-border-color: var(--zt-primary);
    --bs-btn-hover-bg: var(--zt-primary-2);
    --bs-btn-hover-border-color: var(--zt-primary-2);
    --bs-btn-active-bg: #12382d;
    --bs-btn-active-border-color: #12382d;
    box-shadow: 0 8px 18px -12px rgba(24, 74, 60, 0.8);
}

.btn-outline-primary {
    --bs-btn-color: var(--zt-primary);
    --bs-btn-border-color: rgba(24, 74, 60, 0.35);
    --bs-btn-hover-bg: var(--zt-primary);
    --bs-btn-hover-border-color: var(--zt-primary);
    --bs-btn-hover-color: #fff;
    background: rgba(255, 255, 255, 0.55);
}

.btn-outline-secondary {
    --bs-btn-color: var(--zt-muted);
    --bs-btn-border-color: rgba(24, 74, 60, 0.18);
    --bs-btn-hover-bg: #edf2ee;
    --bs-btn-hover-border-color: rgba(24, 74, 60, 0.28);
    --bs-btn-hover-color: var(--zt-ink);
    background: rgba(255, 255, 255, 0.55);
}

.btn-success {
    --bs-btn-bg: #2f6b55;
    --bs-btn-border-color: #2f6b55;
}

.btn-outline-danger {
    --bs-btn-color: var(--zt-danger);
    --bs-btn-border-color: rgba(166, 61, 61, 0.35);
}

.btn-group .btn {
    border-radius: 10px !important;
}

/* ---- Forms ---- */
.form-control,
.form-select {
    border-color: rgba(24, 74, 60, 0.16);
    background: rgba(255, 255, 255, 0.88);
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    box-shadow: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(42, 106, 84, 0.55);
    box-shadow: 0 0 0 4px rgba(42, 106, 84, 0.12);
}

.form-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--zt-ink);
    margin-bottom: 0.35rem;
}

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

/* ---- Panels / Stats ---- */
.zt-panel {
    background: var(--zt-panel);
    border: 1px solid var(--zt-border);
    border-radius: var(--zt-radius);
    padding: 1.35rem;
    box-shadow: var(--zt-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.zt-panel > .h5,
.zt-panel h2.h5 {
    font-family: var(--zt-display);
}

.zt-stat {
    background: var(--zt-panel);
    border: 1px solid var(--zt-border);
    border-radius: var(--zt-radius);
    padding: 1.1rem 1.15rem;
    box-shadow: var(--zt-shadow);
    backdrop-filter: blur(10px);
    transition: transform 180ms ease, border-color 180ms ease;
}

.zt-stat:hover {
    transform: translateY(-2px);
    border-color: rgba(24, 74, 60, 0.22);
}

.zt-stat-label {
    color: var(--zt-muted);
    font-size: 0.78rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.zt-stat-value {
    font-family: var(--zt-display);
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--zt-primary);
    margin-top: 0.2rem;
}

.zt-panel-alert {
    border-color: rgba(166, 61, 61, 0.28);
    background: linear-gradient(180deg, #fff7f6 0%, rgba(255, 255, 255, 0.82) 100%);
}

.zt-code {
    background: #15241e;
    color: #dff0e7;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    white-space: pre-wrap;
    word-break: break-all;
    font-size: 0.8rem;
}

/* ---- Tables / lists ---- */
.table {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: rgba(24, 74, 60, 0.04);
}

.table > :not(caption) > * > * {
    background: transparent;
    border-bottom-color: rgba(24, 74, 60, 0.08);
    padding: 0.9rem 0.85rem;
    vertical-align: middle;
}

.table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--zt-muted);
    font-weight: 700;
    border-bottom-width: 1px;
}

.list-group-item {
    background: transparent;
    border-color: rgba(24, 74, 60, 0.08);
}

.badge {
    font-weight: 650;
    border-radius: 7px;
    padding: 0.35em 0.55em;
}

.text-bg-light {
    background: #edf2ee !important;
    color: var(--zt-ink) !important;
}

.text-bg-warning {
    background: #f3e4c4 !important;
    color: #6d4e12 !important;
}

.text-bg-success {
    background: #d7ebe2 !important;
    color: #184a3c !important;
}

.text-bg-secondary {
    background: #e7ebe8 !important;
    color: #4a5751 !important;
}

.text-bg-danger {
    background: #f5d9d9 !important;
    color: #7a2c2c !important;
}

.zt-row-overdue td {
    background: rgba(166, 61, 61, 0.06) !important;
}

a {
    color: var(--zt-primary);
    text-underline-offset: 2px;
}

.zt-alert {
    border: 1px solid transparent;
    border-radius: 12px;
    box-shadow: var(--zt-shadow);
}

.alert-danger {
    background: #fff1f0;
    border-color: rgba(166, 61, 61, 0.2);
    color: #7a2c2c;
}

.alert-warning {
    background: #fff8ea;
    border-color: rgba(154, 107, 31, 0.22);
    color: #6d4e12;
}

.alert-success {
    background: #eef8f2;
    border-color: rgba(42, 106, 84, 0.2);
    color: #184a3c;
}

/* ---- Page headers ---- */
.zt-page h1.h3 {
    font-size: clamp(1.55rem, 2vw, 1.85rem);
    margin-bottom: 0.2rem;
}

.zt-page .text-muted {
    color: var(--zt-muted) !important;
}

/* ---- Dashboard ---- */
.zt-dash-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1.35rem 1.5rem;
    border-radius: calc(var(--zt-radius) + 4px);
    border: 1px solid rgba(24, 74, 60, 0.14);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.72) 0%, rgba(215, 235, 226, 0.55) 48%, rgba(239, 230, 212, 0.42) 100%),
        rgba(251, 252, 249, 0.8);
    box-shadow: var(--zt-shadow);
    position: relative;
    overflow: hidden;
    animation: zt-rise 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.zt-dash-hero::before {
    content: '';
    position: absolute;
    right: -4rem;
    top: -5rem;
    width: 14rem;
    height: 14rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196, 165, 116, 0.28) 0%, transparent 68%);
    pointer-events: none;
}

.zt-dash-hero-copy {
    position: relative;
    max-width: 36rem;
}

.zt-dash-kicker {
    margin: 0 0 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--zt-primary-2);
}

.zt-dash-title {
    font-family: var(--zt-display);
    font-size: clamp(1.7rem, 2.6vw, 2.15rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--zt-ink);
    margin: 0 0 0.45rem;
}

.zt-dash-lead {
    color: var(--zt-muted);
    font-size: 0.98rem;
    max-width: 32rem;
}

.zt-dash-actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.zt-dash-stats .zt-stat {
    animation: zt-rise 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.zt-dash-stats .col-6:nth-child(1) .zt-stat { animation-delay: 40ms; }
.zt-dash-stats .col-6:nth-child(2) .zt-stat { animation-delay: 90ms; }
.zt-dash-stats .col-6:nth-child(3) .zt-stat { animation-delay: 140ms; }
.zt-dash-stats .col-6:nth-child(4) .zt-stat { animation-delay: 190ms; }

.zt-stat-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.zt-stat-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--zt-primary);
    opacity: 0.85;
}

.zt-stat-pending::before { background: var(--zt-primary-2); }
.zt-stat-danger::before { background: var(--zt-danger); }
.zt-stat-done::before { background: #5f8f78; }
.zt-stat-people::before { background: var(--zt-accent); }

.zt-stat-hint {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: var(--zt-muted);
    font-weight: 600;
}

.zt-stat-link:hover {
    color: inherit;
}

.zt-dash-panel {
    animation: zt-rise 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.zt-dash-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(24, 74, 60, 0.08);
}

.zt-dash-panel-sub {
    margin-top: 0.2rem;
    font-size: 0.82rem;
    color: var(--zt-muted);
}

.zt-dash-more {
    flex-shrink: 0;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--zt-primary);
    padding: 0.25rem 0.55rem;
    border-radius: 8px;
    transition: background 140ms ease;
}

.zt-dash-more:hover {
    background: var(--zt-primary-soft);
}

.zt-dash-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.zt-dash-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 0.35rem;
    border-bottom: 1px solid rgba(24, 74, 60, 0.07);
    border-radius: 10px;
    transition: background 140ms ease;
}

.zt-dash-item:last-child {
    border-bottom: 0;
    padding-bottom: 0.15rem;
}

.zt-dash-item:first-child {
    padding-top: 0.15rem;
}

.zt-dash-item:hover {
    background: rgba(24, 74, 60, 0.035);
}

.zt-dash-item-block {
    flex-direction: column;
    align-items: stretch;
}

.zt-dash-item-row {
    display: flex;
    justify-content: space-between;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.zt-dash-item-main {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    min-width: 0;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

a.zt-dash-item-main:hover .zt-dash-item-title,
a.zt-dash-item-title:hover {
    color: var(--zt-primary-2);
}

.zt-dash-item-title {
    font-weight: 650;
    color: var(--zt-ink);
    text-decoration: none;
    line-height: 1.3;
}

.zt-dash-item-meta {
    font-size: 0.82rem;
    color: var(--zt-muted);
    line-height: 1.35;
}

.zt-dash-item-summary {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zt-dash-item-time {
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 650;
    color: var(--zt-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.zt-dash-item-aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    flex-shrink: 0;
}

.zt-dash-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.65rem;
}

.zt-dash-empty {
    padding: 1.5rem 0.5rem 0.75rem;
    text-align: center;
    color: var(--zt-muted);
}

@media (max-width: 575px) {
    .zt-dash-hero {
        padding: 1.15rem 1.1rem;
    }

    .zt-dash-actions {
        width: 100%;
    }

    .zt-dash-actions .btn {
        flex: 1 1 calc(50% - 0.25rem);
    }
}

/* ---- Etiketler ---- */
.zt-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 650;
    line-height: 1.4;
    padding: 0.15rem 0.5rem;
    margin-right: 0.25rem;
    border: 1px solid transparent;
    border-radius: 7px;
    white-space: nowrap;
}

.zt-tag-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.zt-tag-choice {
    --zt-tag-color: var(--zt-primary);
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 650;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--zt-border);
    border-radius: 9px;
    cursor: pointer;
    color: var(--zt-muted);
    background: rgba(255, 255, 255, 0.8);
    transition: transform 140ms ease, background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.zt-tag-choice:hover {
    border-color: var(--zt-tag-color);
    color: var(--zt-tag-color);
    transform: translateY(-1px);
}

.btn-check:checked + .zt-tag-choice {
    background: var(--zt-tag-color);
    border-color: var(--zt-tag-color);
    color: #fff;
}

.btn-check:focus-visible + .zt-tag-choice {
    outline: 2px solid var(--zt-primary);
    outline-offset: 2px;
}

.zt-tag-filter {
    --zt-tag-color: var(--zt-muted);
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 650;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--zt-border);
    border-radius: 9px;
    text-decoration: none;
    color: var(--zt-muted);
    background: rgba(255, 255, 255, 0.75);
    transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.zt-tag-filter:hover {
    border-color: var(--zt-tag-color);
    color: var(--zt-tag-color);
}

.zt-tag-filter.is-active {
    background: var(--zt-tag-color);
    border-color: var(--zt-tag-color);
    color: #fff;
}

/* ---- Timeline ---- */
.zt-timeline {
    position: relative;
    padding-left: 1.15rem;
    border-left: 2px solid rgba(24, 74, 60, 0.15);
}

.zt-timeline-item {
    position: relative;
    padding-bottom: 1.35rem;
}

.zt-timeline-item:last-child {
    padding-bottom: 0;
}

.zt-timeline-item::before {
    content: '';
    position: absolute;
    left: -1.48rem;
    top: 0.4rem;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: var(--zt-primary);
    box-shadow: 0 0 0 4px rgba(24, 74, 60, 0.12);
}

.zt-timeline-date {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--zt-primary);
    margin-bottom: 0.3rem;
}

.zt-timeline-body {
    font-size: 0.92rem;
}

.zt-wa-link {
    font-size: 0.65rem;
    font-weight: 700;
    text-decoration: none;
    color: #0f7a6c;
    border: 1px solid rgba(15, 122, 108, 0.28);
    border-radius: 6px;
    padding: 0.1rem 0.3rem;
    margin-left: 0.3rem;
    background: rgba(15, 122, 108, 0.06);
}

/* ---- Rapor ---- */
.zt-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.45rem;
    height: 190px;
}

.zt-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    min-width: 0;
}

.zt-bar {
    width: 100%;
    max-width: 36px;
    background: linear-gradient(180deg, var(--zt-primary-2), var(--zt-primary));
    border-radius: 6px 6px 3px 3px;
    min-height: 4px;
    transition: filter 160ms ease;
}

.zt-bar-col:hover .zt-bar {
    filter: brightness(1.08);
}

.zt-bar-value {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--zt-primary);
    margin-bottom: 0.25rem;
}

.zt-bar-label {
    font-size: 0.68rem;
    color: var(--zt-muted);
    margin-top: 0.3rem;
    white-space: nowrap;
}

.zt-legend {
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 4px;
    vertical-align: -1px;
    margin-right: 0.2rem;
}

.zt-legend-bekliyor {
    background: #d7ebe2;
    border: 1px solid rgba(24, 74, 60, 0.2);
}

.zt-legend-yapildi {
    background: #e5eae7;
    border: 1px solid rgba(90, 107, 99, 0.25);
}

.zt-legend-visit {
    background: #efe1cd;
    border: 1px solid rgba(138, 106, 63, 0.25);
}

/* ---- Takvim ---- */
.zt-cal-time {
    min-width: 3.1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--zt-primary);
}

.zt-cal-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.55rem;
}

.zt-cal-week-col {
    background: var(--zt-panel);
    border: 1px solid var(--zt-border);
    border-radius: 14px;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--zt-shadow);
    overflow: hidden;
}

.zt-cal-week-col.is-today {
    border-color: rgba(24, 74, 60, 0.45);
    background: linear-gradient(180deg, #eaf5ef 0%, rgba(255, 255, 255, 0.85) 40%);
}

.zt-cal-week-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--zt-border);
    color: var(--zt-ink);
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.45);
}

.zt-cal-week-body {
    padding: 0.45rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}

.zt-cal-month {
    background: var(--zt-panel);
    border: 1px solid var(--zt-border);
    border-radius: var(--zt-radius);
    overflow: hidden;
    box-shadow: var(--zt-shadow);
}

.zt-cal-month-head,
.zt-cal-month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.zt-cal-month-head {
    background: rgba(24, 74, 60, 0.05);
    border-bottom: 1px solid var(--zt-border);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--zt-muted);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.zt-cal-month-head > div {
    padding: 0.7rem 0.25rem;
}

.zt-cal-cell {
    min-height: 102px;
    border-right: 1px solid var(--zt-border);
    border-bottom: 1px solid var(--zt-border);
    padding: 0.4rem;
    transition: background 140ms ease;
}

.zt-cal-cell:hover {
    background: rgba(24, 74, 60, 0.03);
}

.zt-cal-cell:nth-child(7n) {
    border-right: none;
}

.zt-cal-cell.is-out {
    background: rgba(21, 36, 30, 0.03);
}

.zt-cal-cell.is-out .zt-cal-cell-num {
    color: var(--zt-muted);
    opacity: 0.5;
}

.zt-cal-cell.is-today {
    background: #eaf5ef;
}

.zt-cal-cell-num {
    display: inline-flex;
    width: 1.7rem;
    height: 1.7rem;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--zt-ink);
}

.zt-cal-cell.is-today .zt-cal-cell-num {
    background: var(--zt-primary);
    color: #fff;
}

.zt-cal-cell-events {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    margin-top: 0.3rem;
}

.zt-cal-chip {
    display: block;
    font-size: 0.72rem;
    line-height: 1.25;
    padding: 0.25rem 0.4rem;
    border-radius: 7px;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #d7ebe2;
    color: #143d31;
    transition: transform 120ms ease, filter 120ms ease;
}

.zt-cal-chip:hover {
    transform: translateY(-1px);
    filter: brightness(0.98);
}

.zt-cal-chip-yapildi {
    background: #e5eae7;
    color: #5c6b63;
    text-decoration: line-through;
}

.zt-cal-chip-bekliyor {
    background: #d7ebe2;
    color: #143d31;
}

.zt-cal-chip-visit {
    background: #efe1cd;
    color: #6b4f28;
}

.zt-cal-chip-time {
    font-weight: 700;
    margin-right: 0.2rem;
}

.zt-cal-chip.is-dragging {
    opacity: 0.45;
}

.zt-drop-zone.is-drop-target {
    outline: 2px dashed var(--zt-accent, #2f6f5e);
    outline-offset: 2px;
    background: rgba(47, 111, 94, 0.06);
    border-radius: 8px;
}

.zt-cal-more {
    font-size: 0.7rem;
    color: var(--zt-muted);
    text-decoration: none;
    font-weight: 600;
}

/* ---- Auth / login ---- */
.zt-body-auth .zt-main {
    width: 100%;
}

.zt-auth-card {
    max-width: 420px;
    margin: 0 auto;
}

.zt-auth-card .zt-panel {
    padding: 1.75rem;
}

.zt-auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--zt-primary);
    margin-bottom: 0.75rem;
}

.zt-auth-kicker::before {
    content: '';
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 3px;
    background: var(--zt-accent);
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .zt-topbar {
        padding-top: 0.5rem;
    }

    .zt-nav {
        border-radius: 14px;
        max-width: calc(100% - 1rem);
    }

    .zt-nav-links {
        padding: 0.75rem 0 0.35rem;
        gap: 0.15rem;
    }

    .zt-nav-links .nav-link {
        margin-bottom: 0.15rem;
    }
}

@media (max-width: 900px) {
    .zt-cal-week {
        grid-template-columns: 1fr;
    }

    .zt-cal-week-col {
        min-height: 0;
    }

    .zt-cal-cell {
        min-height: 76px;
    }

    .zt-cal-chip {
        font-size: 0.65rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .zt-page,
    .zt-stat,
    .zt-dash-hero,
    .zt-dash-panel,
    .zt-dash-stats .zt-stat,
    .btn,
    .zt-cal-chip,
    .zt-tag-choice {
        animation: none !important;
        transition: none !important;
    }
}
