/* ═══════════════════════════════════════════════════════════════════
   WorkPulse İK — Modern Tasarım Sistemi (v9.7)
   Kurumsal İK paneli · sıcak turuncu marka · katmanlı modern yüzeyler
   ═══════════════════════════════════════════════════════════════════ */

/* ───────── Tema değişkenleri ───────── */
:root, [data-theme="dark"] {
  --bg: #080b12; --bg-panel: #0c111c; --bg-card: #121826; --bg-card-hover: #182032;
  --bg-elevated: #1a2334; --bg-input: #0e141f; --bg-glass: rgba(12,17,28,.72);
  --border: #1d2536; --border-light: #2a3547; --border-focus: #f97316;
  --text: #eaf0fa; --text-sec: #9dabc4; --text-muted: #5a677e;
  --accent: #f97316; --accent-hover: #fb8c3a; --accent-soft: rgba(249,115,22,.14);
  --accent-glow: rgba(249,115,22,.16); --accent-shadow: rgba(249,115,22,.4);
  --green: #2dd4a7; --green-glow: rgba(45,212,167,.14);
  --amber: #f5b23e; --amber-glow: rgba(245,178,62,.14);
  --red: #f4635e; --red-glow: rgba(244,99,94,.14);
  --purple: #a78bfa; --purple-glow: rgba(167,139,250,.14);
  --cyan: #38bdf8; --pink: #f472b6;
  --gradient-brand: linear-gradient(135deg,#fb8c3a,#f43f5e);
  --gradient-green: linear-gradient(135deg,#2dd4a7,#14b8a6);
  --gradient-purple: linear-gradient(135deg,#a78bfa,#8b5cf6);
  --gradient-amber: linear-gradient(135deg,#fbbf24,#f59e0b);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.24);
  --card-shadow: 0 1px 3px rgba(0,0,0,.28), 0 12px 28px -18px rgba(0,0,0,.5);
  --shadow: 0 4px 14px rgba(0,0,0,.3); --shadow-lg: 0 24px 60px -18px rgba(0,0,0,.7);
  --modal-bg: rgba(4,7,12,.66); --scrollbar: #2a3547; --tree-line: #2a3547;
  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 20px;
  --font: 'Plus Jakarta Sans','Inter',system-ui,-apple-system,Segoe UI,sans-serif;
}
[data-theme="light"] {
  --bg: #f4f6fb; --bg-panel: #ffffff; --bg-card: #ffffff; --bg-card-hover: #f7f9fc; --bg-elevated: #ffffff;
  --bg-input: #f1f4f9; --bg-glass: rgba(255,255,255,.82);
  --border: #e6eaf1; --border-light: #d6dce6; --border-focus: #ea580c;
  --text: #141a26; --text-sec: #56617a; --text-muted: #8b95a9;
  --accent: #ea580c; --accent-hover: #f97316; --accent-soft: rgba(234,88,12,.1); --accent-glow: rgba(234,88,12,.14); --accent-shadow: rgba(234,88,12,.28);
  --green: #0d9488; --green-glow: rgba(13,148,136,.1); --amber: #d97706; --amber-glow: rgba(217,119,6,.1);
  --red: #dc2626; --red-glow: rgba(220,38,38,.1); --purple: #7c3aed; --purple-glow: rgba(124,58,237,.1);
  --cyan: #0284c7; --pink: #db2777;
  --gradient-brand: linear-gradient(135deg,#f97316,#e11d48);
  --shadow-sm: 0 1px 2px rgba(20,30,50,.06);
  --card-shadow: 0 1px 3px rgba(20,30,50,.06), 0 12px 24px -16px rgba(20,30,50,.14);
  --shadow: 0 4px 14px rgba(20,30,50,.1); --shadow-lg: 0 24px 50px -18px rgba(20,30,50,.24);
  --modal-bg: rgba(30,41,59,.4); --scrollbar: #cbd3e0; --tree-line: #d6dce6;
}
[data-theme="natural"] {
  --bg: #f3efe7; --bg-panel: #fbf8f2; --bg-card: #fffdf8; --bg-card-hover: #f7f2e8; --bg-elevated: #fffdf8;
  --bg-input: #f1ece2; --bg-glass: rgba(251,248,242,.85);
  --border: #e6ddcc; --border-light: #d8ccb5; --border-focus: #b45309;
  --text: #2c2416; --text-sec: #6b5d47; --text-muted: #9a8b70;
  --accent: #b45309; --accent-hover: #c2620a; --accent-soft: rgba(180,83,9,.1); --accent-glow: rgba(180,83,9,.16); --accent-shadow: rgba(180,83,9,.3);
  --green: #4d7c3f; --green-glow: rgba(77,124,63,.12); --amber: #b45309; --amber-glow: rgba(180,83,9,.12);
  --red: #b91c1c; --red-glow: rgba(185,28,28,.1); --purple: #7c5cbf; --purple-glow: rgba(124,92,191,.12);
  --cyan: #0e7490; --pink: #be185d;
  --gradient-brand: linear-gradient(135deg,#c2620a,#9a3412);
  --shadow-sm: 0 1px 2px rgba(80,60,30,.08);
  --card-shadow: 0 1px 3px rgba(80,60,30,.08), 0 12px 24px -16px rgba(80,60,30,.16);
  --shadow: 0 4px 14px rgba(80,60,30,.12); --shadow-lg: 0 24px 50px -18px rgba(80,60,30,.26);
  --modal-bg: rgba(44,36,22,.42); --scrollbar: #d8ccb5; --tree-line: #d8ccb5;
}

/* ───────── Reset & base ───────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; min-height: 100vh; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; letter-spacing: -0.01em; }
a { color: var(--accent); text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--accent-soft); color: var(--text); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 99px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
.spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(8px); } to { opacity: 1; transform: none; } }

/* ───────── Layout ───────── */
.app-layout { display: flex; min-height: 100vh; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.content { padding: 26px 30px; flex: 1; animation: rise .35s ease; }

/* ───────── Sidebar ───────── */
.sidebar { width: 264px; flex-shrink: 0; background: var(--bg-panel); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 40; }
.sidebar-header { display: flex; align-items: center; gap: 12px; padding: 20px 20px 16px; }
.sidebar-logo { width: 42px; height: 42px; border-radius: 13px; background: var(--gradient-brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; box-shadow: 0 6px 18px -4px var(--accent-shadow); flex-shrink: 0; letter-spacing: -.5px; }
.sidebar-title { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.sidebar-title span { color: var(--accent); }
.sidebar-version { font-size: 10px; color: var(--text-muted); font-weight: 600; margin-top: 1px; }
.theme-switch { display: flex; gap: 6px; padding: 0 20px 14px; }
.theme-btn { flex: 1; height: 32px; border: 1px solid var(--border); background: var(--bg-input); border-radius: 9px; cursor: pointer; font-size: 13px; transition: all .16s; opacity: .5; }
.theme-btn:hover { opacity: 1; border-color: var(--border-light); }
.theme-btn.active { opacity: 1; border-color: var(--accent); background: var(--accent-soft); }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 6px 12px 12px; }
.sidebar-nav::-webkit-scrollbar { width: 6px; }
.nav-label { font-size: 10px; font-weight: 700; letter-spacing: .09em; color: var(--text-muted); text-transform: uppercase; padding: 16px 12px 7px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text-sec); font-weight: 600; font-size: 13.5px; cursor: pointer; transition: all .15s; margin-bottom: 2px; position: relative; }
.nav-item:hover { background: var(--bg-card); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); }
.nav-item.active::before { content: ''; position: absolute; left: -12px; top: 50%; transform: translateY(-50%); width: 3px; height: 20px; border-radius: 0 3px 3px 0; background: var(--accent); }
.nav-icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }
.sidebar-footer { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--border); }
.sidebar-user { flex: 1; min-width: 0; }
.sidebar-user-name { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 10.5px; color: var(--text-muted); text-transform: capitalize; }
.sidebar-logout { width: 34px; height: 34px; border: 1px solid var(--border); background: var(--bg-input); border-radius: 9px; cursor: pointer; font-size: 14px; transition: all .16s; flex-shrink: 0; }
.sidebar-logout:hover { border-color: var(--red); background: var(--red-glow); }

/* ───────── Header ───────── */
.header { height: 66px; display: flex; align-items: center; gap: 16px; padding: 0 30px; border-bottom: 1px solid var(--border); background: var(--bg-glass); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 30; }
.header-info { min-width: 0; }
.header-title { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.header-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 1px; }
.global-search { flex: 1; max-width: 340px; margin-left: auto; position: relative; display: flex; align-items: center; }
.global-search .search-icon { position: absolute; left: 13px; font-size: 13px; opacity: .5; pointer-events: none; }
.global-search input { width: 100%; height: 40px; padding: 0 14px 0 36px; border: 1px solid var(--border); border-radius: 11px; background: var(--bg-input); color: var(--text); font-size: 13px; font-family: inherit; transition: all .16s; }
.global-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.global-search input::placeholder { color: var(--text-muted); }
.header-actions { display: flex; gap: 8px; }

/* ───────── Cards ───────── */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--card-shadow); overflow: hidden; transition: border-color .18s, transform .18s; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--border); }
.card-title { font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; }
.card-body { padding: 18px; }

/* ───────── Stat cards ───────── */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--card-shadow); overflow: hidden; transition: transform .18s, border-color .18s; }
.stat-card::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--accent); opacity: .8; }
.stat-card.green::after { background: var(--green); } .stat-card.amber::after { background: var(--amber); }
.stat-card.red::after { background: var(--red); } .stat-card.purple::after { background: var(--purple); }
.stat-card.blue::after { background: var(--cyan); }
.stat-card:hover { transform: translateY(-3px); border-color: var(--border-light); }
.stat-icon { font-size: 22px; margin-bottom: 10px; display: block; }
.stat-label { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: var(--text-muted); text-transform: uppercase; }
.stat-value { font-size: 27px; font-weight: 800; line-height: 1.1; margin-top: 4px; letter-spacing: -.02em; }
.stat-sub { font-size: 11px; color: var(--text-sec); margin-top: 3px; font-weight: 500; }
.chart-row-equal { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }

/* ───────── Tables ───────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--bg-card); }
tbody td { padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 13px; vertical-align: middle; }
tbody tr { transition: background .13s; }
tbody tr:hover { background: var(--bg-card-hover); }
tbody tr:last-child td { border-bottom: 0; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ───────── Badges ───────── */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; line-height: 1.5; }
.badge-active { background: var(--green-glow); color: var(--green); }
.badge-expiring { background: var(--amber-glow); color: var(--amber); }
.badge-expired { background: var(--red-glow); color: var(--red); }
.badge-draft { background: color-mix(in srgb,var(--text-muted) 15%,transparent); color: var(--text-sec); }
.badge-accent { background: var(--accent-soft); color: var(--accent); }

/* ───────── Buttons ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 16px; border-radius: 11px; border: 1px solid transparent; font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer; transition: all .16s; white-space: nowrap; letter-spacing: -.01em; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 7px 12px; font-size: 12px; border-radius: 9px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 14px -4px var(--accent-shadow); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 6px 18px -4px var(--accent-shadow); }
.btn-ghost { background: var(--bg-input); color: var(--text-sec); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-card-hover); color: var(--text); border-color: var(--border-light); }
.btn-danger { background: var(--red-glow); color: var(--red); border-color: color-mix(in srgb,var(--red) 30%,transparent); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-success { background: var(--green-glow); color: var(--green); border-color: color-mix(in srgb,var(--green) 30%,transparent); }
.btn-success:hover { background: var(--green); color: #fff; }

/* ───────── Forms ───────── */
.form-grid { display: grid; gap: 14px; }
.form-grid-2 { grid-template-columns: 1fr 1fr; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 11.5px; font-weight: 700; color: var(--text-sec); letter-spacing: .01em; }
.form-input { width: 100%; padding: 10px 13px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-input); color: var(--text); font-size: 13.5px; font-family: inherit; transition: all .16s; }
.form-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-input::placeholder { color: var(--text-muted); }
select.form-input { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239dabc4' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
textarea.form-input { resize: vertical; min-height: 64px; }

/* ───────── Modals ───────── */
.modal-overlay { position: fixed; inset: 0; background: var(--modal-bg); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 100; opacity: 0; }
.modal-overlay.open { opacity: 1; }
.modal { background: var(--bg-elevated); border: 1px solid var(--border-light); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); width: 100%; max-height: 90vh; display: flex; flex-direction: column; animation: pop .22s cubic-bezier(.4,0,.2,1); overflow: hidden; }
.modal-sm { max-width: 420px; } .modal-md { max-width: 620px; } .modal-lg { max-width: 820px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-title { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.modal-close { width: 34px; height: 34px; border: 0; background: var(--bg-input); border-radius: 9px; cursor: pointer; color: var(--text-sec); font-size: 15px; transition: all .16s; }
.modal-close:hover { background: var(--red-glow); color: var(--red); }
.modal-body { padding: 22px; overflow-y: auto; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--border); }

/* ───────── Tabs ───────── */
.tabs { display: flex; gap: 4px; background: var(--bg-input); padding: 4px; border-radius: 12px; flex-wrap: wrap; }
.tab { padding: 8px 14px; border-radius: 9px; font-size: 12.5px; font-weight: 700; color: var(--text-sec); cursor: pointer; transition: all .15s; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--bg-card); color: var(--accent); box-shadow: var(--shadow-sm); }

/* ───────── Detail slide-over ───────── */
.detail-overlay { position: fixed; inset: 0; background: var(--modal-bg); backdrop-filter: blur(4px); z-index: 90; opacity: 0; animation: fadeIn .2s forwards; }
@keyframes fadeIn { to { opacity: 1; } }
.detail-panel { position: fixed; top: 0; right: 0; height: 100vh; width: 480px; max-width: 92vw; background: var(--bg-panel); border-left: 1px solid var(--border-light); box-shadow: var(--shadow-lg); z-index: 91; display: flex; flex-direction: column; transform: translateX(100%); animation: slideIn .28s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes slideIn { to { transform: none; } }
.detail-header { padding: 20px 22px 0; border-bottom: 1px solid var(--border); }
.detail-body { padding: 20px 22px; overflow-y: auto; flex: 1; }
.detail-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--border); }
.info-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 14px; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.info-row:last-child { border-bottom: 0; }
.info-row-label { color: var(--text-muted); font-weight: 500; }
.info-row-value { color: var(--text); font-weight: 600; text-align: right; }

/* ───────── Avatar, chips, progress, misc ───────── */
.avatar { border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; flex-shrink: 0; letter-spacing: -.5px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--border); background: var(--bg-input); color: var(--text-sec); font-size: 12px; font-weight: 600; cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--border-light); color: var(--text); }
.chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.progress { height: 7px; background: var(--bg-input); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 99px; transition: width .7s cubic-bezier(.4,0,.2,1); }
.progress-accent { background: var(--gradient-brand); } .progress-green { background: var(--green); }
.progress-amber { background: var(--amber); } .progress-red { background: var(--red); }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; text-align: center; }
.empty-state-icon { font-size: 34px; opacity: .35; margin-bottom: 10px; }
.empty-state-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.empty-state-text { font-size: 12.5px; color: var(--text-muted); }

/* ───────── Toasts ───────── */
.toast-container { position: fixed; bottom: 22px; right: 22px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast { padding: 13px 18px; border-radius: 12px; background: var(--bg-elevated); border: 1px solid var(--border-light); box-shadow: var(--shadow-lg); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 9px; animation: pop .25s ease; transition: opacity .3s; border-left: 3px solid var(--accent); }
.toast-success { border-left-color: var(--green); } .toast-error { border-left-color: var(--red); } .toast-info { border-left-color: var(--cyan); }

/* ═══════════ İşgücü analitiği görselleri ═══════════ */
.wp-sec-title { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin: 22px 2px 13px; display: flex; align-items: center; gap: 9px; }
.wp-sec-title::before { content: ''; width: 4px; height: 15px; border-radius: 3px; background: var(--gradient-brand); }
.wp-analytics { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-bottom: 16px; }
.wp-analytics .card { animation: rise .4s ease; }
.wp-donut { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; padding: 6px 0; }
.wp-donut svg { flex-shrink: 0; }
.wp-seg { transition: opacity .15s; cursor: default; }
.wp-donut:hover .wp-seg { opacity: .4; } .wp-donut .wp-seg:hover { opacity: 1; }
.wp-legend { display: flex; flex-direction: column; gap: 8px; min-width: 120px; }
.wp-lg { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-sec); }
.wp-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.wp-lg b { color: var(--text); margin-left: auto; font-weight: 700; font-size: 11px; }
.wp-bars { display: flex; flex-direction: column; gap: 11px; padding: 2px 0; }
.wp-bar-row { display: flex; align-items: center; gap: 11px; }
.wp-bl { width: 96px; font-size: 11px; font-weight: 600; color: var(--text-sec); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; }
.wp-bt { flex: 1; height: 9px; border-radius: 99px; background: var(--bg-input); overflow: hidden; }
.wp-bf { height: 100%; border-radius: 99px; transition: width .7s cubic-bezier(.4,0,.2,1); }
.wp-bv { font-size: 12px; font-weight: 800; min-width: 26px; text-align: right; }
.wp-empty { padding: 30px; text-align: center; font-size: 12px; color: var(--text-muted); }
.wp-org-scroll { overflow-x: auto; padding: 10px 4px; }
.wp-org-tree { display: inline-flex; justify-content: center; min-width: 100%; padding: 14px 8px 8px; }
.wp-org-node { display: flex; flex-direction: column; align-items: center; }
.wp-org-card { position: relative; background: var(--bg-card); border: 1px solid var(--border-light); border-top: 3px solid var(--accent); border-radius: 14px; padding: 13px 17px; min-width: 172px; max-width: 220px; box-shadow: var(--card-shadow); text-align: center; transition: transform .16s, box-shadow .16s; z-index: 1; }
.wp-org-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px -8px var(--accent-glow); }
.wp-org-name { font-size: 13.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.wp-org-code { font-size: 9px; font-weight: 700; background: var(--accent-soft); color: var(--accent); padding: 1px 6px; border-radius: 5px; }
.wp-org-mgr { font-size: 11px; color: var(--text-sec); margin-top: 5px; }
.wp-org-title { color: var(--text-muted); } .wp-org-vacant { font-style: italic; opacity: .6; }
.wp-org-count { margin-top: 7px; font-size: 10.5px; color: var(--text-muted); }
.wp-org-count span { font-weight: 800; color: var(--green); font-size: 13px; }
.wp-org-children { display: flex; gap: 18px; position: relative; padding-top: 22px; }
.wp-org-children::before { content: ''; position: absolute; top: 0; left: 50%; width: 2px; height: 22px; background: var(--tree-line); transform: translateX(-50%); }
.wp-org-children > .wp-org-node { position: relative; }
.wp-org-children > .wp-org-node::before { content: ''; position: absolute; top: -22px; left: 50%; width: 2px; height: 22px; background: var(--tree-line); }
.wp-org-children > .wp-org-node::after { content: ''; position: absolute; top: -22px; left: 0; right: 0; height: 2px; background: var(--tree-line); }
.wp-org-children > .wp-org-node:first-child::after { left: 50%; }
.wp-org-children > .wp-org-node:last-child::after { right: 50%; }
.wp-org-children > .wp-org-node:only-child::after { display: none; }

/* ───────── Utilities ───────── */
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; } .flex-wrap { flex-wrap: wrap; } .text-center { text-align: center; }
.text-muted { color: var(--text-muted); } .hidden { display: none !important; } .w-full { width: 100%; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-10 { gap: 10px; } .gap-12 { gap: 12px; }
.mb-4 { margin-bottom: 4px; } .mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .p-20 { padding: 20px; }

/* ───────── Responsive ───────── */
@media (max-width: 1000px) { .wp-analytics { grid-template-columns: 1fr; } .chart-row-equal { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .sidebar { position: fixed; transform: translateX(-100%); transition: transform .25s; } .sidebar.open { transform: none; } .content { padding: 18px; } .header { padding: 0 18px; } .global-search { max-width: none; } .form-grid-2 { grid-template-columns: 1fr; } }

/* ═══════════ Giriş sayfası (zauth) ═══════════ */
.zauth { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 100vh; font-family: var(--font); }
.zauth-hero { position: relative; overflow: hidden; background: #0a0e17; color: #fff; display: flex; }
.zauth-hero-bg { position: absolute; inset: 0; background: radial-gradient(1200px 600px at 20% 20%, rgba(249,115,22,.18), transparent 60%), radial-gradient(900px 500px at 80% 90%, rgba(244,63,94,.14), transparent 55%); }
.zauth-hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(circle at 40% 40%, #000, transparent 75%); mask-image: radial-gradient(circle at 40% 40%, #000, transparent 75%); }
.zauth-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.zo-a { width: 300px; height: 300px; background: #f97316; top: -60px; left: -40px; animation: float 8s ease-in-out infinite; }
.zo-b { width: 260px; height: 260px; background: #e11d48; bottom: -40px; right: 40px; animation: float 10s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translateY(24px); } }
.zauth-hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; padding: 46px; width: 100%; }
.zauth-logo { display: flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.zauth-logo i { width: 42px; height: 42px; border-radius: 13px; background: var(--gradient-brand); display: flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: 0 8px 24px -6px rgba(249,115,22,.5); }
.zauth-hero-mid { margin-top: auto; margin-bottom: auto; max-width: 460px; }
.zauth-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; color: #f97316; margin-bottom: 16px; }
.zauth-hero-mid h1 { font-size: 40px; font-weight: 800; line-height: 1.1; letter-spacing: -.03em; margin-bottom: 14px; }
.zauth-hero-mid p { font-size: 15px; color: rgba(255,255,255,.62); line-height: 1.6; margin-bottom: 26px; }
.zauth-feats { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.zauth-feats li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: rgba(255,255,255,.82); font-weight: 500; }
.zauth-feats i { color: #f97316; width: 18px; }
.zauth-hero-foot { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: rgba(255,255,255,.5); font-weight: 500; }
.zauth-dot { width: 8px; height: 8px; border-radius: 50%; background: #2dd4a7; box-shadow: 0 0 10px #2dd4a7; }
.zauth-form { display: flex; align-items: center; justify-content: center; padding: 40px; background: var(--bg); }
.zauth-form-inner { width: 100%; max-width: 380px; animation: rise .4s ease; }
.zauth-badge { width: 54px; height: 54px; border-radius: 16px; background: var(--gradient-brand); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; box-shadow: 0 10px 28px -6px var(--accent-shadow); margin-bottom: 22px; }
.zauth-form-inner h2 { font-size: 25px; font-weight: 800; letter-spacing: -.02em; }
.zauth-sub { font-size: 13.5px; color: var(--text-muted); margin: 5px 0 26px; }
.zauth-err { background: var(--red-glow); color: var(--red); border: 1px solid color-mix(in srgb,var(--red) 30%,transparent); padding: 11px 14px; border-radius: 11px; font-size: 12.5px; font-weight: 600; margin-bottom: 16px; }
.zauth-label { display: block; font-size: 12px; font-weight: 700; color: var(--text-sec); margin-bottom: 7px; }
.zauth-field { position: relative; display: flex; align-items: center; margin-bottom: 16px; }
.zauth-field > i { position: absolute; left: 14px; font-size: 14px; color: var(--text-muted); pointer-events: none; }
.zauth-field input { width: 100%; height: 48px; padding: 0 14px 0 40px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-input); color: var(--text); font-size: 14px; font-family: inherit; transition: all .16s; }
.zauth-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.zauth-eye { position: absolute; right: 8px; width: 34px; height: 34px; border: 0; background: transparent; color: var(--text-muted); cursor: pointer; border-radius: 8px; }
.zauth-eye:hover { color: var(--text); }
.zauth-btn { width: 100%; height: 50px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 9px; transition: all .16s; box-shadow: 0 8px 22px -6px var(--accent-shadow); margin-top: 6px; }
.zauth-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.zauth-foot { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.zauth-foot button { width: 38px; height: 38px; border: 1px solid var(--border); background: var(--bg-input); border-radius: 10px; color: var(--text-sec); cursor: pointer; transition: all .16s; }
.zauth-foot button:hover { border-color: var(--accent); color: var(--accent); }
.zauth-foot a { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--text-sec); display: flex; align-items: center; gap: 6px; }
.zauth-foot a:hover { color: var(--accent); }
@media (max-width: 900px) { .zauth { grid-template-columns: 1fr; } .zauth-hero { display: none; } }
