﻿/* =========================================================
   BetaPDKS Mobil — tasarım tokenleri + bileşenler
   wwwroot/css/pdks-mobil.css olarak kaydedin ve _Layout'a
   site.css'ten SONRA ekleyin.
   ========================================================= */

:root {
    --ink: #070a12;
    --surface: #10141f;
    --surface-2: #161b2b;
    --line: rgba(var(--ov),.09);
    --line-strong: rgba(var(--ov),.16);
    --paper: #f4f6fb;
    --paper-dim: #c9cedd;
    --muted: #9aa1b8;
    --brass: #f57c0a;
    --brass-strong: #ffb02e;
    --brass-ink: #1c0b02;
    --rust: #e14b66;
    --rust-strong: #ff6b86;
    --radius-lg: 26px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --shadow-1: 0 20px 40px -24px rgba(0,0,0,.75);
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html, body {
    min-height: 100%;
    background: var(--ink);
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--paper);
    -webkit-font-smoothing: antialiased;
    overscroll-behavior-y: none;
}

button, input {
    font-family: inherit;
}

/* ---------- App shell ---------- */
.app-screen {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: calc(env(safe-area-inset-top) + 22px) 20px calc(env(safe-area-inset-bottom) + 28px);
    max-width: 460px;
    margin: 0 auto;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.brandmark {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: .01em;
    color: var(--paper-dim);
}

.clock {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 14px;
    color: var(--muted);
}

/* ---------- Hero / greeting ---------- */
.hero-date {
    font-size: 14px;
    color: var(--muted);
    margin: 0 0 6px;
}

.hero-greeting h1 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1.08;
    margin: 0 0 8px;
    color: var(--paper);
}

.hero-sub {
    font-size: 15px;
    color: var(--muted);
    margin: 0 0 30px;
}

/* ---------- Badge card ---------- */
.badge-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(165deg, var(--surface) 0%, var(--surface-2) 100%);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    padding: 26px 22px;
    box-shadow: var(--shadow-1);
}

    .badge-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--brass), transparent 75%);
    }

    .badge-card.is-shaking {
        animation: shake .32s ease;
    }

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-6px);
    }

    75% {
        transform: translateX(6px);
    }
}

/* ---------- Form fields ---------- */
.field {
    margin-bottom: 18px;
}

    .field:last-of-type {
        margin-bottom: 0;
    }

    .field label {
        display: block;
        font-size: 13px;
        color: var(--muted);
        margin-bottom: 8px;
    }

    .field input {
        width: 100%;
        background: rgba(var(--shade-rgb),.20);
        border: 1px solid var(--line-strong);
        border-radius: var(--radius-sm);
        padding: 14px 16px;
        color: var(--paper);
        font-family: var(--font-mono);
        font-size: 16px;
        letter-spacing: .02em;
        transition: border-color .15s ease, background .15s ease;
    }

        .field input::placeholder {
            color: rgba(var(--ov),.28);
        }

        .field input:focus {
            outline: none;
            border-color: var(--brass);
            background: rgba(var(--shade-rgb),.30);
        }

/* ---------- Buttons ---------- */
.btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    border: none;
    border-radius: var(--radius-sm);
    padding: 16px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.btn-primary {
    margin-top: 22px;
    background: linear-gradient(180deg, var(--brass-strong), var(--brass));
    color: var(--brass-ink);
    box-shadow: 0 12px 26px -12px rgba(245,124,10,.6);
}

    .btn-primary:active {
        transform: scale(.98);
    }

    .btn-primary[disabled] {
        opacity: .65;
        pointer-events: none;
    }

.btn-ghost {
    background: transparent;
    color: var(--muted);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    width: auto;
    padding: 8px 4px;
}

    .btn-ghost:active {
        color: var(--paper-dim);
    }

.spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(28,11,2,.35);
    border-top-color: var(--brass-ink);
    animation: spin .7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- Error text ---------- */
.error-text {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 16px 0 0;
    font-size: 14px;
    color: var(--rust-strong);
}

    .error-text .dot {
        flex: none;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: rgba(225,75,102,.18);
        color: var(--rust-strong);
        font-family: var(--font-mono);
        font-size: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 1px;
    }

.fine-print {
    margin-top: 22px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
    text-align: center;
}

/* ---------- Scan screen ---------- */
.scan-screen {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: calc(env(safe-area-inset-top) + 16px) 16px calc(env(safe-area-inset-bottom) + 20px);
    max-width: 460px;
    margin: 0 auto;
}

.viewfinder-wrap {
    position: relative;
    flex: 1;
    min-height: 320px;
    margin-top: 6px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
}

.viewfinder {
    width: 100%;
    height: 100%;
}

    .viewfinder video, .viewfinder canvas {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }

.viewfinder-frame {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.corner {
    position: absolute;
    width: 36px;
    height: 36px;
    border: 3px solid var(--brass);
    opacity: .9;
    animation: breathe 2.4s ease-in-out infinite;
}

    .corner.tl {
        top: calc(50% - 130px);
        left: calc(50% - 130px);
        border-right: none;
        border-bottom: none;
        border-top-left-radius: 14px;
    }

    .corner.tr {
        top: calc(50% - 130px);
        right: calc(50% - 130px);
        border-left: none;
        border-bottom: none;
        border-top-right-radius: 14px;
    }

    .corner.bl {
        bottom: calc(50% - 130px);
        left: calc(50% - 130px);
        border-right: none;
        border-top: none;
        border-bottom-left-radius: 14px;
    }

    .corner.br {
        bottom: calc(50% - 130px);
        right: calc(50% - 130px);
        border-left: none;
        border-top: none;
        border-bottom-right-radius: 14px;
    }

@keyframes breathe {
    0%, 100% {
        opacity: .55;
    }

    50% {
        opacity: 1;
    }
}

.viewfinder-hint {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    text-align: center;
    margin: 0;
    font-size: 13px;
    color: var(--paper-dim);
    text-shadow: 0 1px 6px rgba(0,0,0,.6);
}

.result-sheet {
    margin-top: 16px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    transition: border-color .2s ease;
}

    .result-sheet.is-success {
        border-color: var(--brass);
    }

    .result-sheet.is-exit {
        border-color: var(--rust);
    }

    .result-sheet.is-error {
        border-color: var(--rust-strong);
    }

.result-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--ov),.06);
}

    .result-icon svg {
        width: 22px;
        height: 22px;
    }

.result-text {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 17px;
    margin: 0 0 4px;
}

.result-time {
    font-family: var(--font-mono);
    color: var(--muted);
    font-size: 13px;
    margin: 0 0 12px;
}

.result-bar {
    height: 3px;
    border-radius: 3px;
    background: rgba(var(--ov),.10);
    overflow: hidden;
}

    .result-bar span {
        display: block;
        height: 100%;
        width: 0%;
        background: var(--brass);
        transition: width 3s linear;
    }

.result-sheet.is-exit .result-bar span {
    background: var(--rust);
}

/* ---------- Profile / ID card ---------- */
.id-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.avatar {
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 19px;
    color: var(--brass-ink);
}

.id-card-name h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 20px;
    margin: 0 0 2px;
    color: var(--paper);
}

.id-card-sicil {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--muted);
}

.id-card-rows {
    border-top: 1px solid var(--line);
}

.id-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

    .id-row:last-child {
        border-bottom: none;
    }

    .id-row span {
        color: var(--muted);
    }

    .id-row strong {
        font-family: var(--font-mono);
        font-weight: 500;
        color: var(--paper);
        text-align: right;
    }

.status-card {
    margin-top: 16px;
    background: rgba(var(--ov),.03);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 16px 18px;
}

.status-label {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--muted);
}

.status-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    flex: none;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--brass);
}

.status-row.is-exit .status-dot {
    background: var(--rust);
}

.status-main {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    margin: 0;
}

.status-sub {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--muted);
}

.status-empty {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

.scan-cta {
    margin-top: 20px;
}

.profile-logout {
    margin-top: 24px;
    border: 1px solid var(--line-strong);
}

/* ---------- Home / dashboard ---------- */
.mini-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
}

    .mini-card .avatar {
        width: 46px;
        height: 46px;
        border-radius: 13px;
        font-size: 16px;
    }

.mini-card-info {
    min-width: 0;
}

    .mini-card-info h2 {
        font-family: var(--font-display);
        font-weight: 600;
        font-size: 16px;
        margin: 0;
        color: var(--paper);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mini-card-info p {
        margin: 2px 0 0;
        font-size: 12px;
        color: var(--muted);
        font-family: var(--font-mono);
    }

.status-chip {
    flex: none;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(245,124,10,.14);
    color: var(--accent-text);
    font-family: var(--font-mono);
    font-size: 12px;
}

    .status-chip .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--brass-strong);
    }

    .status-chip.is-exit {
        background: rgba(225,75,102,.14);
        color: var(--rust-strong);
    }

        .status-chip.is-exit .dot {
            background: var(--rust-strong);
        }

    .status-chip.is-unknown {
        background: rgba(var(--ov),.06);
        color: var(--muted);
    }

        .status-chip.is-unknown .dot {
            background: var(--muted);
        }

.action-row {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 26px;
    margin: 36px 0 32px;
}

.action-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    background: transparent;
    border: none;
    color: var(--muted);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 12.5px;
    padding: 0;
}

    .action-side .icon-circle {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: rgba(var(--ov),.05);
        border: 1px solid var(--line-strong);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background .12s ease, transform .12s ease;
    }

    .action-side svg {
        width: 20px;
        height: 20px;
    }

    .action-side:active .icon-circle {
        background: rgba(var(--ov),.12);
        transform: scale(.95);
    }

.action-main {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: radial-gradient(circle at 32% 26%, var(--brass-strong), var(--brass) 68%);
    color: var(--brass-ink);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 18px 40px -14px rgba(245,124,10,.65), 0 0 0 8px rgba(245,124,10,.08);
    animation: ringPulse 3.2s ease-in-out infinite;
    transition: transform .12s ease;
}

    .action-main svg {
        width: 32px;
        height: 32px;
    }

    .action-main:active {
        transform: scale(.96);
    }

@keyframes ringPulse {
    0%, 100% {
        box-shadow: 0 18px 40px -14px rgba(245,124,10,.65), 0 0 0 8px rgba(245,124,10,.08);
    }

    50% {
        box-shadow: 0 18px 40px -14px rgba(245,124,10,.65), 0 0 0 15px rgba(245,124,10,.15);
    }
}

.activity-card .activity-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

    .activity-card .activity-row:last-child {
        border-bottom: none;
    }

.activity-row .activity-label {
    font-weight: 500;
}

.activity-time {
    margin-left: auto;
    font-family: var(--font-mono);
    color: var(--muted);
    font-size: 13px;
}

.tip-banner {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: rgba(var(--ov),.03);
    border: 1px dashed var(--line-strong);
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

    .tip-banner svg {
        flex: none;
        width: 16px;
        height: 16px;
        margin-top: 2px;
        color: var(--accent-text);
    }

@media (min-width:480px) {
    .app-screen, .scan-screen {
        padding-left: 28px;
        padding-right: 28px;
    }
}
/* =========================================================
   Bu dosyayı mevcut pdks-mobil.css'in EN ALTINA ekleyin
   (yeni bir dosya olarak eklemeyin, aynı dosyaya yapıştırın).
   ========================================================= */

/* ---------- Hamburger menü butonu ---------- */
.menu-btn {
    position: fixed;
    top: calc(env(safe-area-inset-top) + 20px);
    left: 20px;
    z-index: 60;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: rgba(var(--panel-rgb), .85);
    backdrop-filter: blur(6px);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .menu-btn svg {
        width: 18px;
        height: 18px;
    }

/* Mevcut sayfa başlıklarının hamburger ile çakışmaması için */
.app-screen .topbar, .scan-screen .topbar {
    padding-left: 44px;
}

/* ---------- Karartma katmanı ---------- */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(var(--shade-rgb),.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
    z-index: 70;
}

    .menu-overlay.is-open {
        opacity: 1;
        pointer-events: auto;
    }

/* ---------- Sürgülü yan menü (drawer) ---------- */
.side-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 80%;
    max-width: 300px;
    background: linear-gradient(180deg, var(--surface) 0%, var(--ink) 100%);
    border-right: 1px solid var(--line-strong);
    box-shadow: var(--shadow-1);
    z-index: 80;
    display: flex;
    flex-direction: column;
    padding: calc(env(safe-area-inset-top) + 22px) 18px calc(env(safe-area-inset-bottom) + 18px);
    transform: translateX(-105%);
    transition: transform .26s cubic-bezier(.4,0,.2,1);
}

    .side-drawer.is-open {
        transform: translateX(0);
    }

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.drawer-close {
    background: transparent;
    border: none;
    color: var(--muted);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .drawer-close svg {
        width: 18px;
        height: 18px;
    }

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 12px;
    border-radius: var(--radius-sm);
    color: var(--paper-dim);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

    .drawer-link .drawer-icon {
        flex: none;
        width: 22px;
        height: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--muted);
    }

        .drawer-link .drawer-icon svg {
            width: 19px;
            height: 19px;
        }

    .drawer-link:active {
        background: rgba(var(--ov),.06);
    }

    .drawer-link.is-active {
        background: rgba(245,124,10,.12);
        color: var(--accent-text);
    }

        .drawer-link.is-active .drawer-icon {
            color: var(--accent-text);
        }

.drawer-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drawer-logout {
    color: var(--rust-strong);
}

    .drawer-logout .drawer-icon {
        color: var(--rust-strong);
    }

body.menu-kilitli {
    overflow: hidden;
}

/* ---------- Select & textarea (izin talebi formu) ---------- */
.field select {
    width: 100%;
    background: rgba(var(--shade-rgb),.20);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    color: var(--paper);
    font-family: var(--font-body);
    font-size: 15px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239aa1b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

    .field select:focus {
        outline: none;
        border-color: var(--brass);
    }

.field textarea {
    width: 100%;
    min-height: 88px;
    resize: vertical;
    background: rgba(var(--shade-rgb),.20);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    color: var(--paper);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
}

    .field textarea::placeholder {
        color: rgba(var(--ov),.28);
    }

    .field textarea:focus {
        outline: none;
        border-color: var(--brass);
        background: rgba(var(--shade-rgb),.30);
    }

.field-row {
    display: flex;
    gap: 12px;
}

    .field-row .field {
        flex: 1;
        margin-bottom: 18px;
    }

/* ---------- İzin talepleri listesi ---------- */
.leave-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}

.leave-item {
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    padding: 16px 18px;
}

.leave-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 10px;
}

.leave-item-tur {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    color: var(--paper);
}

.leave-item-tarih {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

.leave-item-not {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

.durum-pill {
    flex: none;
    padding: 5px 11px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    background: rgba(var(--ov),.08);
    color: var(--muted);
}

    .durum-pill.is-onay {
        background: rgba(245,124,10,.16);
        color: var(--accent-text);
    }

    .durum-pill.is-red {
        background: rgba(225,75,102,.16);
        color: var(--rust-strong);
    }

.section-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    color: var(--paper-dim);
    margin: 30px 0 4px;
}

/* ---------- KVKK sayfası ---------- */
.kvkk-block {
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin-bottom: 14px;
}

    .kvkk-block h3 {
        font-family: var(--font-display);
        font-size: 15px;
        margin: 0 0 8px;
        color: var(--paper);
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .kvkk-block h3 svg {
            width: 17px;
            height: 17px;
            color: var(--accent-text);
        }

    .kvkk-block p {
        margin: 0;
        font-size: 13.5px;
        line-height: 1.6;
        color: var(--muted);
    }
/* ---------- Başarı animasyonu (izin talebi vb. onay göstergesi) ---------- */
.basari-overlay[hidden] {
    display: none !important;
}

.basari-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--shade-rgb),.55);
    z-index: 9999;
    animation: basariFade .2s ease-out;
}

    .basari-overlay.basari-kapaniyor {
        animation: basariFadeOut .25s ease-in forwards;
    }

.basari-kart {
    background: linear-gradient(165deg, var(--surface) 0%, var(--surface-2) 100%);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    padding: 30px 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-1);
    animation: basariPop .35s cubic-bezier(.26,1.36,.44,1);
}

.basari-svg {
    width: 72px;
    height: 72px;
}

.basari-cember {
    stroke: var(--brass);
    stroke-width: 3;
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    animation: basariCemberCiz .45s ease-out forwards;
}

.basari-tik {
    stroke: var(--brass-strong);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 36;
    stroke-dashoffset: 36;
    animation: basariTikCiz .3s ease-out .4s forwards;
}

.basari-metin {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    color: var(--paper);
}

@keyframes basariFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes basariFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes basariPop {
    from {
        transform: scale(.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes basariCemberCiz {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes basariTikCiz {
    to {
        stroke-dashoffset: 0;
    }
}

/* ---------- İzin talepleri: son talep + katlanır geçmiş ---------- */
.leave-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin: 30px 0 12px;
}

    .leave-section-head .section-title {
        margin: 0;
    }

.leave-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.stat-chip {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(var(--ov),.06);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 11px;
    white-space: nowrap;
}

    .stat-chip.is-onay {
        background: rgba(245,124,10,.14);
        color: var(--accent-text);
    }

    .stat-chip.is-red {
        background: rgba(225,75,102,.14);
        color: var(--rust-strong);
    }

.leave-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

    .leave-filters::-webkit-scrollbar {
        display: none;
    }

.filter-chip {
    flex: none;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(var(--ov),.04);
    color: var(--muted);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

    .filter-chip.is-active {
        background: var(--brass);
        border-color: var(--brass);
        color: var(--brass-ink);
    }

.leave-item.is-son {
    border-color: var(--brass);
    box-shadow: 0 0 0 1px rgba(245,124,10,.25), var(--shadow-1);
}

.leave-item-badges {
    display: flex;
    align-items: center;
    gap: 8px;
}

.leave-badge-yeni {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(245,124,10,.18);
    color: var(--accent-text);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .02em;
}

    .leave-badge-yeni::before {
        content: '';
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--brass-strong);
        animation: badgeYeniPulse 1.6s ease-in-out infinite;
    }

.leave-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 14px;
    padding: 12px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--accent-text);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s ease;
}

    .leave-toggle:active {
        background: rgba(245,124,10,.08);
    }

.leave-toggle-icon {
    width: 15px;
    height: 15px;
    transition: transform .25s ease;
}

.leave-toggle.is-open .leave-toggle-icon {
    transform: rotate(180deg);
}

.leave-history {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .32s ease;
}

    .leave-history.is-open {
        grid-template-rows: 1fr;
        margin-top: 12px;
    }

.leave-history-inner {
    overflow: hidden;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@keyframes badgeYeniPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .4;
        transform: scale(1.3);
    }
}

/* =========================================================
   MARKA UYUMU + GİRİŞ EKRANI (ana uygulamayla aynı turuncu tema)
   ========================================================= */
html {
    background: var(--ink);
}

body {
    background: transparent;
}

    body::before {
        content: '';
        position: fixed;
        inset: 0;
        z-index: -1;
        pointer-events: none;
        background: radial-gradient(520px 420px at 0% -8%, rgba(245,124,10,.20), transparent 70%), radial-gradient(480px 420px at 100% 108%, rgba(61,91,255,.16), transparent 70%);
    }

/* Logo (üst çubuk ve menü) */
.brandlogo {
    display: block;
    height: 26px;
    width: auto;
}

.drawer-head .brandlogo {
    height: 28px;
}

.brandmark {
    background: linear-gradient(90deg, var(--brass), var(--brass-strong));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Sayfa açılışında içerikler sırayla yukarı süzülür */
.app-screen > * {
    animation: mobRise .55s cubic-bezier(.2,.8,.2,1) both;
}

    .app-screen > *:nth-child(2) {
        animation-delay: .05s;
    }

    .app-screen > *:nth-child(3) {
        animation-delay: .10s;
    }

    .app-screen > *:nth-child(4) {
        animation-delay: .15s;
    }

    .app-screen > *:nth-child(5) {
        animation-delay: .20s;
    }

    .app-screen > *:nth-child(6) {
        animation-delay: .25s;
    }

    .app-screen > *:nth-child(7) {
        animation-delay: .30s;
    }

    .app-screen > *:nth-child(n+8) {
        animation-delay: .35s;
    }

@keyframes mobRise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Giriş ekranı ---------- */
body.sayfa-login .menu-btn,
body.sayfa-login .menu-overlay,
body.sayfa-login .side-drawer {
    display: none;
}

.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    will-change: transform;
}

    .blob.b1 {
        width: 340px;
        height: 340px;
        background: #f57c0a;
        opacity: .42;
        top: -120px;
        left: -110px;
        animation: blobA 22s ease-in-out infinite alternate;
    }

    .blob.b2 {
        width: 300px;
        height: 300px;
        background: #3d5bff;
        opacity: .26;
        bottom: -120px;
        right: -100px;
        animation: blobB 26s ease-in-out infinite alternate;
    }

    .blob.b3 {
        width: 200px;
        height: 200px;
        background: #ffb02e;
        opacity: .16;
        top: 46%;
        left: 40%;
        animation: blobC 30s ease-in-out infinite alternate;
    }

@keyframes blobA {
    to {
        transform: translate(110px, 90px) scale(1.15);
    }
}

@keyframes blobB {
    to {
        transform: translate(-90px, -70px) scale(1.1);
    }
}

@keyframes blobC {
    to {
        transform: translate(-120px, 50px) scale(.85);
    }
}

.bg .grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(var(--ov),.045) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--ov),.045) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 15%, transparent 78%);
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 15%, transparent 78%);
}

.login-screen {
    position: relative;
    z-index: 1;
    justify-content: center;
}

.login-top {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.clock-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(var(--ov),.05);
    border: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--paper-dim);
    font-variant-numeric: tabular-nums;
}

    .clock-chip .dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--brass-strong);
        animation: dotBlink 1.6s ease-in-out infinite;
    }

@keyframes dotBlink {
    50% {
        opacity: .3;
    }
}

.login-hero {
    text-align: center;
    margin-bottom: 22px;
}

    .login-hero .logo {
        position: relative;
        width: 190px;
        max-width: 70%;
        margin: 0 auto;
        padding: 6px 0;
        overflow: hidden;
        animation: logoIn .9s cubic-bezier(.2,.9,.2,1) .15s both;
    }

        .login-hero .logo img {
            display: block;
            width: 100%;
            height: auto;
            animation: logoGlow 4s ease-in-out 1.4s infinite;
        }

.logo__scan {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    border-radius: 2px;
    opacity: 0;
    background: linear-gradient(90deg, transparent, var(--brass), transparent);
    box-shadow: 0 0 14px 3px rgba(245,124,10,.65);
    animation: logoScan 3.8s ease-in-out 1.6s infinite;
}

.logo__bar {
    display: block;
    width: 46px;
    height: 3px;
    margin: 8px auto 18px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--brass), var(--brass-strong));
    transform: scaleX(0);
    animation: barGrow .7s cubic-bezier(.2,.8,.2,1) .8s forwards;
}

@keyframes logoIn {
    from {
        opacity: 0;
        transform: scale(.8) translateY(8px);
        filter: blur(8px);
    }

    to {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 0 rgba(245,124,10,0));
    }

    50% {
        filter: drop-shadow(0 4px 14px rgba(245,124,10,.45));
    }
}

@keyframes logoScan {
    0% {
        top: 0;
        opacity: 0;
    }

    12% {
        opacity: 1;
    }

    88% {
        opacity: 1;
    }

    100% {
        top: calc(100% - 2px);
        opacity: 0;
    }
}

@keyframes barGrow {
    to {
        transform: scaleX(1);
    }
}

.login-hero .hero-date {
    margin-bottom: 4px;
}

.login-hero h1 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(26px, 7.5vw, 34px);
    line-height: 1.1;
    margin: 0 0 8px;
}

.login-hero .hero-sub {
    margin: 0;
}

/* Kart: dönen turuncu kenar ışığı */
@property --ang {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

.login-card {
    background: rgba(var(--panel-rgb),.66);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    backdrop-filter: blur(22px) saturate(140%);
    border-color: var(--line);
    overflow: visible;
}

    .login-card::before {
        inset: -1px;
        height: auto;
        border-radius: inherit;
        padding: 1.5px;
        pointer-events: none;
        background: conic-gradient(from var(--ang), transparent 0 62%, var(--brass) 82%, var(--brass-strong) 92%, transparent 100%);
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
        animation: spinAng 7s linear infinite;
    }

@keyframes spinAng {
    to {
        --ang: 360deg;
    }
}

.login-card .field label {
    font-weight: 500;
}

.field-ctl {
    position: relative;
}

    .field-ctl > svg {
        position: absolute;
        left: 14px;
        top: 50%;
        width: 18px;
        height: 18px;
        margin-top: -9px;
        color: var(--muted);
        pointer-events: none;
        transition: color .2s;
    }

    .field-ctl > input {
        padding-left: 44px;
    }

    .field-ctl:focus-within > svg {
        color: var(--accent-text);
    }

.field input:focus {
    box-shadow: 0 0 0 4px rgba(245,124,10,.16);
}

/* Giriş butonu: ışık süpürme efekti */
.login-card .btn-primary {
    overflow: hidden;
}

    .login-card .btn-primary::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: -60%;
        width: 40%;
        background: linear-gradient(100deg, transparent, rgba(255,255,255,.38), transparent);
        transform: skewX(-20deg);
        animation: btnShine 4.2s ease-in-out 1.5s infinite;
        pointer-events: none;
    }

@keyframes btnShine {
    0% {
        left: -60%;
    }

    40%, 100% {
        left: 130%;
    }
}

.login-screen .fine-print {
    margin-top: 20px;
}

@media (prefers-reduced-motion: reduce) {
    .blob, .login-card::before, .logo__scan, .login-card .btn-primary::after, .clock-chip .dot,
    .login-hero .logo img, .app-screen > * {
        animation: none !important;
    }

    .logo__bar {
        transform: none;
    }
}


/* =========================================================
   TEMA (koyu / açık) + DİL ARAÇLARI + RTL (Arapça)
   ========================================================= */
:root {
    --ov: 255,255,255;
    --tx-rgb: 244,246,251;
    --shade-rgb: 0,0,0;
    --panel-rgb: 18,22,36;
    --accent-text: #ffb02e;
    color-scheme: dark;
}

html[data-theme="light"] {
    color-scheme: light;
    --ov: 15,23,42;
    --tx-rgb: 21,26,43;
    --shade-rgb: 220,226,240;
    --panel-rgb: 255,255,255;
    --ink: #eef1f7;
    --surface: #ffffff;
    --surface-2: #f5f7fb;
    --line: rgba(15,23,42,.10);
    --line-strong: rgba(15,23,42,.18);
    --paper: #151a2b;
    --paper-dim: #3a415a;
    --muted: #5d657d;
    --rust-strong: #d6334f;
    --accent-text: #c85a00;
    --shadow-1: 0 20px 40px -26px rgba(15,23,42,.30);
}

    html[data-theme="light"] body::before {
        background: radial-gradient(520px 420px at 0% -8%, rgba(245,124,10,.14), transparent 70%), radial-gradient(480px 420px at 100% 108%, rgba(61,91,255,.08), transparent 70%);
    }

    html[data-theme="light"] .blob.b1 {
        opacity: .30;
    }

    html[data-theme="light"] .blob.b2 {
        opacity: .14;
    }

    html[data-theme="light"] .blob.b3 {
        opacity: .14;
    }

    html[data-theme="light"] .brandmark {
        background: linear-gradient(90deg, #c85a00, #ee6f00);
        -webkit-background-clip: text;
        background-clip: text;
    }

    html[data-theme="light"] .menu-overlay {
        background: rgba(15,23,42,.35);
    }

    html[data-theme="light"] .side-drawer {
        background: linear-gradient(180deg, #ffffff 0%, var(--ink) 100%);
    }

/* Dil / tema araçları */
.mob-tools {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 6px 14px;
}

.mob-tools-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.mob-tools-lbl {
    font-size: 12px;
    color: var(--muted);
}

.mob-seg {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(var(--ov),.06);
    border: 1px solid var(--line);
}

    .mob-seg button {
        border: 0;
        background: none;
        color: var(--paper-dim);
        font: 600 12px var(--font-body);
        padding: 6px 11px;
        border-radius: 999px;
        cursor: pointer;
    }

        .mob-seg button.is-on {
            background: linear-gradient(135deg, var(--brass), var(--brass-strong));
            color: var(--brass-ink);
        }

.mob-tools.is-compact .mob-tools-row {
    justify-content: center;
    gap: 10px;
}

.mob-theme-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(var(--ov),.06);
    color: var(--paper);
    display: grid;
    place-items: center;
    cursor: pointer;
}

    .mob-theme-btn svg {
        width: 17px;
        height: 17px;
    }

.login-top {
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

    .login-top .mob-tools {
        padding: 0;
    }

/* RTL (Arapça) */
html[dir="rtl"] .menu-btn {
    left: auto;
    right: 20px;
}

html[dir="rtl"] .app-screen .topbar, html[dir="rtl"] .scan-screen .topbar {
    padding-left: 0;
    padding-right: 44px;
}

html[dir="rtl"] .side-drawer {
    left: auto;
    right: 0;
    border-right: 0;
    border-left: 1px solid var(--line-strong);
    transform: translateX(105%);
}

    html[dir="rtl"] .side-drawer.is-open {
        transform: translateX(0);
    }

html[dir="rtl"] .drawer-link {
    text-align: right;
}

html[dir="rtl"] .field-ctl > svg {
    left: auto;
    right: 14px;
}

html[dir="rtl"] .field-ctl > input {
    padding-left: 14px;
    padding-right: 44px;
}

html[dir="rtl"] .status-chip, html[dir="rtl"] .activity-time {
    margin-left: 0;
    margin-right: auto;
}

html[dir="rtl"] .id-row {
    text-align: left;
}
