/* ==========================================================
   HaberScrapper — Design System (Light Theme)
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ----------------------------------------------------------
   1. DESIGN TOKENS
   ---------------------------------------------------------- */
:root {
    /* Background */
    --bg: #f0f2f5;
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff;
    --bg-header: #ffffff;

    /* Brand / Accent */
    --accent: #2563eb;
    --accent-2: #1d4ed8;
    --accent-soft: #eff6ff;
    --accent-muted: #bfdbfe;

    /* Text */
    --txt-1: #0f172a;
    --txt-2: #475569;
    --txt-3: #94a3b8;
    --text-muted: #94a3b8;
    --txt-inv: #ffffff;

    /* Border */
    --border: #e2e8f0;
    --border-2: #cbd5e1;

    /* Status */
    --green: #16a34a;
    --green-bg: #f0fdf4;
    --green-bd: #bbf7d0;
    --red: #dc2626;
    --red-bg: #fef2f2;
    --red-bd: #fecaca;
    --yellow: #d97706;
    --yellow-bg: #fffbeb;
    --yellow-bd: #fde68a;

    /* Typography */
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --fs-xs: 0.8rem;
    --fs-sm: 0.9375rem;
    --fs-base: 1.0625rem;
    --fs-lg: 1.175rem;
    --fs-xl: 1.375rem;
    --fs-2xl: 1.75rem;
    --fs-3xl: 2.25rem;

    /* Layout */
    --header-h: 60px;
    --sidebar-w: 230px;

    /* Misc */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
    --shadow: 0 4px 12px rgba(15, 23, 42, .08), 0 1px 3px rgba(15, 23, 42, .06);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, .10), 0 4px 8px rgba(15, 23, 42, .06);
    --t: 0.18s ease;
}

/* ----------------------------------------------------------
   2. RESET & BASE
   ---------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: var(--fs-base);
    color: var(--txt-1);
    background: var(--bg);
    line-height: 1.65;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--t);
}

a:hover {
    color: var(--accent-2);
}

img,
svg {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--txt-1);
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--fs-3xl);
}

h2 {
    font-size: var(--fs-2xl);
}

h3 {
    font-size: var(--fs-xl);
}

h4 {
    font-size: var(--fs-lg);
}

/* ----------------------------------------------------------
   3. LOGIN PAGE  (Premium Split Layout)
   ---------------------------------------------------------- */

/* ---- Body override ---- */
body.page-login {
    display: block;
    min-height: 100vh;
    background: #0d0f14;
    overflow-x: hidden;
}

/* ---- Root split layout ---- */
.lp-root {
    display: flex;
    min-height: 100vh;
}

/* ══════════════════════════════════════
   LEFT PANEL
══════════════════════════════════════ */
.lp-left {
    position: relative;
    flex: 1 1 55%;
    min-height: 100vh;
    background: linear-gradient(145deg, #0d0f14 0%, #111827 60%, #0a0e1a 100%);
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

/* Grid arkaplanı */
.lp-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37,99,235,.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37,99,235,.07) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Glow noktaları */
.lp-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.lp-glow-1 {
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(37,99,235,.22) 0%, transparent 70%);
    top: -80px; left: -60px;
}
.lp-glow-2 {
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(139,92,246,.18) 0%, transparent 70%);
    bottom: 60px; right: 40px;
}

.lp-left-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 3.5rem;
    gap: 2rem;
    width: 100%;
}

/* Brand */
.lp-brand {
    display: flex;
    align-items: center;
    gap: .85rem;
}
.lp-brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(37,99,235,.4);
    flex-shrink: 0;
}
.lp-brand-icon svg { width: 24px; height: 24px; fill: #fff; }
.lp-brand-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: -.02em;
}
.lp-brand-badge {
    display: inline-block;
    margin-left: .5rem;
    background: rgba(37,99,235,.2);
    color: #60a5fa;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 20px;
    border: 1px solid rgba(37,99,235,.3);
    vertical-align: middle;
}

/* Hero */
.lp-hero-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.15;
    letter-spacing: -.04em;
    margin: 0;
}
.lp-hero-accent {
    background: linear-gradient(90deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.lp-hero-desc {
    font-size: .92rem;
    color: #64748b;
    line-height: 1.7;
    max-width: 430px;
    margin: .75rem 0 0;
}

/* Stat kartları */
.lp-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .85rem;
}
.lp-stat-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    transition: background .2s, border-color .2s, transform .2s;
}
.lp-stat-card:hover {
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.14);
    transform: translateY(-2px);
}
.lp-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 10px;
    flex-shrink: 0;
}
.lp-stat-icon svg { width: 18px; height: 18px; }

.lp-stat-blue .lp-stat-icon  { background: rgba(37,99,235,.15); color: #60a5fa; }
.lp-stat-green .lp-stat-icon { background: rgba(16,185,129,.12); color: #34d399; }
.lp-stat-purple .lp-stat-icon{ background: rgba(139,92,246,.12); color: #a78bfa; }

.lp-stat-body { display: flex; flex-direction: column; gap: 1px; }
.lp-stat-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: #f1f5f9;
    line-height: 1;
}
.lp-stat-live {
    font-size: .85rem !important;
    font-weight: 700 !important;
    color: #34d399 !important;
    letter-spacing: .06em;
    display: flex;
    align-items: center;
    gap: 5px;
}
.lp-stat-live::before {
    content: '';
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #34d399;
    animation: lp-pulse 1.4s ease-in-out infinite;
}
.lp-stat-plus {
    font-size: 1.2rem;
    font-weight: 700;
    color: #60a5fa;
    line-height: 1;
    display: inline;
    margin-left: 1px;
}
.lp-stat-label {
    font-size: .73rem;
    color: #475569;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Canlı feed */
.lp-feed-box {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    overflow: hidden;
}
.lp-feed-header {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .75rem 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: rgba(255,255,255,.02);
}
.lp-live-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34,197,94,.5);
    animation: lp-pulse 1.4s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes lp-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
    70%  { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.lp-feed-title {
    font-size: .78rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .05em;
    flex: 1;
}
.lp-feed-time {
    font-size: .72rem;
    color: #475569;
    font-variant-numeric: tabular-nums;
    font-family: 'Courier New', monospace;
}

/* Ticker viewport — sabit yükseklik, overflow gizli */
.lp-feed-viewport {
    overflow: hidden;
    position: relative;
}
/* Üst ve alt kenar için fade maskesi */
.lp-feed-viewport::before,
.lp-feed-viewport::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 32px;
    z-index: 2;
    pointer-events: none;
}
.lp-feed-viewport::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(15,18,26,.85) 0%, transparent 100%);
}
.lp-feed-viewport::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(15,18,26,.85) 0%, transparent 100%);
}

/* Track — translateY ile yukarı kayar */
.lp-feed-track {
    display: flex;
    flex-direction: column;
    transform: translateY(0);
    transition: transform .48s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

/* Her satır — tam 38px yükseklik (ROW_H ile eşleşmeli) */
.lp-feed-row {
    height: 38px;
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 0 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,.04);
    flex-shrink: 0;
    opacity: 1;
    transition: opacity .35s;
}
.lp-feed-row:last-child { border-bottom: none; }

/* Yeni gelen satır — önce transparan, sonra görünür */
.lp-feed-row-enter {
    opacity: 0;
}

.lp-feed-bot {
    font-size: .7rem;
    font-weight: 700;
    color: #60a5fa;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 80px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lp-feed-headline {
    font-size: .76rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* stat-val satır yardımcısı */
.lp-stat-val-row {
    display: flex;
    align-items: baseline;
    gap: 1px;
    line-height: 1;
}

/* Özellik etiketleri */
.lp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.lp-tag {
    font-size: .72rem;
    font-weight: 500;
    color: #475569;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    padding: 3px 10px;
    transition: color .2s, background .2s;
}
.lp-tag:hover {
    color: #94a3b8;
    background: rgba(255,255,255,.07);
}

/* ══════════════════════════════════════
   RIGHT PANEL
══════════════════════════════════════ */
.lp-right {
    flex: 0 0 45%;
    min-height: 100vh;
    background: #f8fafc;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
}
.lp-right-inner {
    width: 100%;
    max-width: 420px;
    padding: 3rem 2rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
    min-height: 100vh;
}

/* Mobile brand (sadece mobilde görünür) */
.lp-form-brand-mobile {
    display: none;
    align-items: center;
    gap: .6rem;
    margin-bottom: .5rem;
}
.lp-form-brand-mobile .lp-brand-icon {
    width: 34px; height: 34px; border-radius: 9px;
    box-shadow: 0 3px 12px rgba(37,99,235,.35);
}
.lp-form-brand-mobile .lp-brand-name { color: #0f172a; font-size: .95rem; }

/* Login kartı */
.lp-form-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2.25rem 2rem;
    box-shadow: 0 4px 24px rgba(15,23,42,.07), 0 1px 3px rgba(15,23,42,.05);
    animation: lpFadeUp .45s cubic-bezier(.16,1,.3,1) both;
}
@keyframes lpFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.lp-form-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -.03em;
    margin: 0 0 .2rem;
}
.lp-form-sub {
    font-size: .85rem;
    color: #94a3b8;
    margin: 0 0 1.75rem;
}

/* Form alanları */
.lp-field { margin-bottom: 1.1rem; }
.lp-field label {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .8rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: .4rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.lp-field label svg { color: #94a3b8; flex-shrink: 0; }
.lp-field input[type="text"],
.lp-field input[type="email"],
.lp-field input[type="password"] {
    width: 100%;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: .7rem .95rem;
    font-family: var(--font);
    font-size: .9rem;
    color: #0f172a;
    outline: none;
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.lp-field input:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.lp-field input::placeholder { color: #cbd5e1; }
.lp-field-pw { position: relative; }
.lp-field-pw input { padding-right: 2.8rem; }
.lp-pw-toggle {
    position: absolute;
    right: .7rem; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: #94a3b8; cursor: pointer;
    display: flex; align-items: center;
    padding: 4px;
    transition: color .18s;
}
.lp-pw-toggle:hover { color: #2563eb; }

/* Submit butonu */
.lp-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    border: none;
    border-radius: 11px;
    padding: .85rem 1.5rem;
    font-family: var(--font);
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1.5rem;
    letter-spacing: -.01em;
    box-shadow: 0 4px 16px rgba(37,99,235,.35);
    transition: transform .18s, box-shadow .18s, filter .18s;
}
.lp-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(37,99,235,.45);
    filter: brightness(1.06);
}
.lp-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(37,99,235,.3);
}

/* ═══════════════ API KUTUSU ═══════════════ */
.lp-api-box {
    background: #0d0f14;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 16px;
    overflow: hidden;
    animation: lpFadeUp .55s cubic-bezier(.16,1,.3,1) .1s both;
}
.lp-api-header {
    padding: .75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
    background: rgba(255,255,255,.02);
}
.lp-api-header-left {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .72rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .4rem;
}
.lp-api-header-left svg { color: #334155; }
.lp-api-badge {
    background: rgba(245,158,11,.1);
    color: #d97706;
    border: 1px solid rgba(245,158,11,.2);
    font-size: .65rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 20px;
}
.lp-api-method {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
}
.lp-method-get {
    display: inline-block;
    background: rgba(16,185,129,.15);
    color: #34d399;
    font-size: .7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 5px;
    letter-spacing: .05em;
    flex-shrink: 0;
}



/* ══ Responsive ══ */
@media (max-width: 900px) {
    .lp-root { flex-direction: column; }
    .lp-left {
        flex: none;
        min-height: auto;
        padding: 0;
    }
    .lp-left-inner { padding: 2rem 1.5rem; gap: 1.25rem; }
    .lp-right {
        flex: none;
        min-height: auto;
    }
    .lp-right-inner {
        min-height: auto;
        padding: 2rem 1.25rem 3rem;
        justify-content: flex-start;
    }
    .lp-stats { grid-template-columns: repeat(3, 1fr); gap: .6rem; }
    .lp-form-brand-mobile { display: flex; }
    .lp-hero-title { font-size: 1.8rem; }
}
@media (max-width: 560px) {
    .lp-stats { grid-template-columns: 1fr 1fr; }
    .lp-stat-card:last-child { grid-column: 1 / -1; }
    .lp-form-card { padding: 1.5rem 1.25rem; }
}


/* ----------------------------------------------------------
   4. FORMS
   ---------------------------------------------------------- */
.form-group {
    margin-bottom: 1.1rem;
}

.form-group label {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--txt-2);
    margin-bottom: .35rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group input[type="date"],
.form-group input[type="datetime-local"],
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: .6rem .85rem;
    font-family: var(--font);
    font-size: var(--fs-sm);
    color: var(--txt-1);
    outline: none;
    transition: border-color var(--t), box-shadow var(--t);
    appearance: none;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--txt-3);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}

/* ----------------------------------------------------------
   5. BUTTONS
   ---------------------------------------------------------- */
.btn,
button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .6rem 1.25rem;
    font-family: var(--font);
    font-size: var(--fs-sm);
    font-weight: 600;
    line-height: 1.25;
    border-radius: var(--radius);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background var(--t), box-shadow var(--t), transform var(--t), border-color var(--t);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: .01em;
}

/* Primary */
.btn-primary,
button[type="submit"] {
    width: 100%;
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    margin-top: .5rem;
}

.btn-primary:hover,
button[type="submit"]:hover {
    background: var(--accent-2);
    border-color: var(--accent-2);
    box-shadow: 0 4px 14px rgba(37, 99, 235, .3);
    transform: translateY(-1px);
    color: #fff;
}

.btn-primary:active,
button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Secondary */
.btn-secondary {
    background: var(--bg-card);
    color: var(--txt-2);
    border-color: var(--border-2);
}

.btn-secondary:hover {
    background: var(--bg);
    color: var(--txt-1);
    border-color: var(--border-2);
}

/* Danger */
.btn-danger {
    background: var(--red-bg);
    color: var(--red);
    border-color: var(--red-bd);
}

.btn-danger:hover {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
    box-shadow: 0 4px 14px rgba(220, 38, 38, .25);
}

/* Size variants */
.btn-sm {
    padding: .35rem .85rem;
    font-size: var(--fs-xs);
    border-radius: var(--radius-sm);
    margin-top: 0;
    width: auto;
}

.btn-lg {
    padding: .75rem 1.75rem;
    font-size: var(--fs-base);
}

.btn-w-auto {
    width: auto;
    margin-top: 0;
}

.btn:disabled,
button:disabled {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    pointer-events: auto !important;
    box-shadow: none !important;
    transform: none !important;
}

/* ----------------------------------------------------------
   6. APP LAYOUT
   ---------------------------------------------------------- */
body.page-app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--bg);
}

/* ----------------------------------------------------------
   7. HEADER
   ---------------------------------------------------------- */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--txt-1);
    letter-spacing: -.025em;
    flex-shrink: 0;
    text-decoration: none;
}

.brand:hover {
    color: var(--txt-1);
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
}

/* İkon hizalama — nav linklerde metin ile aynı hizada */
.nav-icon {
    display: inline-block;
    vertical-align: -0.2em;
    flex-shrink: 0;
}

/* Login sayfası ikon rengi */
.login-brand-icon svg {
    color: white;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: .15rem;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .38rem .75rem;
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--txt-2);
    transition: background var(--t), color var(--t);
    white-space: nowrap;
}

.nav-links a:hover {
    background: var(--bg);
    color: var(--txt-1);
}

.nav-links a.active {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}

.btn-logout {
    margin-left: .75rem;
    padding: .35rem .85rem !important;
    background: var(--bg) !important;
    border: 1.5px solid var(--border) !important;
    color: var(--txt-3) !important;
    border-radius: var(--radius-sm) !important;
    font-size: var(--fs-xs) !important;
    font-weight: 500 !important;
}

.btn-logout:hover {
    background: var(--red-bg) !important;
    border-color: var(--red-bd) !important;
    color: var(--red) !important;
}

/* ----------------------------------------------------------
   7.1 NAV DROPDOWN
   ---------------------------------------------------------- */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .38rem .75rem;
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--txt-2);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background var(--t), color var(--t);
    white-space: nowrap;
    margin: 0;
    width: auto;
    font-family: var(--font);
}

.nav-dropdown-btn:hover,
.nav-dropdown:hover .nav-dropdown-btn,
.nav-dropdown.active .nav-dropdown-btn,
.nav-dropdown.open .nav-dropdown-btn {
    background: var(--bg);
    color: var(--txt-1);
}

.nav-dropdown-btn.active {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}

.dropdown-caret {
    transition: transform var(--t);
    color: var(--txt-3);
    margin-left: .15rem;
}

.nav-dropdown:hover .dropdown-caret,
.nav-dropdown.active .dropdown-caret,
.nav-dropdown.open .dropdown-caret {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 210px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: .35rem;
    z-index: 105;
    animation: dropdownFade .18s cubic-bezier(.16, 1, .3, 1);
}

/* Buton ile menü arasındaki boşlukta hover'ın kopmasını önleyen görünmez köprü */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: .55rem !important;
    padding: .5rem .75rem !important;
    border-radius: var(--radius-sm) !important;
    font-size: var(--fs-sm) !important;
    font-weight: 500 !important;
    color: var(--txt-2) !important;
    text-decoration: none !important;
    transition: background var(--t), color var(--t) !important;
    width: 100% !important;
}

.dropdown-item:hover {
    background: var(--bg) !important;
    color: var(--txt-1) !important;
}

.dropdown-item.active {
    background: var(--accent-soft) !important;
    color: var(--accent) !important;
    font-weight: 600 !important;
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: .35rem 0;
}

/* ----------------------------------------------------------
   8. MAIN CONTENT
   ---------------------------------------------------------- */
.main-content {
    flex: 1;
    max-width: 1360px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.page-container {
    width: 100%;
}

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

.page-header h1 {
    font-size: var(--fs-2xl);
}

.page-header p {
    font-size: var(--fs-sm);
    color: var(--txt-2);
    margin-top: .2rem;
}

.page-header .actions {
    display: flex;
    gap: .5rem;
    align-items: center;
    flex-shrink: 0;
}

.page-header .actions .btn {
    height: 38px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.page-header .actions .btn svg {
    flex-shrink: 0;
}

/* ----------------------------------------------------------
   9. CARDS
   ---------------------------------------------------------- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--txt-1);
}

/* ----------------------------------------------------------
   10. STAT CARDS
   ---------------------------------------------------------- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    transition: box-shadow var(--t), border-color var(--t);
}

.stat-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--border-2);
}

.stat-label {
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--txt-3);
    margin-bottom: .5rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--txt-1);
    letter-spacing: -.04em;
    line-height: 1;
    margin-bottom: .3rem;
}

.stat-sub {
    font-size: var(--fs-xs);
    color: var(--txt-3);
}

/* ----------------------------------------------------------
   11. TABLES
   ---------------------------------------------------------- */
.table-wrapper {
    overflow-x: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-sm);
}

thead {
    background: var(--bg);
}

thead th {
    padding: .65rem 1rem;
    text-align: left;
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--txt-3);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background var(--t);
}

tbody tr:last-child {
    border-bottom: none;
}

tbody tr:hover {
    background: var(--bg);
}

tbody td {
    padding: .75rem 1rem;
    color: var(--txt-1);
    vertical-align: middle;
}

/* ----------------------------------------------------------
   12. BADGES
   ---------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: .02em;
    border: 1px solid transparent;
}

.badge::before {
    display: none;
}

.badge-green {
    background: var(--green-bg);
    color: var(--green);
    border-color: var(--green-bd);
}

.badge-green::before {
    background: var(--green);
}

.badge-red {
    background: var(--red-bg);
    color: var(--red);
    border-color: var(--red-bd);
}

.badge-red::before {
    background: var(--red);
}

.badge-yellow {
    background: var(--yellow-bg);
    color: var(--yellow);
    border-color: var(--yellow-bd);
}

.badge-yellow::before {
    background: var(--yellow);
}

.badge-gray {
    background: var(--bg);
    color: var(--txt-3);
    border-color: var(--border);
}

.badge-gray::before {
    background: var(--txt-3);
}

.badge-success {
    background: var(--green-bg);
    color: var(--green);
    border-color: var(--green-bd);
}

.badge-success::before {
    background: var(--green);
}

.badge-warn {
    background: var(--yellow-bg);
    color: var(--yellow);
    border-color: var(--yellow-bd);
}

.badge-warn::before {
    background: var(--yellow);
}

.badge-primary {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent-muted);
}

.badge-primary::before {
    background: var(--accent);
}

.badge-success-soft {
    background: var(--green-bg);
    color: var(--green);
    border-color: var(--green-bd);
}

/* ----------------------------------------------------------
   13. TOAST NOTIFICATIONS
   ---------------------------------------------------------- */
#toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    min-width: 280px;
    max-width: 380px;
    padding: .85rem 1.1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    pointer-events: all;
    animation: toastIn .3s cubic-bezier(.16, 1, .3, 1) both;
    position: relative;
    overflow: hidden;
}

.toast.hiding {
    animation: toastOut .25s ease forwards;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(24px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateX(24px) scale(.95);
    }
}

.toast-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 4px 0 0 4px;
}

.toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: .05rem;
}

.toast-body {
    flex: 1;
}

.toast-title {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--txt-1);
    line-height: 1.3;
}

.toast-msg {
    font-size: var(--fs-xs);
    color: var(--txt-2);
    margin-top: .15rem;
    line-height: 1.45;
}

.toast-close {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--txt-3);
    border-radius: 4px;
    font-size: 14px;
    transition: background var(--t), color var(--t);
    margin-top: -.05rem;
    padding: 0;
    width: auto;
    margin-top: 0;
}

.toast-close:hover {
    background: var(--bg);
    color: var(--txt-1);
}

/* Variants */
.toast-basari .toast-bar {
    background: var(--green);
}

.toast-basari .toast-icon {
    color: var(--green);
}

.toast-basari .toast-title {
    color: var(--green);
}

.toast-hata .toast-bar {
    background: var(--red);
}

.toast-hata .toast-icon {
    color: var(--red);
}

.toast-hata .toast-title {
    color: var(--red);
}

.toast-uyari .toast-bar {
    background: var(--yellow);
}

.toast-uyari .toast-icon {
    color: var(--yellow);
}

.toast-uyari .toast-title {
    color: var(--yellow);
}

/* Progress bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: currentColor;
    opacity: .2;
    animation: toastProgress linear forwards;
}

@keyframes toastProgress {
    from {
        width: 100%;
    }

    to {
        width: 0;
    }
}

/* ----------------------------------------------------------
   14. FOOTER
   ---------------------------------------------------------- */
.app-footer {
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: var(--fs-xs);
    color: var(--txt-3);
    background: var(--bg-card);
}

.footer-version {
    margin-left: .4rem;
    opacity: .5;
}

/* ----------------------------------------------------------
   15. MODAL
   ---------------------------------------------------------- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 500;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn .15s ease;
}

.modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 460px;
    animation: modalSlideIn .2s cubic-bezier(.16, 1, .3, 1);
}

.modal.modal-sm {
    max-width: 380px;
}

.modal.modal-lg {
    max-width: 640px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: .75rem;
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--txt-1);
    margin: 0;
}

.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--txt-3);
    border-radius: var(--radius-sm);
    transition: background var(--t), color var(--t);
    flex-shrink: 0;
    padding: 0;
    margin-top: 0;
    width: auto;
}

.modal-close:hover {
    background: var(--bg);
    color: var(--txt-1);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
}

/* ----------------------------------------------------------
   16. TABLE ACTIONS & EMPTY STATE
   ---------------------------------------------------------- */
.table-actions {
    display: flex;
    align-items: center;
    gap: .25rem;
}

.btn-icon,
button.btn-icon,
button[type="submit"].btn-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    border: 1.5px solid var(--border) !important;
    background: var(--bg-card) !important;
    border-radius: var(--radius-sm) !important;
    cursor: pointer !important;
    color: var(--txt-3) !important;
    transition: background var(--t), color var(--t), border-color var(--t) !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    font-weight: normal !important;
}

.btn-icon:hover,
button.btn-icon:hover,
button[type="submit"].btn-icon:hover {
    background: var(--bg) !important;
    color: var(--txt-1) !important;
    border-color: var(--border-2) !important;
    box-shadow: none !important;
    transform: none !important;
}

.btn-icon-danger:hover {
    background: var(--red-bg) !important;
    color: var(--red) !important;
    border-color: var(--red-bd) !important;
}

.btn-icon-refresh:hover,
button[type="submit"].btn-icon:hover {
    background: var(--accent-soft) !important;
    color: var(--accent) !important;
    border-color: var(--accent-muted) !important;
}

.table-empty {
    text-align: center;
    padding: 3.5rem 1rem;
    color: var(--txt-3);
}

.table-empty-icon {
    display: block;
    margin: 0 auto .75rem;
    color: var(--border-2);
}

.table-empty p {
    font-size: var(--fs-sm);
}

.text-color {
    color: var(--txt-1);
}

/* ----------------------------------------------------------
   17. SCROLLBAR
   ---------------------------------------------------------- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-2);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--txt-3);
}

/* ----------------------------------------------------------
   16. UTILITIES
   ---------------------------------------------------------- */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: .5rem;
}

.gap-4 {
    gap: 1rem;
}

.mt-2 {
    margin-top: .5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.text-sm {
    font-size: var(--fs-sm);
}

.text-xs {
    font-size: var(--fs-xs);
}

.text-muted {
    color: var(--txt-2);
}

.text-accent {
    color: var(--accent);
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.w-full {
    width: 100%;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

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

.col-id {
    width: 60px;
}

.col-actions {
    width: 120px;
}

/* ----------------------------------------------------------
   17. RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 768px) {
    .header-inner {
        padding: 0 1rem;
    }

    .main-content {
        padding: 1.5rem 1rem;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .nav-links a {
        padding: .35rem .5rem;
        font-size: var(--fs-xs);
    }
}

@media (max-width: 480px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }

    .login-card {
        padding: 1.5rem;
    }

    .login-wrapper {
        padding: 1rem;
    }
}

/* ----------------------------------------------------------
   18. SETTINGS TABS & CARDS
   ---------------------------------------------------------- */
.tabs-nav {
    display: flex;
    align-items: center;
    gap: .5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.75rem;
    overflow-x: auto;
}

.tab-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .65rem 1rem;
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--txt-2);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color var(--t), border-color var(--t);
    white-space: nowrap;
    margin-bottom: -1px;
}

.tab-link:hover {
    color: var(--txt-1);
}

.tab-link.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 600;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card:has(.card-header),
.card:has(.card-body),
.card:has(.card-footer) {
    padding: 0;
}

.card form {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin: 0;
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

.card-header-flex {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.card-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    background: var(--accent-soft);
    color: var(--accent);
    flex-shrink: 0;
}

.card-header h2,
.card-header h3 {
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--txt-1);
    margin: 0;
    line-height: 1.3;
}

.card-header p {
    font-size: var(--fs-xs);
    color: var(--txt-3);
    margin-top: .15rem;
    line-height: 1.4;
}

.card-body {
    padding: 1.5rem;
    flex: 1;
}

.card-footer {
    padding: 1rem 1.5rem;
    background: var(--bg);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.card-footer .btn,
.card-footer button[type="submit"] {
    width: auto !important;
    margin-top: 0 !important;
}

.badge-primary {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent-muted);
}

.badge-primary::before {
    background: var(--accent);
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: var(--fs-xs);
    background: var(--bg);
    padding: .15rem .4rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    color: var(--txt-1);
}

/* ----------------------------------------------------------
   21. AYARLAR & CRON FORMLARI
   ---------------------------------------------------------- */
.settings-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

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

@media (max-width: 860px) {
    .settings-grid-2,
    .settings-grid-3 {
        grid-template-columns: 1fr;
    }
}

.input-with-action {
    display: flex;
    gap: .5rem;
    align-items: center;
}

.input-with-action input {
    flex: 1;
}

.input-with-action .btn {
    flex-shrink: 0;
    margin-top: 0;
}

.cron-url-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--bg);
    border: 1.5px dashed var(--border-2);
    border-radius: var(--radius);
    padding: .65rem 1rem;
}

.cron-url-text {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: var(--fs-xs);
    color: var(--accent);
    font-weight: 600;
    word-break: break-all;
    user-select: all;
}

.form-hint {
    display: block;
    font-size: var(--fs-xs);
    color: var(--txt-3);
    margin-top: .4rem;
    line-height: 1.4;
}

.form-hint strong {
    color: var(--txt-2);
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mt-2 {
    margin-top: .5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.settings-divider {
    border-top: 1px solid var(--border);
    margin: 2rem 0 1.5rem 0;
    padding-top: 1.25rem;
}

.settings-section-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.25rem;
}

.settings-section-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--accent-soft);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.settings-section-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: .25rem .65rem;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--accent);
    flex-shrink: 0;
}

.settings-section-info h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--txt);
}

.settings-section-info p {
    margin: .2rem 0 0 0;
    font-size: .82rem;
    color: var(--txt-3);
}

/* ----------------------------------------------------------
   22. AI HARCAMA & LOGLAR — STAT KARTLAR / FİLTRE / SAYFALAMA
   ---------------------------------------------------------- */

/* Stat kartları grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

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

@media (max-width: 500px) {
    .stats-grid { grid-template-columns: 1fr; }
}

/* 3'lü Stat kartları grid (2 satır x 3 sütun) */
.stats-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 900px) {
    .stats-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 550px) {
    .stats-grid-3 { grid-template-columns: 1fr; }
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: box-shadow .2s, transform .2s;
}

.stat-card:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,.07);
    transform: translateY(-1px);
}

.stat-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-purple { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }
.stat-icon-green  { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.stat-icon-yellow { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.stat-icon-blue   { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.stat-icon-red    { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.stat-icon-sky    { background: rgba(14, 165, 233, 0.12); color: #0ea5e9; }

.stat-card-body {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    min-width: 0;
}

.stat-card-label {
    font-size: var(--fs-xs);
    color: var(--txt-3);
    font-weight: 500;
    white-space: nowrap;
}

.stat-card-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--txt-1);
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Filtre çubuğu */
.filter-bar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.filter-bar-inner {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: flex-end;
}

.filter-bar-inner .form-group {
    flex: 1 1 160px;
    min-width: 130px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.filter-bar-inner .form-group label {
    margin-bottom: .35rem;
    white-space: nowrap;
}

.filter-bar-inner .form-group input[type="text"],
.filter-bar-inner .form-group input[type="date"],
.filter-bar-inner .form-group select {
    width: 100%;
    height: 38px;
    padding: 0 .85rem;
    box-sizing: border-box;
    line-height: 38px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: var(--fs-sm);
    color: var(--txt-1);
    outline: none;
    transition: border-color var(--t), box-shadow var(--t);
    -webkit-appearance: none;
    appearance: none;
}

.filter-bar-inner .form-group input[type="date"] {
    padding: 0 .75rem;
    color-scheme: light;
}

.filter-bar-inner .form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-color: var(--bg);
    padding-right: 32px;
    cursor: pointer;
}

.filter-bar-inner .form-group input:focus,
.filter-bar-inner .form-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
    background: var(--bg-card);
}

.filter-bar-actions {
    display: flex;
    gap: .5rem;
    align-items: flex-end;
    flex-shrink: 0;
    padding-bottom: 0;
}

.filter-bar-actions .btn {
    height: 38px;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    white-space: nowrap;
}

/* ── Tek Satır Filtre Çubuğu ──────────────────────────────── */
.filter-bar-single-row {
    padding: .85rem 1rem;
}

.filter-bar-inner-nowrap {
    flex-wrap: nowrap !important;
    gap: .6rem;
    overflow-x: auto;
    padding-bottom: 2px;
}

.filter-bar-inner-nowrap .form-group {
    flex: 1 1 auto;
    min-width: 85px;
}

.filter-bar-inner-nowrap .form-group-ara {
    flex: 1.4 1 120px;
    min-width: 110px;
}

.filter-bar-inner-nowrap .form-group-kurum {
    flex: 1.2 1 115px;
    min-width: 105px;
}

.filter-bar-inner-nowrap .form-group-il {
    flex: 0.95 1 95px;
    min-width: 85px;
}

.filter-bar-inner-nowrap .form-group-kat {
    flex: 1.05 1 105px;
    min-width: 95px;
}

.filter-bar-inner-nowrap .form-group-durum {
    flex: 0.85 1 85px;
    min-width: 75px;
}

.filter-bar-inner-nowrap .form-group-hata {
    flex: 1.1 1 110px;
    min-width: 100px;
}

.filter-bar-inner-nowrap .form-group label {
    font-size: 11.5px;
    font-weight: 500;
    margin-bottom: .25rem;
    white-space: nowrap;
}

.filter-bar-inner-nowrap .form-group input,
.filter-bar-inner-nowrap .form-group select {
    height: 35px;
    line-height: 35px;
    font-size: 12.5px;
    padding: 0 .65rem;
}

.filter-bar-inner-nowrap .form-group select {
    padding-right: 24px;
    background-position: right 8px center;
}

.filter-bar-inner-nowrap .filter-bar-actions {
    gap: .35rem;
    flex-shrink: 0;
}

.filter-bar-inner-nowrap .filter-bar-actions .btn {
    height: 35px;
    padding: 0 .75rem;
    font-size: 12.5px;
}

/* Sayfalama */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
}

.pagination-info {
    font-size: var(--fs-sm);
    color: var(--txt-2);
    font-weight: 500;
}

/* Hatalı satır vurgusu */
tr.row-hatali td {
    background: var(--red-bg);
}

tr.row-hatali:hover td {
    background: #fee2e2;
}

/* Hata mesaj kutusu */
.hata-mesaj-kutu {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .9rem 1rem;
    font-size: var(--fs-xs);
    color: var(--red);
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 300px;
    overflow-y: auto;
    line-height: 1.6;
    margin: 0;
}

/* Badge ek renk */
.badge-success {
    background: var(--green-bg);
    color: var(--green);
    border: 1px solid var(--green-bd);
}

.badge-danger {
    background: var(--red-bg);
    color: var(--red);
    border: 1px solid var(--red-bd);
    cursor: pointer;
    transition: opacity .15s;
}

.badge-danger:hover {
    opacity: .8;
}

/* Text utility */
.text-right { text-align: right; }
.font-medium { font-weight: 600; }

/* ----------------------------------------------------------
   23. GENEL BAKIS (DASHBOARD) — QUICK NAV / DURUM BAR
   ---------------------------------------------------------- */

/* Hizli Navigasyon Grid */
.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: .75rem;
}

@media (max-width: 1100px) { .quick-nav-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .quick-nav-grid { grid-template-columns: repeat(2, 1fr); } }

.quick-nav-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: .9rem 1rem;
    text-decoration: none;
    color: var(--txt-1);
    font-size: var(--fs-sm);
    font-weight: 600;
    transition: box-shadow .2s, transform .2s, border-color .2s;
    position: relative;
    overflow: hidden;
}

.quick-nav-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.09);
    transform: translateY(-2px);
    border-color: var(--border-2);
    color: var(--txt-1);
}

.quick-nav-icon {
    width: 40px;
    height: 40px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quick-nav-card span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quick-nav-arrow {
    color: var(--txt-3);
    flex-shrink: 0;
    transition: transform .2s;
}

.quick-nav-card:hover .quick-nav-arrow {
    transform: translateX(3px);
    color: var(--txt-2);
}

/* Stat card alt yazi */
.stat-card-sub {
    font-size: var(--fs-xs);
    color: var(--txt-3);
    font-weight: 400;
    margin-top: .1rem;
}

/* Hatali stat kart vurgusu */
.stat-card-alert {
    border-color: var(--red-bd);
    background: var(--red-bg);
}

.stat-card-alert .stat-card-value {
    color: var(--red);
}

/* Durum bar dagilim */
.durum-bar-grid {
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.durum-bar-item {
    display: grid;
    grid-template-columns: 180px 1fr 50px;
    align-items: center;
    gap: .75rem;
}

@media (max-width: 600px) {
    .durum-bar-item { grid-template-columns: 140px 1fr 44px; }
}

.durum-bar-label {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: var(--fs-sm);
    font-weight: 500;
}

.durum-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.durum-bar-track {
    height: 8px;
    background: var(--bg);
    border-radius: 99px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.durum-bar-fill {
    height: 100%;
    border-radius: 99px;
    transition: width .5s ease;
}

.durum-bar-oran {
    font-size: var(--fs-xs);
    color: var(--txt-3);
    text-align: right;
    font-weight: 500;
}

/* Card header action (sag taraf buton) */
.card-header-action {
    margin-left: auto;
    flex-shrink: 0;
}

/* Kopyala butonu gecici success */
.btn-success-temp {
    background: var(--green-bg) !important;
    color: var(--green) !important;
    border-color: var(--green-bd) !important;
}

/* ----------------------------------------------------------
   24. BOTLAR LİSTESİ
   ---------------------------------------------------------- */

/* Durum Noktası */
.durum-nokta {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.durum-nokta-yesil {
    background: var(--green);
    box-shadow: 0 0 0 3px var(--green-bg);
}

.durum-nokta-kirmizi {
    background: var(--red);
    box-shadow: 0 0 0 3px var(--red-bg);
    animation: nokta-yanip-son .2s ease infinite alternate;
}

.durum-nokta-gri {
    background: var(--txt-3);
    box-shadow: 0 0 0 3px var(--bg-hover);
    opacity: .6;
}

@keyframes nokta-yanip-son {
    from { opacity: 1; }
    to   { opacity: .45; }
}

/* Bot Çalışma Durumu Rozeti (Sadece Nokta + Saat) */
.bot-durum-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    background: var(--bg-subtle, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--border);
    border-radius: var(--radius-sm, 6px);
    cursor: pointer;
    user-select: none;
    transition: all .15s ease;
}

.bot-durum-pill:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover, var(--border));
    transform: translateY(-1px);
}

.bot-durum-saat {
    font-size: .75rem;
    font-weight: 500;
    color: var(--txt-2);
    font-variant-numeric: tabular-nums;
    letter-spacing: .2px;
}

/* Floating Custom Tooltip */
.bot-custom-tooltip {
    position: fixed;
    z-index: 999999;
    pointer-events: none;
    background: var(--bg-card, #111827);
    border: 1px solid var(--border-hover, rgba(255, 255, 255, 0.15));
    box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.5), 0 6px 12px -3px rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    padding: 10px 12px;
    min-width: 220px;
    max-width: 320px;
    color: var(--txt, #f3f4f6);
    font-size: 12px;
    line-height: 1.4;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
}

.bot-custom-tooltip.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bot-custom-tooltip .bct-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

.bot-custom-tooltip .bct-title {
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--txt-3, #9ca3af);
}

.bot-custom-tooltip .bct-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    font-size: 11px;
}

.bot-custom-tooltip .bct-time {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--txt-2, #e5e7eb);
    font-size: 12px;
}

.bot-custom-tooltip .bct-error {
    margin-top: 8px;
    padding: 6px 8px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    color: #fca5a5;
    font-size: 11px;
    word-break: break-word;
    line-height: 1.35;
}

/* Eski çalışma durumu fallback */
.calisma-durumu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .25rem;
}

/* Bot adı + URL stack */
.bot-ad {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.bot-url-link {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    text-decoration: none;
    color: var(--txt-3);
    font-size: var(--fs-xs);
    transition: color .15s;
}

.bot-url-link:hover {
    color: var(--accent);
}

/* Kurum / Kategori badge stack (Daha küçük) */
.bot-meta-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .2rem;
}

.bot-meta-stack .badge {
    font-size: .65rem;
    font-weight: 500;
    padding: .12rem .4rem;
    gap: .25rem;
    line-height: 1.15;
    border-radius: 4px;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bot-meta-stack .badge svg {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
}

/* Kurulum Adımı Stack (2/3 üstte, etiket altta) */
.kurulum-durum-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .2rem;
}

.kurulum-durum-stack .badge {
    font-size: .68rem;
    font-weight: 600;
    padding: .1rem .4rem;
    line-height: 1.2;
    border-radius: 4px;
}

.kurulum-adim-etiket {
    font-size: .72rem;
    color: var(--txt-3);
    line-height: 1.2;
    white-space: nowrap;
}

/* Tür Badgeleri (Küçük boyut + renkli noktalar) */
.badge-tur {
    font-size: .65rem;
    font-weight: 600;
    padding: .12rem .45rem;
    line-height: 1.15;
    border-radius: 4px;
    letter-spacing: .02em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-tur::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Otomatik -> Mavi (Accent) */
.badge-tur-otomatik {
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid var(--accent-muted);
}
.badge-tur-otomatik::before {
    background: var(--accent);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* HTML -> Turuncu / Amber */
.badge-tur-html {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}
.badge-tur-html::before {
    background: #ea580c;
    box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.2);
}

/* JSON -> Yeşil / Emerald */
.badge-tur-json {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
.badge-tur-json::before {
    background: #059669;
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.2);
}

/* XML -> Sarı / Altın */
.badge-tur-rss,
.badge-tur-xml {
    background: #fefce8;
    color: #a16207;
    border: 1px solid #fef08a;
}
.badge-tur-rss::before,
.badge-tur-xml::before {
    background: #ca8a04;
    box-shadow: 0 0 0 2px rgba(202, 138, 4, 0.2);
}

/* Varsayılan */
.badge-tur-default {
    background: var(--bg);
    color: var(--txt-2);
    border: 1px solid var(--border);
}
.badge-tur-default::before {
    background: var(--txt-3);
}

/* badge-gray */
.badge-gray {
    background: var(--bg);
    color: var(--txt-2);
    border: 1px solid var(--border);
}

/* Sayfalama numaraları */
.pagination-numbers {
    display: flex;
    align-items: center;
    gap: .3rem;
}

.pagination-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--txt-2);
    font-size: var(--fs-sm);
    font-weight: 500;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
}

.pagination-num:hover {
    background: var(--accent-soft);
    border-color: var(--accent-muted);
    color: var(--accent);
}

.pagination-num.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 700;
    pointer-events: none;
}

.pagination-dots {
    color: var(--txt-3);
    font-size: var(--fs-sm);
    padding: 0 .2rem;
}

/* text-center utility */
.text-center { text-align: center; }

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

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: fadeIn .15s ease;
}
.modal-overlay.active { display: flex; }

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0,0,0,.35);
    animation: slideUp .2s ease;
}
.modal.modal-lg { max-width: 780px; }

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.modal-title { font-size: 1.05rem; font-weight: 600; margin: 0; }

.btn-modal-kapat {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: .25rem .4rem;
    border-radius: var(--radius);
    line-height: 1;
    transition: background .15s, color .15s;
}
.btn-modal-kapat:hover { background: var(--bg-hover); color: var(--text); }

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    display: flex;
    gap: .75rem;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

/* ============================================================
   FORM SECTON & HELPERS (modal icin)
   ============================================================ */
.form-section { margin-bottom: 1.5rem; }
.form-section:last-child { margin-bottom: 0; }
.form-section-title {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--border);
}

.form-row { display: flex; gap: 1rem; flex-direction: column; }
.form-row-2 { flex-direction: row; }
.form-row-3 { flex-direction: row; }
.form-row-4 { flex-direction: row; }
.form-row-2 .form-group,
.form-row-3 .form-group,
.form-row-4 .form-group { flex: 1; min-width: 0; }

.required { color: var(--red); }
.font-mono { font-family: 'Consolas', 'Monaco', monospace; font-size: .85rem; }

/* Gelismis toggle */
.btn-gelismis-toggle {
    background: none;
    border: 1px dashed var(--border);
    color: var(--accent);
    padding: .5rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: .85rem;
    font-weight: 500;
    width: 100%;
    text-align: left;
    transition: background .15s, border-color .15s;
}
.btn-gelismis-toggle:hover { background: var(--bg-hover); border-color: var(--accent); }

.gelismis-body { margin-top: 1rem; display: flex; flex-direction: column; gap: 1rem; }
.gelismis-body.collapsed { display: none; }

/* KV (Key-Value) rows */
.kv-header {
    display: grid;
    grid-template-columns: 1fr 1fr 28px;
    gap: .375rem;
    padding: 0 0 .35rem;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    margin-bottom: .5rem;
}
.kv-header span:last-child { display: none; }

.kv-container { display: flex; flex-direction: column; gap: .375rem; width: 100%; box-sizing: border-box; }

.kv-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 28px;
    gap: .375rem;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}
.kv-row .form-control {
    padding: .35rem .6rem;
    font-size: .82rem;
    height: auto;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}
.kv-row .kv-key  { font-family: 'Consolas', 'Monaco', monospace; }

.btn-kv-sil {
    background: none;
    border: 1px solid transparent;
    color: var(--text-muted);
    cursor: pointer;
    padding: .25rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    transition: color .15s, background .15s, border-color .15s;
}
.btn-kv-sil:hover {
    color: var(--red);
    background: var(--red-bg);
    border-color: var(--red-bd, var(--border));
}

/* empty / hint states */
.kv-empty-note {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--text-muted);
    font-size: .85rem;
    padding: .75rem 0;
}
.form-hint {
    font-size: .75rem;
    color: var(--text-muted);
    margin-top: .3rem;
}

/* body tab disabled state */
.adv-tab-btn.tab-disabled {
    opacity: .45;
    cursor: not-allowed;
}
.adv-tab-btn.tab-disabled:hover {
    background: transparent;
    color: var(--text-muted);
}


/* mt-1 utility */
.mt-1 { margin-top: .25rem; }

/* mt-2 utility */
.mt-2 { margin-top: .5rem; }

/* mt-3 utility */
.mt-3 { margin-top: .75rem; }

/* mt-4 utility */
.mt-4 { margin-top: 1.25rem; }

/* ============================================================
   GELISMIS SECENEKLER — TAB
   ============================================================ */
.adv-tabs {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.adv-tab-nav {
    display: flex;
    background: var(--bg-hover);
    border-bottom: 1px solid var(--border);
}

.adv-tab-btn {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: .6rem 1rem;
    font-size: .82rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: color .15s, border-color .15s, background .15s;
    margin-bottom: -1px;
    white-space: nowrap;
}
.adv-tab-btn:hover { color: var(--text); background: var(--bg-card); }
.adv-tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: var(--bg-card);
}

.adv-tab-panel {
    display: none;
    padding: 1rem;
}
.adv-tab-panel.active { display: block; }

/* ============================================================
   BOT URL SATIRI — Postman tarzı Method + URL tek satır
   ============================================================ */
.bot-url-row {
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* Method select — form-group select ile aynı stiller */
.bot-method-select {
    flex: 0 0 90px;
    width: 90px;
    box-sizing: border-box;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: .6rem .5rem;
    padding-right: 1.8rem;
    font-family: var(--font);
    font-size: var(--fs-sm);
    font-weight: 600;
    line-height: 1.5;
    color: var(--accent);
    outline: none;
    cursor: pointer;
    transition: border-color var(--t), box-shadow var(--t);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}
.bot-method-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

/* URL input — form-group input ile aynı stiller */
.bot-url-wrap {
    flex: 1;
    min-width: 0;
}
.bot-url-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: .6rem .85rem;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: .83rem;
    line-height: 1.5;
    color: var(--txt-1);
    outline: none;
    transition: border-color var(--t), box-shadow var(--t);
}
.bot-url-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.bot-url-input::placeholder {
    color: var(--txt-3);
}

/* ============================================================
   26. FULLSCREEN BOT STUDIO WIZARD
   (Stüdyoya ait tüm stiller public/assets/css/bot_studio.css dosyasına taşınmıştır)
   ============================================================ */

/* ============================================================
   27. İL & İLÇE YÖNETİMİ (LOKASYONLAR)
   ============================================================ */
.lokasyon-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 1.25rem;
    align-items: start;
}
@media (max-width: 992px) {
    .lokasyon-grid {
        grid-template-columns: 1fr;
    }
}

.lokasyon-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.lokasyon-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--txt-1);
}
.lokasyon-card-desc {
    font-size: var(--fs-xs);
    color: var(--txt-3);
    margin: 0.25rem 0 0 0;
}

/* İl & İlçe Arama Çubuğu ve Input Stilleri */
.lokasyon-search-bar {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}
.lokasyon-search-wrap {
    position: relative;
    width: 100%;
}
.lokasyon-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--txt-3);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--t);
}
.lokasyon-search-input {
    width: 100%;
    box-sizing: border-box;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem 0.85rem 0.5rem 2.25rem;
    font-family: var(--font);
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--txt-1);
    outline: none;
    transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.lokasyon-search-input::placeholder {
    color: var(--txt-3);
    font-size: var(--fs-xs);
}
.lokasyon-search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background: var(--bg-card);
}
.lokasyon-search-wrap:focus-within .lokasyon-search-icon {
    color: var(--accent);
}

/* Tablo Stilleri */
.lokasyon-table-scroll {
    max-height: 640px;
    overflow-y: auto;
}
.lokasyon-table {
    margin: 0;
    width: 100%;
}
.lokasyon-table th.col-plaka { width: 55px; }
.lokasyon-table th.col-ilceler { text-align: center; width: 75px; }
.lokasyon-table th.col-durum { text-align: center; width: 70px; }
.lokasyon-table th.col-islem { text-align: right; width: 85px; }
.lokasyon-table td.col-center { text-align: center; }
.lokasyon-table td.col-right { text-align: right; white-space: nowrap; }

.lokasyon-row-active {
    background: rgba(37, 99, 235, 0.08) !important;
    font-weight: 600;
}
.lokasyon-row-active:hover {
    background: rgba(37, 99, 235, 0.12) !important;
}

.lokasyon-plaka-badge {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 2px 7px;
}

.lokasyon-il-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color var(--t);
}
.lokasyon-il-link:hover {
    color: var(--accent);
}
.lokasyon-il-link.is-active {
    color: var(--accent);
    font-weight: 600;
}

.lokasyon-ilce-name {
    color: var(--txt-1);
    font-weight: 500;
}

.lokasyon-badge-count {
    font-size: 0.72rem;
}
.lokasyon-badge-status {
    font-size: 0.68rem;
    padding: 2px 6px;
}

/* Boş Durum & Uyarı Stilleri */
.lokasyon-empty-wrap {
    padding: 2.5rem 1.25rem;
    text-align: center;
}
.lokasyon-empty-icon {
    color: var(--txt-3);
    margin-bottom: 0.5rem;
}
.lokasyon-empty-title {
    font-weight: 600;
    color: var(--txt-1);
    margin-bottom: 0.25rem;
}
.lokasyon-empty-desc {
    font-size: var(--fs-xs);
    color: var(--txt-3);
    margin: 0;
}
.lokasyon-alert-warning {
    font-size: var(--fs-xs);
    color: var(--red);
    margin-top: 0.5rem;
}

/* ----------------------------------------------------------
   24. İL & İLÇE KAPSAMA VE BOT DAĞILIM TABLOSU
   ---------------------------------------------------------- */
.coverage-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.coverage-table th {
    background: var(--bg-hover);
    padding: 0.85rem 1rem;
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--txt-3);
    text-transform: uppercase;
    letter-spacing: .05em;
    border-bottom: 1px solid var(--border);
}

.coverage-table td {
    padding: 1rem;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
}

.coverage-table tbody tr:hover td {
    background: rgba(0, 0, 0, 0.015);
}

/* İl Hücresi */
.il-cell-box {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 155px;
}

.il-header-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.il-plaka-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 700;
    color: var(--txt-1);
    flex-shrink: 0;
}

.il-name-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--txt-1);
    letter-spacing: -0.01em;
}

.il-bot-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 6px;
    width: fit-content;
}

.il-bot-badge.has-bot {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.il-bot-badge.no-bot {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Kapsama / İlerleme Çubuğu */
.coverage-progress-box {
    min-width: 160px;
    max-width: 220px;
}

.coverage-percent-val {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
}

.coverage-progress-track {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    overflow: hidden;
    margin: 0.4rem 0 0.35rem 0;
}

.coverage-progress-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.coverage-progress-fill.fill-100 {
    background: linear-gradient(90deg, #10b981, #059669);
}

.coverage-progress-fill.fill-mid {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.coverage-progress-fill.fill-low {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.coverage-progress-fill.fill-0 {
    background: #ef4444;
    width: 4px !important;
}

/* İlçe Hapları (Pills) */
.district-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.district-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    font-size: 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    user-select: none;
    overflow: hidden;
}

.district-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.07);
}

.district-pill .district-name {
    padding: 0.28rem 0.55rem;
    font-weight: 500;
    color: var(--txt-2);
}

.district-pill .district-count {
    padding: 0.28rem 0.6rem;
    font-weight: 700;
    font-size: 11px;
    min-width: 22px;
    text-align: center;
    border-left: 1px solid var(--border);
}

/* 0 BOTU OLANLAR KIRMIZI */
.district-pill.pill-no-bot {
    border-color: rgba(239, 68, 68, 0.25);
    background: rgba(239, 68, 68, 0.03);
}

.district-pill.pill-no-bot .district-name {
    color: var(--txt-3);
}

.district-pill.pill-no-bot .district-count {
    background: rgba(239, 68, 68, 0.14);
    color: #ef4444;
    border-left-color: rgba(239, 68, 68, 0.2);
}

/* BOTU OLANLAR YEŞİL */
.district-pill.pill-has-bot {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.04);
}

.district-pill.pill-has-bot .district-name {
    color: var(--txt-1);
    font-weight: 600;
}

.district-pill.pill-has-bot .district-count {
    background: #10b981;
    color: #ffffff;
    border-left-color: rgba(16, 185, 129, 0.5);
}

/* Pasif bot var ama aktif yok → turuncu */
.district-pill.pill-passive-bot {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.04);
}

.district-pill.pill-passive-bot .district-name {
    color: var(--txt-1);
    font-weight: 600;
}

.district-pill.pill-passive-bot .district-count {
    background: #f59e0b;
    color: #ffffff;
    border-left-color: rgba(245, 158, 11, 0.5);
}

/* ============================================================
   28. BOT ZAMANLAMA & KUYRUK TABLOSU
   ============================================================ */
.stats-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
@media (max-width: 1200px) {
    .stats-grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .stats-grid-5 { grid-template-columns: 1fr; }
}

.kuyruk-ceyreklik-mini-bar {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}
.mini-bar-item {
    font-size: 0.70rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}
.mini-bar-siyah { background: rgba(15, 23, 42, 0.08); color: #0f172a; border: 1px solid rgba(15, 23, 42, 0.25); }
[data-theme="dark"] .mini-bar-siyah { background: rgba(30, 41, 59, 0.7); color: #f8fafc; border-color: #475569; }
.mini-bar-kirmizi { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.mini-bar-turuncu { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.mini-bar-yesil { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.mini-bar-gri { background: rgba(100, 116, 139, 0.15); color: #64748b; border: 1px solid rgba(100, 116, 139, 0.3); }
[data-theme="dark"] .mini-bar-gri { color: #94a3b8; border-color: #475569; }

/* Arama Kutusu */
.kuyruk-search-input {
    width: 100%;
    padding: 7px 32px 7px 12px;
    font-size: 0.85rem;
    background: var(--bg-primary, #ffffff);
    border: 1px solid var(--border, #cbd5e1);
    border-radius: 6px;
    color: var(--txt-1, #1e293b);
    outline: none;
    transition: all 0.2s ease;
}
.kuyruk-search-input:focus {
    border-color: var(--primary, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Zaman Bölümü Kolonu */
.kuyruk-zaman-td {
    vertical-align: top;
    padding: 12px 14px !important;
    background: rgba(248, 250, 252, 0.5);
    border-right: 1px solid var(--border, #e2e8f0);
}
.kuyruk-zaman-kutu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: sticky;
    top: 10px;
}
.kuyruk-zaman-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: var(--text-muted, #64748b);
}
.kuyruk-meta-saat {
    display: flex;
    align-items: center;
    gap: 3px;
    font-family: monospace;
}
.kuyruk-meta-adet {
    background: rgba(148, 163, 184, 0.15);
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 10.5px;
}

/* Bot Kartları Kolonu */
.kuyruk-botlar-td {
    vertical-align: top;
    padding: 10px 14px !important;
}
.kuyruk-bot-grid {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.kuyruk-bot-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    border-radius: 6px;
    background: var(--bg-primary, #ffffff);
    border: 1px solid var(--border, #f1f5f9);
    transition: all 0.15s ease;
}
.kuyruk-bot-card:hover {
    background: var(--bg-secondary, #f8fafc);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.kuyruk-bot-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}
.kuyruk-bot-id {
    font-size: 11px;
    color: var(--text-muted, #94a3b8);
    font-family: monospace;
    background: rgba(148, 163, 184, 0.1);
    padding: 1px 5px;
    border-radius: 4px;
    flex-shrink: 0;
}
.kuyruk-bot-link {
    color: var(--txt-1, #0f172a);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s ease;
}
.kuyruk-bot-link:hover {
    color: var(--primary, #2563eb);
    text-decoration: underline;
}
.kuyruk-bot-hacim {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-shrink: 0;
    margin-left: 14px;
}
.kuyruk-hacim-sayi {
    font-weight: 700;
    font-size: 13px;
    color: #0284c7;
    font-family: monospace;
}
.kuyruk-hacim-birim {
    font-size: 11px;
    color: var(--text-muted, #64748b);
}

/* Badge Renkleri */
.badge-q-siyah {
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.25);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
}
[data-theme="dark"] .badge-q-siyah {
    background: rgba(30, 41, 59, 0.7);
    color: #f8fafc;
    border-color: #475569;
}
.badge-q-kirmizi {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.35);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    width: fit-content;
}
.badge-q-turuncu {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    width: fit-content;
}
.badge-q-yesil {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    width: fit-content;
}
.badge-q-gri {
    background: rgba(100, 116, 139, 0.15);
    color: #64748b;
    border: 1px solid rgba(100, 116, 139, 0.35);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    width: fit-content;
}
[data-theme="dark"] .badge-q-gri {
    color: #94a3b8;
    border-color: #475569;
}
.badge-pulse-hemen {
    animation: pulseHemen 2s infinite ease-in-out;
}
@keyframes pulseHemen {
    0%, 100% { box-shadow: 0 0 0 0 rgba(15, 23, 42, 0.4); }
    50% { box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.1); }
}

/* ─────────────────────────────────────────────────────────────
   28.1. BOT KUYRUĞU ZAMAN DİLİMİ DAĞILIM BARI & PİLLERİ
   ───────────────────────────────────────────────────────────── */
.kuyruk-dagilim-wrap {
    padding: 14px 20px 16px 20px;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    background: rgba(248, 250, 252, 0.6);
}
[data-theme="dark"] .kuyruk-dagilim-wrap {
    background: rgba(15, 23, 42, 0.4);
}
.kuyruk-dagilim-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
}
.kuyruk-dagilim-baslik {
    font-weight: 600;
    color: var(--text-muted, #64748b);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.kuyruk-dagilim-ozet {
    color: var(--text-color, #334155);
    font-weight: 600;
}
.kuyruk-progress-bar {
    display: flex;
    width: 100%;
    height: 32px;
    border-radius: 8px;
    overflow: hidden;
    background: #e2e8f0;
    gap: 1px;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}
[data-theme="dark"] .kuyruk-progress-bar {
    background: #1e293b;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}
.kuyruk-bar-dilim {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: transform 0.15s ease, filter 0.15s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    min-width: 4px;
}
.kuyruk-bar-dilim:hover {
    filter: brightness(1.2);
    transform: scaleY(1.08);
    z-index: 5;
}
.bar-seg-siyah {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    box-shadow: inset 0 0 6px rgba(15, 23, 42, 0.6);
}
.bar-seg-hemen {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    box-shadow: inset 0 0 6px rgba(15, 23, 42, 0.6);
}
.bar-seg-kirmizi {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
}
.bar-seg-turuncu {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}
.bar-seg-yesil {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}
.bar-seg-gri {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
}
.kuyruk-bar-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 4px;
    pointer-events: none;
}
.kuyruk-bar-tooltip {
    position: fixed;
    background: #0f172a;
    color: #f8fafc;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
    pointer-events: none;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    z-index: 99999;
    transform: translate(-50%, -100%);
    margin-top: -10px;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: opacity 0.15s ease;
}
.kuyruk-dagilim-pills {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}
.kuyruk-dagilim-pills::-webkit-scrollbar {
    height: 4px;
}
.kuyruk-dagilim-pills::-webkit-scrollbar-thumb {
    background: var(--border-color, #cbd5e1);
    border-radius: 4px;
}
.kuyruk-pill-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    white-space: nowrap;
    cursor: pointer;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    color: var(--text-color, #334155);
    transition: all 0.15s ease;
}
.kuyruk-pill-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.kuyruk-pill-item.pill-static {
    cursor: default;
    user-select: none;
}
.kuyruk-pill-item.pill-static:hover {
    transform: none;
    box-shadow: none;
}
.kuyruk-pill-item.pill-siyah {
    border-left: 3px solid #0f172a;
    background: rgba(15, 23, 42, 0.05);
}
[data-theme="dark"] .kuyruk-pill-item.pill-siyah {
    border-left: 3px solid #94a3b8;
    background: rgba(30, 41, 59, 0.5);
    color: #f1f5f9;
}
.kuyruk-pill-item.pill-kirmizi {
    border-left: 3px solid #ef4444;
}
.kuyruk-pill-item.pill-turuncu {
    border-left: 3px solid #f59e0b;
}
.kuyruk-pill-item.pill-yesil {
    border-left: 3px solid #10b981;
}
.kuyruk-pill-item.pill-gri {
    border-left: 3px solid #64748b;
}
.kuyruk-pill-item .pill-sure {
    font-weight: 600;
}
.kuyruk-pill-item .pill-deger {
    color: var(--text-muted, #64748b);
}
.kuyruk-pill-item .pill-deger strong {
    color: var(--text-color, #0f172a);
}
[data-theme="dark"] .kuyruk-pill-item .pill-deger strong {
    color: #f1f5f9;
}
.kuyruk-row-highlight {
    animation: kuyrukRowFlash 2.5s ease-out forwards;
}
@keyframes kuyrukRowFlash {
    0% { background-color: rgba(16, 185, 129, 0.25); }
    50% { background-color: rgba(16, 185, 129, 0.15); }
    100% { background-color: transparent; }
}