/* e-Nabız Bildirim Sistemi - Ortak Stil
   kod6m tasarım diliyle uyumlu: açık gri-mavi zemin, zümrüt yeşili vurgu,
   slate header/footer, Manrope/Inter/JetBrains Mono font stack. */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: #dfe6ee;
    color: #1e293b;
    font-family: 'Inter', 'Manrope', -apple-system, sans-serif;
    line-height: 1.5;
}

.header {
    background: #1e293b;
    color: #f1f5f9;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header .brand { font-weight: 700; font-size: 18px; letter-spacing: 0.02em; }
.header .brand span { color: #10b981; }

.container {
    max-width: 720px;
    margin: 40px auto;
    padding: 0 16px;
}

.container.wide { max-width: 1180px; }

.card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 28px;
    margin-bottom: 20px;
}

h1 { font-family: 'Manrope', sans-serif; font-weight: 800; letter-spacing: -0.01em; font-size: 22px; margin-bottom: 6px; }
h2 { font-size: 17px; margin-bottom: 12px; color: #334155; }
p.subtitle { color: #64748b; margin-bottom: 20px; font-size: 14px; }

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
    margin-top: 16px;
}

input[type=text], input[type=tel], input[type=email], input[type=date],
input[type=password], select, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: #f8fafc;
}

textarea { resize: vertical; min-height: 80px; }

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #059669;
    background: #ffffff;
}

.btn {
    display: inline-block;
    background: #059669;
    color: #ffffff;
    border: none;
    padding: 11px 22px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 22px;
    text-decoration: none;
}
.btn:hover { background: #047857; }
.btn.secondary { background: #64748b; }
.btn.secondary:hover { background: #475569; }
.btn.danger { background: #dc2626; }
.btn.small { padding: 6px 12px; font-size: 12px; margin-top: 0; }

.kvkk-box {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 14px;
    max-height: 180px;
    overflow-y: auto;
    font-size: 12.5px;
    color: #475569;
    margin-top: 16px;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    font-size: 13px;
}
.checkbox-row input { width: auto; margin-top: 3px; }

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
}
.alert.error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert.success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.alert.info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

.bildirim-no {
    font-family: 'JetBrains Mono', monospace;
    font-size: 24px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px dashed #10b981;
    padding: 14px 20px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}

.footer {
    text-align: center;
    color: #64748b;
    font-size: 12px;
    padding: 24px;
}

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px 12px; border-bottom: 1px solid #e2e8f0; text-align: left; }
th { background: #f1f5f9; color: #334155; font-weight: 600; }
tr:hover td { background: #f8fafc; }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.badge.YENI { background: #fef3c7; color: #92400e; }
.badge.INCELENIYOR { background: #dbeafe; color: #1e40af; }
.badge.COZULDU { background: #d1fae5; color: #065f46; }
.badge.COZULEMEDI { background: #fee2e2; color: #991b1b; }
.badge.GECERSIZ { background: #e2e8f0; color: #475569; }

.badge.yuksek { background: #fee2e2; color: #991b1b; }
.badge.orta { background: #fef3c7; color: #92400e; }
.badge.dusuk { background: #e2e8f0; color: #475569; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.stat-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 18px;
}
.stat-card .num { font-size: 26px; font-weight: 700; color: #059669; font-family: 'JetBrains Mono', monospace; }
.stat-card .label { font-size: 12px; color: #64748b; margin-top: 4px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.filters select, .filters input { width: auto; }

.top-nav { display: flex; gap: 18px; font-size: 13px; }
.top-nav a { color: #cbd5e1; text-decoration: none; }
.top-nav a:hover { color: #10b981; }

.masked-note { font-size: 11px; color: #94a3b8; margin-top: 2px; }

/* =====================================================================
   PUBLIC (Hasta) SAYFALARI — Profesyonel görünüm + animasyonlar
   ===================================================================== */

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.6); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes drawCheck {
    from { stroke-dashoffset: 40; }
    to   { stroke-dashoffset: 0; }
}
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@media (prefers-reduced-motion: reduce) {
    .fade-up, .scale-in { animation: none !important; }
}

.hosp-header {
    background: linear-gradient(120deg, #0f172a 0%, #1e293b 55%, #0f3d31 100%);
    color: #f1f5f9;
    padding: 26px 24px;
    position: relative;
    overflow: hidden;
}
.hosp-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(16,185,129,0.55), transparent);
    background-size: 200% 100%;
    height: 2px;
    top: auto;
    bottom: 0;
    animation: shimmer 3.5s linear infinite;
}
.hosp-header .ekg-wrap { max-width: 720px; margin: 10px auto 0; height: 28px; }
.hosp-header-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
}
.hosp-crest {
    width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 15px; color: #fff;
    box-shadow: 0 4px 14px rgba(5,150,105,0.35);
}
.hosp-title { font-size: 17px; font-weight: 700; line-height: 1.3; }
.hosp-title small { display: block; font-weight: 500; font-size: 12px; color: #94a3b8; margin-top: 2px; }
.hosp-nav { margin-left: auto; display: flex; gap: 16px; font-size: 12.5px; }
.hosp-nav a { color: #cbd5e1; text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid transparent; transition: border-color .15s ease, color .15s ease; }
.hosp-nav a:hover { color: #34d399; border-color: #34d399; }

.fade-up { animation: fadeUp 0.5s ease both; }
.scale-in { animation: scaleIn 0.45s cubic-bezier(.2,1.4,.4,1) both; }

.form-section {
    border-top: 1px solid #e2e8f0;
    padding-top: 18px;
    margin-top: 18px;
}
.form-section:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.form-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 4px;
}
.form-section-title svg { width: 17px; height: 17px; color: #059669; flex-shrink: 0; }
.form-section-desc { font-size: 12px; color: #64748b; margin-bottom: 4px; }

.field-error {
    font-size: 11.5px;
    color: #b91c1c;
    margin-top: 4px;
    display: none;
}
.field-error.show { display: block; }
input.invalid, select.invalid { border-color: #dc2626 !important; background: #fef2f2 !important; }
input.valid { border-color: #10b981 !important; }

.success-check {
    width: 76px; height: 76px; margin: 0 auto 6px;
    border-radius: 50%;
    background: #ecfdf5;
    display: flex; align-items: center; justify-content: center;
}
.success-check svg { width: 38px; height: 38px; }
.success-check circle { stroke-dasharray: 76; stroke-dashoffset: 76; animation: drawCheck 0.6s ease 0.15s forwards; }
.success-check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: drawCheck 0.4s ease 0.6s forwards; }

.trust-row {
    display: flex;
    gap: 18px;
    justify-content: center;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    font-size: 11.5px;
    color: #64748b;
}
.trust-row .item { display: flex; align-items: center; gap: 6px; }
.trust-row svg { width: 15px; height: 15px; color: #059669; }

/* =====================================================================
   PUBLIC PRO LAYOUT — iki sütunlu, EKG imzalı profesyonel görünüm
   ===================================================================== */

.pro-header {
    background: linear-gradient(125deg, #0b1f1a 0%, #123527 48%, #0f2e24 100%);
    color: #f1f5f9;
    position: relative;
    overflow: hidden;
}
.pro-header-top {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 28px 0;
}
.pro-header-bottom {
    max-width: 1080px;
    margin: 0 auto;
    padding: 22px 28px 34px;
}
.pro-header-bottom h1 {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    letter-spacing: -0.01em;
    max-width: 560px;
    line-height: 1.25;
    color: #fff;
}
.pro-header-bottom p {
    font-size: 13.5px;
    color: #a7c4b8;
    max-width: 520px;
    margin-top: 8px;
    line-height: 1.5;
}
.pro-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pro-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    color: #d1e7de;
    font-size: 11.5px; font-weight: 600;
    padding: 5px 11px; border-radius: 999px;
}
.pro-badge svg { width: 13px; height: 13px; color: #34d399; }

.ekg-wrap { position: relative; height: 42px; margin-top: 4px; }
.ekg-wrap svg { width: 100%; height: 100%; display: block; }
.ekg-line {
    fill: none;
    stroke: #34d399;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 6 340;
    stroke-dashoffset: 0;
    animation: ekgTravel 3.2s linear infinite;
    filter: drop-shadow(0 0 4px rgba(52,211,153,0.65));
}
.ekg-line.ekg-ghost {
    stroke: rgba(148, 197, 176, 0.28);
    stroke-dasharray: none;
    animation: none;
    filter: none;
}
@keyframes ekgTravel {
    from { stroke-dashoffset: 0; }
    to   { stroke-dashoffset: -346; }
}
@media (prefers-reduced-motion: reduce) {
    .ekg-line { animation: none; stroke-dasharray: none; }
}

.pro-shell {
    max-width: 1080px;
    margin: -30px auto 0;
    padding: 0 28px 50px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 22px;
    align-items: start;
    position: relative;
    z-index: 2;
}

.pro-info-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 24px 22px;
    box-shadow: 0 10px 30px rgba(15,23,42,0.08);
    position: sticky;
    top: 24px;
}
.pro-info-card h3 {
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 14px;
}
.pro-step {
    display: flex;
    gap: 12px;
    position: relative;
    padding-bottom: 22px;
}
.pro-step:last-child { padding-bottom: 0; }
.pro-step::before {
    content: "";
    position: absolute;
    left: 13px; top: 28px; bottom: 0;
    width: 1.5px;
    background: #e2e8f0;
}
.pro-step:last-child::before { display: none; }
.pro-step-num {
    width: 27px; height: 27px; border-radius: 50%; flex-shrink: 0;
    background: #ecfdf5; color: #059669; border: 1.5px solid #a7f3d0;
    display: flex; align-items: center; justify-content: center;
    font-size: 12.5px; font-weight: 800; font-family: 'JetBrains Mono', monospace;
}
.pro-step-title { font-size: 13px; font-weight: 700; color: #1e293b; }
.pro-step-desc { font-size: 12px; color: #64748b; margin-top: 2px; line-height: 1.45; }

.pro-emergency {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
}
.pro-emergency strong { color: #b91c1c; }

.pro-form-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 30px 32px;
    box-shadow: 0 10px 30px rgba(15,23,42,0.08);
}

.pro-section {
    display: flex;
    gap: 16px;
    position: relative;
    padding-bottom: 28px;
}
.pro-section::before {
    content: "";
    position: absolute;
    left: 17px; top: 40px; bottom: 4px;
    width: 1.5px;
    background: #e2e8f0;
}
.pro-section:last-of-type::before { display: none; }
.pro-section-num {
    width: 35px; height: 35px; border-radius: 10px; flex-shrink: 0;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px; font-family: 'JetBrains Mono', monospace;
    box-shadow: 0 3px 10px rgba(5,150,105,0.3);
}
.pro-section-body { flex: 1; min-width: 0; }
.pro-section-head { font-size: 15px; font-weight: 700; color: #1e293b; padding-top: 6px; }
.pro-section-sub { font-size: 12.5px; color: #64748b; margin-top: 2px; margin-bottom: 4px; }

@media (max-width: 860px) {
    .pro-shell { grid-template-columns: 1fr; margin-top: -20px; }
    .pro-info-card { position: static; }
    .pro-form-card { padding: 22px 18px; }
}

/* =====================================================================
   WIN11 / FLUENT DESIGN — Admin Panel
   Mica arkaplan, acrylic yüzeyler, sidebar navigasyon, yuvarlatılmış
   köşeler. Marka rengi (zümrüt yeşili) Fluent'in accent rolüne oturtuldu.
   ===================================================================== */

:root {
    --w11-accent: #059669;
    --w11-accent-light: #10b981;
    --w11-accent-tint: rgba(5, 150, 105, 0.10);
    --w11-accent-tint-strong: rgba(5, 150, 105, 0.16);
    --w11-bg-mica: linear-gradient(160deg, #eef2f1 0%, #e7ede9 38%, #eef3f5 100%);
    --w11-surface: rgba(255, 255, 255, 0.72);
    --w11-surface-solid: #ffffff;
    --w11-border: rgba(15, 23, 42, 0.08);
    --w11-border-strong: rgba(15, 23, 42, 0.14);
    --w11-text: #1b1f24;
    --w11-text-secondary: #5b6570;
    --w11-text-tertiary: #8a94a0;
    --w11-radius-sm: 6px;
    --w11-radius: 8px;
    --w11-radius-lg: 12px;
    --w11-shadow-1: 0 1px 2px rgba(15, 23, 42, 0.06);
    --w11-shadow-2: 0 4px 16px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.06);
    --w11-shadow-3: 0 12px 32px rgba(15, 23, 42, 0.12);
    --w11-success: #0f9d58;
    --w11-success-bg: #dff6e7;
    --w11-caution: #9a6700;
    --w11-caution-bg: #fdf1d6;
    --w11-critical: #c42b1c;
    --w11-critical-bg: #fde7e4;
    --w11-neutral: #5b6570;
    --w11-neutral-bg: #eef1f4;
    --w11-info: #0f6cbd;
    --w11-info-bg: #e3f1fc;
}

body.win11 {
    background: var(--w11-bg-mica);
    background-attachment: fixed;
    font-family: 'Segoe UI Variable', 'Segoe UI', 'Manrope', 'Inter', -apple-system, sans-serif;
    color: var(--w11-text);
    min-height: 100vh;
}

.win11-shell {
    display: flex;
    min-height: 100vh;
}

/* ---- Sidebar (NavigationView) ---- */
.win11-sidebar {
    width: 264px;
    flex-shrink: 0;
    background: var(--w11-surface);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-right: 1px solid var(--w11-border);
    display: flex;
    flex-direction: column;
    padding: 16px 12px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.win11-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px 20px;
}

.win11-brand-mark {
    width: 32px;
    height: 32px;
    border-radius: var(--w11-radius);
    background: linear-gradient(135deg, var(--w11-accent-light), var(--w11-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    box-shadow: var(--w11-shadow-1);
}

.win11-brand-text { font-weight: 700; font-size: 14.5px; line-height: 1.2; color: var(--w11-text); }
.win11-brand-text small { display: block; font-weight: 500; font-size: 11.5px; color: var(--w11-text-tertiary); }

.win11-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }

.win11-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: var(--w11-radius-sm);
    color: var(--w11-text-secondary);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    position: relative;
    transition: background 0.12s ease, color 0.12s ease;
}
.win11-nav-item svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.85; }
.win11-nav-item:hover { background: rgba(15, 23, 42, 0.05); color: var(--w11-text); }
.win11-nav-item.active {
    background: var(--w11-accent-tint);
    color: var(--w11-accent);
    font-weight: 600;
}
.win11-nav-item.active svg { opacity: 1; }
.win11-nav-item.active::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 20%;
    bottom: 20%;
    width: 3px;
    border-radius: 3px;
    background: var(--w11-accent);
}

.win11-nav-section {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--w11-text-tertiary);
    padding: 16px 12px 6px;
}

.win11-nav-footer {
    border-top: 1px solid var(--w11-border);
    padding-top: 10px;
    margin-top: 6px;
}

.win11-user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--w11-radius-sm);
}
.win11-user-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: linear-gradient(135deg, #64748b, #334155);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.win11-user-meta { line-height: 1.25; overflow: hidden; }
.win11-user-meta .name { font-size: 13px; font-weight: 600; color: var(--w11-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win11-user-meta .role { font-size: 11.5px; color: var(--w11-text-tertiary); }
.win11-logout {
    margin-top: 8px;
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px; border-radius: var(--w11-radius-sm);
    color: var(--w11-text-secondary); text-decoration: none; font-size: 13px; font-weight: 500;
}
.win11-logout:hover { background: var(--w11-critical-bg); color: var(--w11-critical); }
.win11-logout svg { width: 16px; height: 16px; }

/* ---- Main area ---- */
.win11-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.win11-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 28px;
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(238, 242, 241, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.win11-title h1 { font-size: 20px; font-weight: 700; margin: 0; color: var(--w11-text); }
.win11-title p { font-size: 12.5px; color: var(--w11-text-secondary); margin-top: 2px; }

.win11-topbar-actions { display: flex; align-items: center; gap: 10px; }

.win11-content { padding: 4px 28px 32px; flex: 1; }

/* ---- Cards / Surfaces ---- */
.win11-card {
    background: var(--w11-surface-solid);
    border: 1px solid var(--w11-border);
    border-radius: var(--w11-radius-lg);
    box-shadow: var(--w11-shadow-1);
    padding: 20px 22px;
    margin-bottom: 18px;
}
.win11-card h2 {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--w11-text);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ---- Stat / widget cards ---- */
.win11-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.win11-stat {
    background: var(--w11-surface-solid);
    border: 1px solid var(--w11-border);
    border-radius: var(--w11-radius-lg);
    box-shadow: var(--w11-shadow-1);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.win11-stat:hover { box-shadow: var(--w11-shadow-2); transform: translateY(-1px); }
.win11-stat-top { display: flex; align-items: center; justify-content: space-between; }
.win11-stat-icon {
    width: 34px; height: 34px; border-radius: var(--w11-radius-sm);
    display: flex; align-items: center; justify-content: center;
}
.win11-stat-icon svg { width: 18px; height: 18px; }
.win11-stat .num { font-size: 28px; font-weight: 700; font-family: 'JetBrains Mono', 'Cascadia Mono', monospace; color: var(--w11-text); line-height: 1; }
.win11-stat .label { font-size: 12.5px; color: var(--w11-text-secondary); font-weight: 500; }

.icon-amber { background: var(--w11-caution-bg); color: var(--w11-caution); }
.icon-blue { background: var(--w11-info-bg); color: var(--w11-info); }
.icon-green { background: var(--w11-success-bg); color: var(--w11-success); }
.icon-gray { background: var(--w11-neutral-bg); color: var(--w11-neutral); }

/* ---- Fluent InfoBadge (durum/öncelik rozetleri) ---- */
.w-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
}
.w-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.w-badge.st-YENI { background: var(--w11-info-bg); color: var(--w11-info); }
.w-badge.st-INCELENIYOR { background: var(--w11-caution-bg); color: var(--w11-caution); }
.w-badge.st-COZULDU { background: var(--w11-success-bg); color: var(--w11-success); }
.w-badge.st-COZULEMEDI { background: var(--w11-critical-bg); color: var(--w11-critical); }
.w-badge.st-GECERSIZ { background: var(--w11-neutral-bg); color: var(--w11-neutral); }
.w-badge.pr-yuksek { background: var(--w11-critical-bg); color: var(--w11-critical); }
.w-badge.pr-orta { background: var(--w11-caution-bg); color: var(--w11-caution); }
.w-badge.pr-dusuk { background: var(--w11-neutral-bg); color: var(--w11-neutral); }

/* ---- Buttons (Fluent) ---- */
.w-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--w11-accent);
    color: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    padding: 8px 16px;
    border-radius: var(--w11-radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--w11-shadow-1);
    transition: background 0.12s ease, box-shadow 0.12s ease;
}
.w-btn:hover { background: #047857; box-shadow: var(--w11-shadow-2); }
.w-btn.secondary { background: var(--w11-surface-solid); color: var(--w11-text); border: 1px solid var(--w11-border-strong); }
.w-btn.secondary:hover { background: #f6f7f8; }
.w-btn.danger { background: var(--w11-critical); }
.w-btn.danger:hover { background: #a4241a; }
.w-btn.ghost { background: transparent; color: var(--w11-text-secondary); box-shadow: none; border-color: transparent; }
.w-btn.ghost:hover { background: rgba(15,23,42,0.05); color: var(--w11-text); }
.w-btn.small { padding: 5px 11px; font-size: 12px; }
.w-btn svg { width: 15px; height: 15px; }

/* ---- Fluent form controls ---- */
.win11-content label, .win11-card label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--w11-text-secondary);
    margin-bottom: 6px;
    margin-top: 14px;
}
.win11-content input[type=text], .win11-content input[type=search],
.win11-content input[type=password], .win11-content input[type=email],
.win11-content input[type=date], .win11-content select, .win11-content textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--w11-border-strong);
    border-radius: var(--w11-radius-sm);
    font-size: 13.5px;
    font-family: inherit;
    background: #fbfbfc;
    color: var(--w11-text);
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.win11-content input:focus, .win11-content select:focus, .win11-content textarea:focus {
    outline: none;
    border-color: var(--w11-accent);
    background: #fff;
    box-shadow: 0 0 0 3px var(--w11-accent-tint);
}

/* ---- Table (Fluent DataGrid look) ---- */
.win11-table-wrap { overflow-x: auto; }
.w-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.w-table th {
    text-align: left; font-size: 11.5px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.03em; color: var(--w11-text-tertiary);
    padding: 10px 14px; border-bottom: 1px solid var(--w11-border);
    background: #fafbfb;
}
.w-table td { padding: 12px 14px; border-bottom: 1px solid var(--w11-border); color: var(--w11-text); vertical-align: middle; }
.w-table tr:last-child td { border-bottom: none; }
.w-table tbody tr:hover td { background: rgba(5, 150, 105, 0.035); }
.w-table .mono { font-family: 'JetBrains Mono', 'Cascadia Mono', monospace; font-size: 12.5px; }

/* ---- Pill filter bar ---- */
.win11-filterbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
}
.win11-filterbar .field { display: flex; flex-direction: column; min-width: 150px; }
.win11-filterbar label { margin-top: 0; }

/* ---- Login page (Fluent Acrylic panel) ---- */
.win11-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--w11-bg-mica);
    padding: 20px;
}
.win11-login-card {
    width: 100%;
    max-width: 380px;
    background: var(--w11-surface);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border: 1px solid var(--w11-border);
    border-radius: var(--w11-radius-lg);
    box-shadow: var(--w11-shadow-3);
    padding: 32px 30px;
}
.win11-login-logo {
    width: 46px; height: 46px; border-radius: var(--w11-radius);
    background: linear-gradient(135deg, var(--w11-accent-light), var(--w11-accent));
    display: flex; align-items: center; justify-content: center; color: #fff;
    font-weight: 800; font-size: 18px; margin-bottom: 16px; box-shadow: var(--w11-shadow-2);
}

/* ---- Toast / progress bar for charts ---- */
.win11-bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; margin-top: 6px; }
.win11-bars .bar { flex: 1; background: var(--w11-accent-tint-strong); border-radius: 4px 4px 0 0; position: relative; min-height: 2px; }
.win11-bars .bar span {
    position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
    font-size: 10px; color: var(--w11-text-tertiary); margin-bottom: 2px; white-space: nowrap;
}
.win11-bars .bar-fill { position: absolute; bottom: 0; left: 0; right: 0; background: var(--w11-accent); border-radius: 4px 4px 0 0; }

.win11-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--w11-text-tertiary);
    font-size: 13px;
}

.win11-divider { height: 1px; background: var(--w11-border); margin: 16px 0; border: none; }

/* Güvenlik ağı: yukarıdaki özel kurallarla kapsanmayan (örn. h2 içindeki)
   ikonlar da varsayılan olarak küçük kalsın (boyut/height belirtilmemiş
   SVG'ler tarayıcıda çok büyük render edilebiliyor). */
.win11-content svg,
.win11-card h2 svg,
.win11-title svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    vertical-align: -3px;
}

.win11-kv { display: grid; grid-template-columns: 150px 1fr; gap: 10px 14px; font-size: 13px; }
.win11-kv dt { color: var(--w11-text-tertiary); font-weight: 600; }
.win11-kv dd { color: var(--w11-text); }

@media (max-width: 900px) {
    .win11-sidebar { display: none; }
    .win11-content { padding: 4px 16px 24px; }
    .win11-topbar { padding: 14px 16px; }
}

/* Call-center operations console */
.ops-live{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border:1px solid #bbf7d0;border-radius:999px;background:#f0fdf4;color:#166534;font-size:12px;font-weight:700}.ops-live i{width:7px;height:7px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 4px #dcfce7;animation:opsPulse 1.8s infinite}@keyframes opsPulse{50%{box-shadow:0 0 0 7px transparent}}
.ops-hero{display:flex;justify-content:space-between;align-items:flex-end;padding:4px 2px 22px}.ops-hero h2{font:800 26px/1.2 Manrope,sans-serif;margin:5px 0}.ops-hero p{margin:0;color:var(--w11-text-secondary)}.ops-kicker{font-size:10.5px;letter-spacing:.13em;font-weight:800;color:var(--w11-accent)}.ops-clock{text-align:right}.ops-clock span{display:block;color:var(--w11-text-tertiary);font-size:11px}.ops-clock strong{font:800 24px/1.2 'JetBrains Mono',monospace}
.ops-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:16px}.ops-metric{display:flex;gap:14px;align-items:center;background:#fff;border:1px solid var(--w11-border);border-radius:14px;padding:18px;text-decoration:none;color:inherit;box-shadow:0 2px 10px rgba(15,23,42,.035);transition:.18s}.ops-metric:hover{transform:translateY(-2px);box-shadow:0 9px 24px rgba(15,23,42,.09)}.ops-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center}.ops-icon svg{width:20px;height:20px}.ops-metric small,.ops-metric em{display:block;font-style:normal}.ops-metric small{color:var(--w11-text-secondary);font-weight:700}.ops-metric strong{display:block;font:800 28px Manrope;margin:2px 0}.ops-metric em{font-size:10.5px;color:var(--w11-text-tertiary)}.tone-blue .ops-icon{background:#eff6ff;color:#2563eb}.tone-amber .ops-icon{background:#fffbeb;color:#d97706}.tone-red .ops-icon{background:#fef2f2;color:#dc2626}.tone-green .ops-icon{background:#ecfdf5;color:#059669}
.ops-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,.75fr);gap:16px;margin-bottom:16px}.ops-panel{background:#fff;border:1px solid var(--w11-border);border-radius:14px;padding:18px;margin-bottom:16px;box-shadow:0 2px 10px rgba(15,23,42,.03)}.ops-panel>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.ops-panel h3{margin:3px 0 0;font:800 16px Manrope}.ops-chip{font-size:11px;font-weight:700;padding:6px 9px;border-radius:999px;background:#ecfdf5;color:#047857}.ops-chart{height:230px}.ops-chart canvas{width:100%;height:100%}.ops-progress-row{margin:17px 0}.ops-progress-row>div:first-child{display:flex;justify-content:space-between;font-size:12px;margin-bottom:6px}.ops-progress{height:7px;background:#f1f5f9;border-radius:8px;overflow:hidden}.ops-progress i{height:100%;display:block;border-radius:8px}.p-yuksek{background:#ef4444}.p-orta{background:#f59e0b}.p-dusuk{background:#10b981}.ops-text-link{font-size:12px;color:var(--w11-accent);font-weight:700;text-decoration:none}.ops-hospital{display:flex;align-items:center;gap:9px}.ops-hospital>span{width:30px;height:30px;border-radius:9px;background:#ecfdf5;color:#047857;display:grid;place-items:center;font-weight:800}.ops-count{display:inline-grid;min-width:27px;height:27px;padding:0 7px;place-items:center;border-radius:8px;font-weight:800}.ops-count.danger{background:#fee2e2;color:#b91c1c}.ops-count.ok{background:#dcfce7;color:#166534}.ops-status{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:700}.ops-status i{width:7px;height:7px;border-radius:50%}.ops-status.online i{background:#22c55e}.ops-status.offline i{background:#94a3b8}.ops-feed a{display:grid;grid-template-columns:10px 1fr auto;gap:10px;padding:11px 2px;border-bottom:1px solid var(--w11-border);text-decoration:none;color:inherit}.ops-feed a:last-child{border:0}.ops-feed-dot{width:8px;height:8px;background:#10b981;border-radius:50%;margin-top:5px}.ops-feed strong,.ops-feed small{display:block}.ops-feed small,.ops-feed time{font-size:11px;color:var(--w11-text-tertiary)}

/* Modern queue workspace */
.queue-tabs{display:flex;gap:7px;overflow:auto;padding-bottom:2px;margin-bottom:14px}.queue-tab{white-space:nowrap;padding:9px 13px;border:1px solid var(--w11-border);border-radius:9px;background:#fff;color:var(--w11-text-secondary);text-decoration:none;font-size:12px;font-weight:700}.queue-tab:hover,.queue-tab.active{border-color:#86efac;background:#f0fdf4;color:#047857}.queue-toolbar{position:sticky;top:0;z-index:6;padding:14px 16px}.queue-toolbar .win11-filterbar{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr)) minmax(210px,1.4fr) auto}.queue-table-card{padding:0;overflow:hidden}.queue-table-card .w-table th{position:sticky;top:0;z-index:2;background:#f8fafc}.queue-table-card tbody tr{transition:.15s}.queue-table-card tbody tr.priority-yuksek td:first-child{box-shadow:inset 3px 0 #ef4444}.queue-table-card tbody tr.priority-orta td:first-child{box-shadow:inset 3px 0 #f59e0b}.queue-id{font-weight:800;color:#047857;text-decoration:none}.queue-patient strong,.queue-patient small{display:block}.queue-patient small{color:var(--w11-text-tertiary);font-size:10.5px}.queue-age{font-size:11px;font-weight:700}.queue-empty{padding:70px 20px;text-align:center}.queue-empty strong{display:block;font-size:16px;margin-bottom:5px}.queue-empty span{color:var(--w11-text-tertiary)}
@media(max-width:1100px){.ops-metrics{grid-template-columns:1fr 1fr}.ops-grid{grid-template-columns:1fr}.queue-toolbar .win11-filterbar{grid-template-columns:repeat(2,1fr)}}@media(max-width:620px){.ops-metrics{grid-template-columns:1fr}.ops-hero{display:block}.ops-clock{text-align:left;margin-top:14px}.queue-toolbar .win11-filterbar{grid-template-columns:1fr}}
.global-announcements{padding:0 28px 10px;display:grid;gap:8px}.global-announcement{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;padding:11px 14px;border-radius:11px;border:1px solid}.global-announcement>span{font-size:9px;font-weight:900;letter-spacing:.08em;padding:5px 7px;border-radius:6px}.global-announcement strong{font-size:12.5px}.global-announcement p{display:inline;margin-left:8px;font-size:11.5px}.global-announcement a{font-size:11px;font-weight:800;text-decoration:none}.level-kritik{background:#fff1f2;border-color:#fecdd3;color:#9f1239}.level-kritik>span{background:#be123c;color:#fff}.level-uyari{background:#fffbeb;border-color:#fde68a;color:#92400e}.level-uyari>span{background:#f59e0b;color:#fff}.level-bakim{background:#eff6ff;border-color:#bfdbfe;color:#1e40af}.level-bakim>span{background:#2563eb;color:#fff}.level-bilgi{background:#f0fdf4;border-color:#bbf7d0;color:#166534}.level-bilgi>span{background:#16a34a;color:#fff}
.queue-command{display:grid;grid-template-columns:1fr auto;gap:18px;align-items:center;background:linear-gradient(125deg,#0f172a,#163b36);color:#fff;border-radius:16px;padding:22px;margin-bottom:15px;box-shadow:0 14px 35px rgba(15,23,42,.18)}.queue-command h2{font:800 22px Manrope;margin:3px 0}.queue-command p{color:#a7c4b8;margin:0}.queue-command-stats{display:flex;gap:10px}.queue-command-stats div{min-width:90px;padding:11px 13px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:11px}.queue-command-stats strong,.queue-command-stats span{display:block}.queue-command-stats strong{font:800 20px Manrope}.queue-command-stats span{font-size:9.5px;color:#a7c4b8;text-transform:uppercase}.queue-filters-toggle{display:none}.ops-donut-wrap{display:grid;grid-template-columns:150px 1fr;align-items:center;gap:20px}.ops-donut{width:140px;height:140px;border-radius:50%;display:grid;place-items:center;position:relative}.ops-donut:after{content:"";position:absolute;inset:22px;background:#fff;border-radius:50%;box-shadow:inset 0 0 0 1px #f1f5f9}.ops-donut-center{z-index:1;text-align:center}.ops-donut-center strong,.ops-donut-center span{display:block}.ops-donut-center strong{font:800 25px Manrope}.ops-donut-center span{font-size:10px;color:#64748b}.ops-legend{display:grid;gap:9px}.ops-legend div{display:flex;align-items:center;justify-content:space-between;font-size:11.5px}.ops-legend i{width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:7px}.legend-new{background:#3b82f6}.legend-work{background:#f59e0b}.legend-solved{background:#10b981}.legend-other{background:#94a3b8}
@media(max-width:760px){.global-announcements{padding:0 16px 10px}.global-announcement{grid-template-columns:auto 1fr}.global-announcement a{display:none}.global-announcement p{display:block;margin:3px 0 0}.queue-command{grid-template-columns:1fr}.queue-command-stats{overflow:auto}}

/* Citizen notification experience */
.citizen-body{margin:0;background:#f4f7f6;color:#0f172a;font-family:Inter,Arial,sans-serif}.citizen-nav{height:74px;background:#fff;border-bottom:1px solid #e2e8f0;display:flex;align-items:center;padding:0 max(24px,calc((100vw - 1180px)/2));gap:34px;position:sticky;top:0;z-index:20}.citizen-brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:#0f172a;font:800 14px Manrope}.citizen-brand>span{width:40px;height:40px;border-radius:11px;background:linear-gradient(135deg,#047857,#10b981);color:#fff;display:grid;place-items:center;font-size:12px}.citizen-brand small{display:block;color:#64748b;font:500 10px Inter;margin-top:2px}.citizen-nav nav{display:flex;gap:22px;flex:1}.citizen-nav nav a{color:#64748b;text-decoration:none;font-size:12px;font-weight:700;padding:27px 0 24px;border-bottom:3px solid transparent}.citizen-nav nav a.active{color:#047857;border-color:#10b981}.citizen-secure{font-size:11px;color:#166534;font-weight:700}.citizen-secure i{display:inline-block;width:7px;height:7px;background:#22c55e;border-radius:50%;margin-right:5px}.citizen-main{max-width:1180px;margin:auto;padding:42px 24px 70px}.citizen-hero{display:grid;grid-template-columns:1.15fr .85fr;gap:50px;align-items:center;margin-bottom:32px}.citizen-kicker{font-size:10px;font-weight:900;letter-spacing:.16em;color:#059669}.citizen-hero h1{font:800 44px/1.08 Manrope;margin:9px 0 14px;letter-spacing:-.035em}.citizen-hero p{color:#64748b;font-size:15px;line-height:1.7;max-width:620px}.citizen-trust{display:flex;gap:8px;margin-top:20px}.citizen-trust span{padding:7px 10px;border:1px solid #d1fae5;background:#ecfdf5;color:#047857;border-radius:999px;font-size:10px;font-weight:800}.citizen-flow{display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#0f172a,#064e3b);padding:24px;border-radius:18px;color:#fff;box-shadow:0 18px 45px rgba(15,23,42,.2)}.citizen-flow div{text-align:center;min-width:90px}.citizen-flow strong{width:35px;height:35px;margin:0 auto 8px;border-radius:50%;background:#10b981;display:grid;place-items:center}.citizen-flow span{font-size:10px;color:#d1fae5;font-weight:700}.citizen-flow i{height:1px;flex:1;background:#ffffff35}.citizen-alert{border:1px solid #fecaca;background:#fff1f2;color:#991b1b;border-radius:12px;padding:14px 18px;margin-bottom:18px}.citizen-alert strong,.citizen-alert span{display:block}.citizen-alert span{font-size:12px;margin-top:4px}.citizen-form{display:grid;gap:18px}.citizen-card{background:#fff;border:1px solid #dfe7e4;border-radius:16px;padding:24px;box-shadow:0 5px 22px rgba(15,23,42,.04)}.citizen-card>header{display:flex;gap:12px;align-items:flex-start;margin-bottom:20px}.citizen-card h2{font:800 17px Manrope;margin:0 0 3px}.citizen-card header p{font-size:11.5px;color:#64748b;margin:0}.section-number{width:30px;height:30px;border-radius:9px;background:#ecfdf5;color:#047857;display:grid;place-items:center;font:800 12px Manrope;flex:none}.hospital-choice{border-color:#a7f3d0;background:linear-gradient(120deg,#fff,#f0fdf8)}.citizen-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}.citizen-card label,.citizen-label{display:block;font-size:11.5px;font-weight:700;color:#334155;margin:14px 0 5px}.citizen-card input,.citizen-card select,.citizen-card textarea{width:100%;box-sizing:border-box;border:1px solid #cbd5e1;background:#fbfdfc;border-radius:9px;padding:11px 12px;font:13px Inter;color:#0f172a;transition:.15s}.citizen-card input:focus,.citizen-card select:focus,.citizen-card textarea:focus{outline:none;background:#fff;border-color:#10b981;box-shadow:0 0 0 3px #d1fae5}.hospital-choice select{font-size:14px;font-weight:700;padding:14px}.citizen-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.citizen-note{margin-top:15px;background:#f8fafc;border-left:3px solid #10b981;border-radius:5px;padding:10px 12px;color:#64748b;font-size:10.5px;line-height:1.5}.consent-card details{border:1px solid #e2e8f0;border-radius:9px;padding:11px}.consent-card summary{cursor:pointer;font-size:11.5px;font-weight:700;color:#047857}.citizen-kvkk{max-height:180px;overflow:auto;margin-top:10px;font-size:10.5px;line-height:1.6;color:#64748b}.citizen-check{display:flex!important;gap:10px;align-items:flex-start;margin:18px 0!important}.citizen-check input{width:18px!important;height:18px;accent-color:#059669;flex:none}.citizen-check span{font-weight:500;line-height:1.55}.citizen-submit{width:100%;display:flex;align-items:center;justify-content:center;gap:12px;border:0;border-radius:10px;padding:14px;background:linear-gradient(135deg,#047857,#059669);color:#fff;font:800 13px Manrope;cursor:pointer;box-shadow:0 8px 18px rgba(5,150,105,.22)}.citizen-submit:hover{background:linear-gradient(135deg,#065f46,#047857)}.citizen-submit:disabled{opacity:.7;cursor:wait}.citizen-submit b{font-size:18px}.citizen-submit-note{text-align:center;color:#94a3b8;font-size:10px}.citizen-honeypot{position:absolute!important;left:-9999px!important}.citizen-footer{border-top:1px solid #e2e8f0;background:#fff;padding:24px;text-align:center}.citizen-footer strong,.citizen-footer span{display:block}.citizen-footer strong{font:800 12px Manrope}.citizen-footer span{font-size:10.5px;color:#64748b;margin-top:4px}
@media(max-width:850px){.citizen-nav{padding:0 16px}.citizen-nav nav{display:none}.citizen-secure{margin-left:auto}.citizen-main{padding:28px 15px 50px}.citizen-hero{grid-template-columns:1fr;gap:22px}.citizen-hero h1{font-size:34px}.citizen-columns{grid-template-columns:1fr}}@media(max-width:520px){.citizen-brand div{font-size:12px}.citizen-grid{grid-template-columns:1fr}.citizen-flow{padding:18px 10px}.citizen-flow div{min-width:75px}.citizen-trust{flex-wrap:wrap}.citizen-card{padding:18px}}
.citizen-form input.tc-invalid{border-color:#dc3545!important;background:#fff5f6!important;box-shadow:0 0 0 3px rgba(220,53,69,.13)!important}
.citizen-form input.tc-valid{border-color:#169b68!important;background:#f3fff9!important;box-shadow:0 0 0 3px rgba(22,155,104,.1)!important}
.tc-feedback{display:block;margin-top:7px;font-size:12px;font-weight:600;color:#718096}.tc-feedback.invalid{color:#c72535}.tc-feedback.valid{color:#12875a}
