/* ════════════════════════════════════════════════════════
   SHIFTEX — Modern Design System
   Light + Dark themes, Plus Jakarta Sans, refined corporate
   ════════════════════════════════════════════════════════ */

:root,
[data-theme="light"] {
  --bg:           #FAFAF9;
  --surface:      #FFFFFF;
  --surface-2:    #F4F4F2;
  --surface-3:    #ECECE8;
  --border:       #E5E5E1;
  --border-strong:#D4D4D0;
  --text:         #0E0E11;
  --text-2:       #56565E;
  --text-3:       #9C9CA3;
  --accent:       #5B5FCF;
  --accent-2:     #4549B8;
  --accent-soft:  #EEEEFA;
  --ok:           #16A34A;
  --ok-soft:      #DCFCE7;
  --warn:         #D97706;
  --warn-soft:    #FEF3C7;
  --err:          #DC2626;
  --err-soft:     #FEE2E2;
  --info:         #0891B2;
  --info-soft:    #CFFAFE;
  --shadow-sm:    0 1px 2px rgba(14,14,17,.04), 0 1px 1px rgba(14,14,17,.03);
  --shadow:       0 1px 3px rgba(14,14,17,.06), 0 4px 12px rgba(14,14,17,.04);
  --shadow-lg:    0 8px 24px rgba(14,14,17,.08), 0 2px 6px rgba(14,14,17,.04);
  --shadow-xl:    0 24px 48px -12px rgba(14,14,17,.18);
  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    14px;
  --radius-xl:    20px;
  --sidebar-w:    260px;
  --topbar-h:     64px;
  --transition:   180ms cubic-bezier(.4,0,.2,1);
}

[data-theme="dark"] {
  --bg:           #0A0A0C;
  --surface:      #131318;
  --surface-2:    #1B1B21;
  --surface-3:    #25252D;
  --border:       #27272F;
  --border-strong:#3A3A44;
  --text:         #F4F4F5;
  --text-2:       #A1A1A7;
  --text-3:       #6B6B72;
  --accent:       #7B7FE0;
  --accent-2:     #5B5FCF;
  --accent-soft:  #1E1E2E;
  --ok:           #34D399;
  --ok-soft:      #052E16;
  --warn:         #FBBF24;
  --warn-soft:    #422006;
  --err:          #F87171;
  --err-soft:     #450A0A;
  --info:         #22D3EE;
  --info-soft:    #083344;
  --shadow-sm:    0 1px 2px rgba(0,0,0,.3);
  --shadow:       0 4px 12px rgba(0,0,0,.4);
  --shadow-lg:    0 12px 32px rgba(0,0,0,.5);
  --shadow-xl:    0 24px 48px -12px rgba(0,0,0,.7);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition), color var(--transition);
}
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.text-right { text-align: right; }
.text-sub { color: var(--text-3); font-size: 12px; }

/* ════════ TYPOGRAPHY ════════ */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.font-mono { font-family: 'JetBrains Mono', monospace; font-feature-settings: "tnum"; }

/* ════════ SCROLLBAR ════════ */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* ════════ FORMS ════════ */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 12px; font-weight: 600; color: var(--text-2);
  letter-spacing: .01em;
}
.form-input, .form-select {
  width: 100%; padding: 10px 14px;
  font: inherit; color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all var(--transition);
}
.form-input::placeholder { color: var(--text-3); }
.form-input:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea.form-input { resize: vertical; min-height: 88px; font-family: inherit; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.checkbox-row {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  font-size: 13px; color: var(--text);
}
.checkbox-row input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }

/* ════════ BUTTONS ════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px;
  font: inherit; font-weight: 600; font-size: 13px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer; white-space: nowrap;
  transition: all var(--transition);
  position: relative;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover:not(:disabled) { background: var(--accent-2); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary {
  background: var(--surface);
  color: var(--text); border-color: var(--border);
}
.btn-secondary:hover:not(:disabled) { background: var(--surface-2); border-color: var(--border-strong); }
.btn-ghost {
  background: transparent; color: var(--text-2); border: 1px solid transparent;
}
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--err); color: white; }
.btn-danger:hover:not(:disabled) { background: #B91C1C; }
.btn-sm { padding: 6px 10px; font-size: 12px; }
.btn-full { width: 100%; }
.btn-group { display: inline-flex; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid transparent;
  color: var(--text-2);
  border-radius: var(--radius-sm); cursor: pointer;
  transition: all var(--transition);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
.link-btn {
  background: none; border: none; padding: 0;
  color: var(--accent); font: inherit; font-weight: 600; font-size: 13px;
  cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }

/* ════════ ALERTS ════════ */
.alert {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  border: 1px solid;
}
.alert-error { background: var(--err-soft); border-color: var(--err); color: var(--err); }

/* ════════ LOGIN — Modern split-screen (mesh + glassmorphism) ════════ */
.login-screen {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  overflow: hidden;
  background: var(--bg);
}

/* Animasyonlu mesh gradient arkaplan */
.login-bg-mesh {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  background: var(--bg);
}
.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  animation: blobFloat 22s ease-in-out infinite;
  mix-blend-mode: screen;
}
[data-theme="light"] .mesh-blob { mix-blend-mode: multiply; opacity: .35; }
.mesh-blob-1 { width: 520px; height: 520px; background: radial-gradient(circle, #7B7FE0 0%, transparent 70%); top: -8%; left: -10%; }
.mesh-blob-2 { width: 460px; height: 460px; background: radial-gradient(circle, #22D3EE 0%, transparent 70%); top: 30%; left: 35%; animation-delay: -7s; }
.mesh-blob-3 { width: 540px; height: 540px; background: radial-gradient(circle, #EC4899 0%, transparent 70%); bottom: -12%; right: -8%; animation-delay: -14s; }
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.08); }
  66%      { transform: translate(-30px, 40px) scale(.94); }
}
.mesh-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
[data-theme="light"] .mesh-grid {
  background-image:
    linear-gradient(rgba(0,0,0,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.04) 1px, transparent 1px);
}

/* Sol hero panel */
.login-hero {
  position: relative; z-index: 1;
  padding: 56px 64px;
  display: flex; flex-direction: column; justify-content: center;
  gap: 28px;
}
.login-hero-brand {
  display: flex; align-items: center; gap: 12px;
  font-size: 24px; font-weight: 800; letter-spacing: -.02em;
  color: var(--text);
}
.brand-mark-lg { width: 44px; height: 44px; }
.login-hero-title {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05; font-weight: 800;
  letter-spacing: -.035em;
  color: var(--text);
}
.gradient-text {
  background: linear-gradient(135deg, #7B7FE0 0%, #EC4899 50%, #22D3EE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.login-hero-sub {
  font-size: 16px;
  color: var(--text-2);
  max-width: 480px;
  line-height: 1.55;
}
.login-features {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}
.login-features li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
  transition: all var(--transition);
}
.login-features li:hover {
  background: rgba(255,255,255,.06);
  transform: translateX(4px);
}
[data-theme="light"] .login-features li { background: rgba(255,255,255,.7); }
.login-features strong { display: block; font-size: 14px; color: var(--text); margin-bottom: 2px; }
.login-features small  { font-size: 12px; color: var(--text-3); display: block; }
.lf-dot {
  flex-shrink: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  box-shadow: 0 0 0 4px currentColor;
  opacity: .9;
}
.lf-dot-violet { background: #A78BFA; color: rgba(167,139,250,.15); }
.lf-dot-blue   { background: #22D3EE; color: rgba(34,211,238,.15); }
.lf-dot-green  { background: #34D399; color: rgba(52,211,153,.15); }

/* Sağ form panel — glass card */
.login-card-wrap {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.login-card-glass {
  width: 100%; max-width: 440px;
  background: rgba(19,19,24,.7);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  padding: 48px 40px 36px;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow:
    0 24px 60px -12px rgba(0,0,0,.6),
    0 0 0 1px rgba(255,255,255,.05) inset;
  display: flex; flex-direction: column; gap: 16px;
  animation: cardIn .6s cubic-bezier(.16,1,.3,1);
}
[data-theme="light"] .login-card-glass {
  background: rgba(255,255,255,.75);
  border-color: rgba(0,0,0,.06);
  box-shadow:
    0 24px 60px -12px rgba(14,14,17,.18),
    0 0 0 1px rgba(255,255,255,.6) inset;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.login-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 800; letter-spacing: -.02em;
  color: var(--accent); margin-bottom: 8px;
}
.brand-mark { color: var(--accent); width: 32px; height: 32px; flex-shrink: 0; }
.brand-mark svg { width: 100%; height: 100%; }
.login-title { font-size: 28px; font-weight: 800; letter-spacing: -.03em; color: var(--text); }
.login-subtitle { font-size: 14px; color: var(--text-2); margin-top: -4px; margin-bottom: 8px; }
.login-foot { text-align: center; font-size: 11px; color: var(--text-3); margin-top: 12px; }

/* Input with icon */
.input-with-icon {
  position: relative;
}
.input-with-icon > svg:first-child {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--text-3);
  pointer-events: none;
}
.input-with-icon .form-input {
  padding-left: 42px;
  padding-right: 42px;
}
.input-toggle {
  position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%);
  background: transparent; border: 0;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
  cursor: pointer;
  border-radius: 6px;
  transition: color var(--transition);
}
.input-toggle:hover { color: var(--text); }
.input-toggle svg { width: 18px; height: 18px; }

.login-divider {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .08em;
  margin: 8px 0 4px;
}
.login-divider::before, .login-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.btn-lg {
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
}

/* Mobile: tek panel */
@media (max-width: 900px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-hero { display: none; }
  .login-card-wrap { padding: 20px; }
}

/* ════════════════════════════════════════════════════════════
   HERO İLLÜSTRASYON — Animasyonlu saat + vardiya silüetleri
   ════════════════════════════════════════════════════════════ */
.hero-illust {
  position: relative;
  width: 100%;
  height: 380px;
  margin: 32px auto;
  display: flex; align-items: center; justify-content: center;
}

/* Pulse halkaları */
.hero-ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1.5px solid rgba(123,127,224,.2);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero-ring-1 { width: 220px; height: 220px; animation: ringPulse 4s ease-in-out infinite; }
.hero-ring-2 { width: 300px; height: 300px; animation: ringPulse 4s ease-in-out infinite .8s; }
.hero-ring-3 { width: 380px; height: 380px; animation: ringPulse 4s ease-in-out infinite 1.6s; }
@keyframes ringPulse {
  0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.95); }
  50%      { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Merkez saat */
.hero-clock {
  width: 200px; height: 200px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 8px 24px rgba(91,95,207,.4));
  color: var(--text-2);
  animation: clockFloat 6s ease-in-out infinite;
}
@keyframes clockFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.clock-hand-min  { animation: rotateClock 8s linear infinite; }
.clock-hand-hour { animation: rotateClock 96s linear infinite; }
@keyframes rotateClock {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Vardiya karakterleri (saatin etrafında) */
.hero-character {
  position: absolute;
  top: 50%; left: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  animation: charFloat 4s ease-in-out infinite;
}
.hero-char-morning {
  margin-top: -160px;  /* yukarı */
  animation-delay: 0s;
}
.hero-char-afternoon {
  margin-left: 145px;
  margin-top: 50px;   /* sağ-alt */
  animation-delay: 1.3s;
}
.hero-char-night {
  margin-left: -145px;
  margin-top: 50px;   /* sol-alt */
  animation-delay: 2.6s;
}
@keyframes charFloat {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50%      { transform: translate(-50%, -50%) translateY(-8px); }
}
.hero-char-bubble {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow:
    0 8px 20px rgba(0,0,0,.25),
    0 0 0 4px rgba(255,255,255,.05) inset;
}
[data-theme="light"] .hero-char-bubble {
  box-shadow:
    0 8px 24px rgba(0,0,0,.12),
    0 0 0 4px rgba(255,255,255,.5) inset;
}
.hero-char-bubble svg { width: 28px; height: 28px; }
.hero-char-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

/* Uçan kartlar (havada hareket eden vardiya kartları) */
.hero-card {
  position: absolute;
  z-index: 4;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  background: rgba(19,19,24,.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  font-size: 11px; font-weight: 600;
  color: var(--text);
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  white-space: nowrap;
}
[data-theme="light"] .hero-card {
  background: rgba(255,255,255,.9);
  border-color: rgba(0,0,0,.06);
}
.hcd-dot { width: 8px; height: 8px; border-radius: 50%; }
.hcd-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-3);
  margin-left: 2px;
}
.hero-card-1 { top: 10%;  left: 8%;  animation: cardFloat1 8s ease-in-out infinite; }
.hero-card-2 { top: 25%; right: 8%;  animation: cardFloat2 8s ease-in-out infinite 1s; }
.hero-card-3 { bottom: 25%; left: 4%; animation: cardFloat3 8s ease-in-out infinite 2s; }
.hero-card-4 { bottom: 12%; right: 12%; animation: cardFloat4 8s ease-in-out infinite 3s; }
@keyframes cardFloat1 {
  0%, 100% { transform: translate(0, 0) rotate(-3deg); }
  50%      { transform: translate(8px, -10px) rotate(0deg); }
}
@keyframes cardFloat2 {
  0%, 100% { transform: translate(0, 0) rotate(4deg); }
  50%      { transform: translate(-6px, 10px) rotate(0deg); }
}
@keyframes cardFloat3 {
  0%, 100% { transform: translate(0, 0) rotate(2deg); }
  50%      { transform: translate(10px, -8px) rotate(-2deg); }
}
@keyframes cardFloat4 {
  0%, 100% { transform: translate(0, 0) rotate(-2deg); }
  50%      { transform: translate(-8px, -12px) rotate(2deg); }
}
.hero-card-success {
  background: linear-gradient(135deg, #34D399, #22D3EE);
  color: white;
  border-color: rgba(255,255,255,.3);
}
.hero-card-success .hcd-check {
  font-weight: 800;
  font-size: 13px;
}

/* Partikül arka plan */
.particle-field {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.particle-field::before,
.particle-field::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123,127,224,.3) 0%, transparent 70%);
  filter: blur(20px);
  animation: drift 30s ease-in-out infinite;
}
.particle-field::before {
  width: 180px; height: 180px;
  top: 60%; left: 20%;
}
.particle-field::after {
  width: 220px; height: 220px;
  top: 20%; right: 30%;
  animation-delay: -15s;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(60px, -40px); }
}

/* ════════════════════════════════════════════════════════════
   LOGIN CONTROLS (top-right: language + theme)
   ════════════════════════════════════════════════════════════ */
.login-controls {
  position: absolute;
  top: 20px; right: 24px;
  z-index: 10;
  display: flex; align-items: center; gap: 8px;
}
.login-controls .icon-btn {
  background: rgba(19,19,24,.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text);
}
[data-theme="light"] .login-controls .icon-btn {
  background: rgba(255,255,255,.7);
  border-color: rgba(0,0,0,.08);
}
.login-controls .icon-btn:hover { background: var(--surface-2); }

/* ════════════════════════════════════════════════════════════
   DİL TOGGLE
   ════════════════════════════════════════════════════════════ */
.lang-toggle {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-toggle-login {
  background: rgba(19,19,24,.5);
  backdrop-filter: blur(8px);
  border-color: rgba(255,255,255,.08);
}
[data-theme="light"] .lang-toggle-login {
  background: rgba(255,255,255,.7);
  border-color: rgba(0,0,0,.08);
}
.lang-opt {
  background: transparent;
  border: 0;
  padding: 5px 12px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--text-3);
  cursor: pointer;
  border-radius: 999px;
  transition: all var(--transition);
}
.lang-opt:hover { color: var(--text); }
.lang-opt.active {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 8px rgba(91,95,207,.4);
}

/* Dropdown lang row */
.dropdown-lang-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text-2);
}
.dropdown-lang-row svg { width: 16px; height: 16px; flex-shrink: 0; }
.dropdown-lang-row .lang-toggle { margin-left: auto; }
.dropdown-lang-row .lang-opt { padding: 4px 10px; font-size: 10px; }

/* Mobil: kontrolleri biraz daha küçük */
@media (max-width: 600px) {
  .login-controls { top: 12px; right: 12px; }
  .hero-illust { height: 320px; }
  .hero-card { font-size: 10px; padding: 5px 8px; }
}

/* ════════ APP LAYOUT ════════ */
.app { display: flex; min-height: 100vh; }
.main-wrap {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  margin-left: var(--sidebar-w);
}

/* ════════ SIDEBAR ════════ */
.sidebar {
  position: fixed; top: 0; left: 0;
  width: var(--sidebar-w); height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  z-index: 50;
  transition: transform var(--transition);
}
.sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 20px;
  font-size: 18px; font-weight: 800; letter-spacing: -.02em;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  height: var(--topbar-h);
}
.sidebar-brand .brand-mark { color: var(--accent); }
.sidebar-nav {
  flex: 1; padding: 16px 12px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px;
}
.nav-section {
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-3);
  padding: 14px 12px 6px;
}
.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-2);
  font-weight: 500; font-size: 13.5px;
  transition: all var(--transition);
  position: relative;
}
.nav-link svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .8; }
.nav-link:hover {
  background: var(--surface-2);
  color: var(--text);
}
.nav-link.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.nav-link.active svg { opacity: 1; }
.nav-link.active::before {
  content: '';
  position: absolute; left: -12px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 16px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}
.sidebar-foot {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
}
.version-tag {
  font-size: 11px; color: var(--text-3); font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
}

/* ════════ TOPBAR ════════ */
.topbar {
  position: sticky; top: 0; z-index: 30;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 28px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.topbar-title { font-size: 16px; font-weight: 700; flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-sun, .icon-moon { display: block; }
[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }

/* ════════ USER MENU ════════ */
.user-menu { position: relative; }
.user-trigger {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px 6px 6px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 24px;
  cursor: pointer;
  transition: all var(--transition);
}
.user-trigger:hover { background: var(--surface-2); border-color: var(--border); }
.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 700;
  color: white;
  overflow: hidden;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-info { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.user-name { font-size: 13px; font-weight: 600; color: var(--text); }
.user-role { font-size: 11px; color: var(--text-3); }
.user-caret {
  width: 14px; height: 14px;
  color: var(--text-3);
  transition: transform var(--transition);
}
.user-menu.open .user-caret { transform: rotate(180deg); }

.user-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0;
  width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transform: translateY(-4px);
  transition: all var(--transition);
  z-index: 100;
}
.user-menu.open .user-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-header {
  padding: 10px 12px;
  font-size: 12px; color: var(--text-2);
  line-height: 1.3;
}
.dropdown-header strong { display: block; color: var(--text); font-size: 13px; }
.dropdown-divider {
  height: 1px; background: var(--border);
  margin: 4px 0;
}
.dropdown-item {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: transparent; border: none;
  border-radius: 6px;
  font: inherit; font-size: 13px;
  color: var(--text);
  cursor: pointer; text-align: left;
  transition: background var(--transition);
}
.dropdown-item svg { width: 16px; height: 16px; color: var(--text-2); }
.dropdown-item:hover { background: var(--surface-2); }
.dropdown-item.dropdown-danger { color: var(--err); }
.dropdown-item.dropdown-danger svg { color: var(--err); }
.dropdown-item.dropdown-danger:hover { background: var(--err-soft); }

/* ════════ CONTENT ════════ */
.content { flex: 1; padding: 32px; min-width: 0; }
.page { animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ════════ HERO (Dashboard) ════════ */
.hero {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.hero-title { font-size: 32px; font-weight: 800; letter-spacing: -.03em; }
.hero-sub { font-size: 14px; color: var(--text-2); margin-top: 4px; }
.hero-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
}

/* ════════ PAGE HEADER ════════ */
.page-header {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.page-title { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.page-sub { font-size: 13.5px; color: var(--text-2); margin-top: 4px; }

/* ════════ TOOLBAR ════════ */
.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.search {
  position: relative;
  flex: 1; max-width: 360px;
}
.search svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--text-3);
}
.search input { padding-left: 36px; }
.pager { display: flex; align-items: center; gap: 8px; }
.week-nav { display: flex; align-items: center; gap: 6px; }
.week-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px; font-weight: 500;
  color: var(--text-2);
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

/* ════════ CARD ════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition);
}
.card.no-pad { padding: 0; overflow: hidden; }
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.card-head h3 { font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.card-tag {
  background: var(--accent-soft); color: var(--accent);
  padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
}
.card-body { display: flex; flex-direction: column; gap: 4px; }

/* ════════ STAT GRID ════════ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  position: relative; overflow: hidden;
  transition: all var(--transition);
}
.stat-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.stat-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.stat-icon svg { width: 20px; height: 20px; }
.stat-icon.icon-blue   { background: var(--accent-soft); color: var(--accent); }
.stat-icon.icon-green  { background: var(--ok-soft);     color: var(--ok); }
.stat-icon.icon-amber  { background: var(--warn-soft);   color: var(--warn); }
.stat-icon.icon-red    { background: var(--err-soft);    color: var(--err); }
.stat-icon.icon-cyan   { background: var(--info-soft);   color: var(--info); }
.stat-icon.icon-violet { background: var(--accent-soft); color: var(--accent); }
.stat-val {
  font-size: 28px; font-weight: 800;
  letter-spacing: -.025em;
  font-feature-settings: "tnum";
  color: var(--text);
  line-height: 1.1;
}
.stat-lbl { font-size: 12.5px; color: var(--text-2); margin-top: 4px; font-weight: 500; }

/* ════════ DASH GRID ════════ */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.present-row, .leave-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.present-row:last-child, .leave-row:last-child { border-bottom: none; }
.pr-info { flex: 1; }
.pr-info strong { font-size: 13.5px; font-weight: 600; display: block; }
.pr-info small { font-size: 11.5px; color: var(--text-3); }
.leave-row strong { font-size: 13px; font-weight: 600; }
.leave-row span { font-size: 12px; color: var(--text-2); }

.empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
}

/* ════════ TABLE ════════ */
.table-wrap { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th {
  background: var(--surface-2);
  padding: 12px 18px;
  text-align: left;
  color: var(--text-2);
  font-weight: 600; font-size: 12px;
  letter-spacing: .01em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface-2); }
.name-cell {
  display: flex; align-items: center; gap: 10px;
  font-weight: 500;
}
.av {
  width: 32px; height: 32px;
  border-radius: 50%; flex-shrink: 0;
  object-fit: cover;
}
.av-init {
  width: 32px; height: 32px;
  border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  color: white;
}

/* ════════ BADGE ════════ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px; font-weight: 600;
  letter-spacing: .01em;
}
.badge-ok    { background: var(--ok-soft);     color: var(--ok); }
.badge-warn  { background: var(--warn-soft);   color: var(--warn); }
.badge-err   { background: var(--err-soft);    color: var(--err); }
.badge-on    { background: var(--accent-soft); color: var(--accent); }
.badge-admin { background: var(--accent-soft); color: var(--accent); }
.badge-emp   { background: var(--surface-2);   color: var(--text-2); }
.badge-info  { background: var(--info-soft);   color: var(--info); }

/* ════════ TOAST ════════ */
.toast-container {
  position: fixed; top: 80px; right: 24px;
  z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
  max-width: 380px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: slideInRight .3s cubic-bezier(.4,0,.2,1);
}
.toast-ok  { border-left-color: var(--ok); }
.toast-err { border-left-color: var(--err); }
.toast-warn { border-left-color: var(--warn); }
@keyframes slideInRight { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

/* ════════ MODAL ════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
  padding: 20px;
  animation: overlayIn .2s ease;
}
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%; max-width: 540px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-height: 90vh; overflow-y: auto;
  animation: modalIn .25s cubic-bezier(.4,0,.2,1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.modal-head h3 { font-size: 16px; font-weight: 700; }
.modal-body {
  padding: 22px;
  display: flex; flex-direction: column; gap: 16px;
}
.modal-foot {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 16px 22px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.info-banner {
  background: var(--accent-soft); color: var(--accent);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
}

/* ════════ ROSTER ════════ */
.roster-table { width: 100%; border-collapse: collapse; }
.roster-table th {
  background: var(--surface-2);
  padding: 10px 12px;
  text-align: center;
  border: 1px solid var(--border);
  font-size: 11.5px; font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase; letter-spacing: .03em;
}
.roster-table th small {
  display: block; font-weight: 500; font-size: 10px;
  margin-top: 2px; color: var(--text-3); text-transform: none;
  font-family: 'JetBrains Mono', monospace;
}
.roster-table td {
  border: 1px solid var(--border);
  padding: 6px 8px;
  vertical-align: middle;
  min-width: 110px;
}
.roster-table td:first-child {
  background: var(--surface-2);
  font-weight: 500;
}
.shift-chip {
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px; font-weight: 600;
  color: white;
  cursor: pointer; text-align: center;
  line-height: 1.3;
  transition: transform var(--transition);
  box-shadow: var(--shadow-sm);
}
.shift-chip:hover { transform: scale(1.04); }
.shift-chip small { display: block; font-weight: 500; font-size: 10px; opacity: .9; margin-top: 1px; font-family: 'JetBrains Mono', monospace; }
.shift-chip.sm { display: inline-flex; padding: 4px 10px; }
.shift-empty {
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 18px; font-weight: 300;
  cursor: pointer; padding: 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.shift-empty:hover { background: var(--surface-2); color: var(--text-2); }

/* ════════ FACE PANEL ════════ */
.face-panel {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  margin-bottom: 20px;
}
.face-cam-wrap {
  position: relative;
  width: 320px; height: 240px;
  background: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.face-cam-wrap video, .face-cam-wrap canvas {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
}
.face-status {
  font-size: 13px; color: var(--text-2);
  text-align: center; min-height: 1.5em;
  font-weight: 500;
}

/* ════════ ENROLL ════════ */
.enroll-grid { display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: start; }
.el-it {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.el-it:last-child { border-bottom: none; }
.el-info { flex: 1; }
.el-info strong { font-size: 13px; font-weight: 600; display: block; }
.el-info small { font-size: 11px; color: var(--text-3); }
.el-del {
  width: 32px; height: 32px;
  background: transparent; border: none;
  color: var(--err); cursor: pointer;
  border-radius: var(--radius-sm);
  font-size: 16px;
  transition: background var(--transition);
}
.el-del:hover { background: var(--err-soft); }

/* ════════ PROFILE ════════ */
.profile-grid { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
.profile-photo-card {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.profile-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 700; color: white;
  overflow: hidden;
  margin-bottom: 12px;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo-name { font-size: 15px; font-weight: 700; }
.profile-photo-role { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.divider { height: 1px; background: var(--border); width: 100%; margin: 16px 0; }
.profile-table { width: 100%; border-collapse: collapse; }
.profile-table th, .profile-table td { padding: 10px 0; border-top: 1px solid var(--border); }
.profile-table tr:first-child th, .profile-table tr:first-child td { border-top: none; }
.profile-table th {
  text-align: left; color: var(--text-2);
  font-size: 12px; font-weight: 500; width: 140px;
}
.profile-table td { font-size: 13.5px; font-weight: 500; }

/* ════════ FILTER BAR ════════ */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-bar .form-select { width: 180px; }

/* ════════ MOBILE ════════ */
.mobile-only { display: none; }
@media (max-width: 900px) {
  .mobile-only { display: inline-flex; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-xl); }
  .main-wrap { margin-left: 0; }
  .topbar { padding: 0 16px; }
  .content { padding: 20px; }
  .user-info { display: none; }
  .dash-grid, .enroll-grid, .profile-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid-2 { grid-template-columns: 1fr; }
  .hero-title { font-size: 24px; }
  .page-title { font-size: 22px; }
}

/* ════════════════════════════════════════════════════════
   NEW: Vardiya Modal — Kategori Sekmeleri & Tip Grid
   ════════════════════════════════════════════════════════ */
.modal-lg { max-width: 640px; }

.shift-cat-tabs {
  display: flex; gap: 4px;
  background: var(--surface-2);
  padding: 4px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.shift-cat-tab {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 12px;
  background: transparent;
  border: 0;
  border-radius: calc(var(--radius) - 4px);
  font-family: inherit;
  font-size: 13px; font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--transition);
}
.shift-cat-tab:hover { color: var(--text); background: var(--surface-3); }
.shift-cat-tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.cat-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
}

.shift-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.shift-type-card {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.shift-type-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.shift-type-card.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(91,95,207,.15);
}
.shift-type-card .stc-info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
}
.shift-type-card .stc-info strong { font-size: 13px; font-weight: 600; color: var(--text); }
.shift-type-card .stc-info small {
  font-size: 11px; color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 1px;
}
.shift-type-card .stc-check {
  width: 18px; height: 18px;
  color: var(--accent);
  opacity: 0;
  transition: opacity var(--transition);
}
.shift-type-card.selected .stc-check { opacity: 1; }

/* ════════ Mevcut atamalar listesi ════════ */
.existing-shifts {
  display: flex; flex-direction: column; gap: 6px;
}
.existing-shift-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.btn-icon-mini {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 26px; height: 26px;
  cursor: pointer;
  color: var(--text-2);
  font-size: 13px;
  transition: all var(--transition);
}
.btn-icon-mini:hover { background: var(--surface-3); color: var(--text); }

/* ════════ Roster: Çoklu Shift + Fazla Mesai ════════ */
.roster-table td > .shift-chip + .shift-chip { margin-top: 4px; }
.roster-table td > .shift-chip + .shift-add-more { margin-top: 4px; }

.shift-chip.cat-overtime {
  border: 1.5px dashed rgba(255,255,255,.45);
}
.shift-chip.cat-leave {
  font-style: italic;
}
.fm-badge {
  display: inline-block;
  background: rgba(255,255,255,.22);
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 5px;
  letter-spacing: .02em;
  vertical-align: middle;
}
.shift-chip .chip-name {
  display: block;
  font-weight: 700;
  font-size: 11px;
}
.shift-add-more {
  display: flex; align-items: center; justify-content: center;
  height: 22px;
  font-size: 13px; font-weight: 600;
  color: var(--text-3);
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}
.shift-add-more:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.shift-blank {
  text-align: center;
  color: var(--text-3);
  font-size: 14px;
  padding: 8px;
  opacity: .5;
}

/* Personel için readonly roster */
.readonly-roster .shift-chip,
.readonly-roster .shift-add-more { cursor: default; }
.readonly-roster .shift-chip:hover { transform: none; }
.row-me {
  background: linear-gradient(90deg, var(--accent-soft), transparent 60%);
}
.row-me td:first-child {
  border-left: 3px solid var(--accent);
}
.me-tag {
  color: var(--accent);
  font-weight: 700;
  margin-left: 4px;
}

/* ════════ Personel Modal: Foto Yükleme ════════ */
.emp-photo-row {
  display: flex; gap: 16px; align-items: center;
  padding: 12px; background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.emp-photo-preview {
  width: 72px; height: 72px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface-3);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--border-strong);
}
.emp-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.emp-photo-preview .av-init {
  width: 100% !important; height: 100% !important;
  font-size: 24px !important; border-radius: 0 !important;
}
.emp-photo-actions {
  display: flex; flex-direction: column; gap: 6px;
  align-items: flex-start;
}

/* ════════ Departman Sayı Rozeti ════════ */
.dept-count-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.dept-count-badge svg { width: 14px; height: 14px; }

/* ════════ Divider helper ════════ */
.divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
  width: 100%;
}

/* ════════════════════════════════════════════════════════════
   v1.1: Modern Dashboard, Notifications, Roster Enhancements
   ════════════════════════════════════════════════════════════ */

/* ════════ Hero ════════ */
.hero-gradient {
  position: relative;
  background:
    radial-gradient(ellipse 800px 400px at 0% 0%, var(--accent-soft) 0%, transparent 60%),
    radial-gradient(ellipse 600px 400px at 100% 100%, rgba(34,211,238,.08) 0%, transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  overflow: hidden;
}
.hero-content { flex: 1; min-width: 0; }
.hero-meta {
  text-align: right;
  flex-shrink: 0;
}
.hero-date {
  font-size: 13px;
  color: var(--text-2);
  text-transform: capitalize;
}
.hero-clock {
  font-family: 'JetBrains Mono', monospace;
  font-size: 36px; font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-top: 4px;
}

/* ════════ Stat cards — zenginleştirilmiş ════════ */
.stat-card-rich {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 20px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card-rich:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.stat-card-rich .stat-content { display: flex; flex-direction: column; }
.stat-card-rich .stat-val { font-size: 28px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.stat-card-rich .stat-lbl { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.stat-card-rich .stat-hint {
  position: absolute; top: 14px; right: 16px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-3);
  background: var(--surface-2);
  padding: 2px 8px;
  border-radius: 6px;
}

/* ════════ Dashboard grids ════════ */
.dash-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
@media (max-width: 1100px) {
  .dash-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .dash-grid-3 { grid-template-columns: 1fr; }
}

.late-mins { color: var(--warn); font-weight: 600; }
.upcoming-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.upcoming-row:last-child { border-bottom: 0; }

/* Shift distribution chart (CSS-only horizontal bars) */
.dist-row {
  display: grid;
  grid-template-columns: 130px 1fr 80px;
  gap: 14px;
  align-items: center;
  padding: 8px 0;
}
.dist-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  color: var(--text);
}
.dist-dot {
  width: 10px; height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}
.dist-bar {
  height: 8px;
  background: var(--surface-2);
  border-radius: 4px;
  overflow: hidden;
}
.dist-fill {
  height: 100%;
  border-radius: 4px;
  transition: width .5s ease;
}
.dist-val {
  text-align: right;
  display: flex; flex-direction: column;
  font-family: 'JetBrains Mono', monospace;
}
.dist-val strong { font-size: 14px; color: var(--text); }
.dist-val small  { font-size: 11px; color: var(--text-3); }

/* ════════ Notification Center ════════ */
.notif-menu { position: relative; }
.notif-trigger { position: relative; }
.notif-badge {
  position: absolute; top: 4px; right: 4px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  background: var(--err);
  color: white;
  font-size: 10px; font-weight: 700;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--surface);
  animation: badgePop .3s cubic-bezier(.16,1,.3,1);
}
@keyframes badgePop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}
.notif-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: 360px; max-height: 480px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  display: none;
  flex-direction: column;
  z-index: 100;
  overflow: hidden;
}
.notif-menu.open .notif-dropdown { display: flex; animation: cardIn .2s ease; }
.notif-list {
  flex: 1; overflow-y: auto;
  padding: 4px 0;
}
.notif-item {
  display: flex; gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: transparent; border: 0;
  border-left: 3px solid transparent;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
  align-items: flex-start;
}
.notif-item:hover {
  background: var(--surface-2);
  border-left-color: var(--accent);
}
.notif-icon { font-size: 20px; line-height: 1; padding-top: 2px; }
.notif-content { flex: 1; min-width: 0; }
.notif-title  { font-size: 13px; font-weight: 600; color: var(--text); }
.notif-body   { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.notif-foot {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  text-align: center;
}
.notif-foot small { color: var(--text-3); font-size: 11px; }

/* ════════ Page action group ════════ */
.page-actions {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.form-select-sm {
  padding: 6px 28px 6px 10px;
  font-size: 13px;
  height: 32px;
}
.btn-sm {
  padding: 6px 12px;
  font-size: 12.5px;
}

@media (max-width: 900px) {
  .hero-gradient { flex-direction: column; align-items: flex-start; }
  .hero-meta { text-align: left; }
  .hero-clock { font-size: 28px; }
  .notif-dropdown { width: calc(100vw - 32px); right: 16px; }
}

/* ════════ Personel Dashboard — özel componentler ════════ */
.ms-row {
  display: grid;
  grid-template-columns: 1.4fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background var(--transition);
}
.ms-row + .ms-row { margin-top: 4px; }
.ms-row:hover { background: var(--surface-2); }
.ms-row.ms-today {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.ms-day strong { display: block; font-size: 13px; color: var(--text); }
.ms-day small  { display: block; font-size: 11px; color: var(--text-3); }
.ms-chip {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 999px;
  color: white; font-size: 11px; font-weight: 700;
  white-space: nowrap;
}
.ms-time {
  text-align: right;
  font-size: 12px; color: var(--text-2);
}

/* Sonraki vardiya kartı */
.next-shift {
  text-align: center;
  padding: 20px 16px;
  display: flex; flex-direction: column;
  gap: 8px; align-items: center;
}
.ns-day {
  font-size: 11px; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-3);
  font-weight: 700;
}
.ns-chip {
  padding: 8px 18px;
  border-radius: 999px;
  color: white;
  font-weight: 700;
  font-size: 14px;
}
.ns-time {
  font-size: 18px; font-weight: 700;
  color: var(--text);
}
.ns-date { font-size: 12px; color: var(--text-3); }

/* Mini izin özeti */
.leave-mini {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.leave-mini:last-child { border-bottom: 0; }
.leave-mini .lm-info strong { display: block; font-size: 13px; color: var(--text); }
.leave-mini .lm-info small  { font-size: 11px; color: var(--text-3); }

/* Hızlı eylemler */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 4px;
}
.quick-action {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all var(--transition);
}
.quick-action:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.qa-icon { font-size: 22px; }
.qa-text strong { display: block; font-size: 13px; color: var(--text); }
.qa-text small  { font-size: 11px; color: var(--text-3); display: block; margin-top: 2px; }

/* Ay özet alt bilgi */
.month-bars { display: flex; flex-direction: column; gap: 4px; }
.month-totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.month-totals > div {
  text-align: center;
  display: flex; flex-direction: column;
  padding: 8px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
}
.month-totals strong { font-size: 18px; color: var(--text); font-family: 'JetBrains Mono', monospace; }
.month-totals small  { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }

@media (max-width: 700px) {
  .ms-row { grid-template-columns: 1fr auto; }
  .ms-time { display: none; }
  .quick-actions { grid-template-columns: 1fr; }
}

/* ════════ Personel Profil View Modal ════════ */
.emp-row:hover { background: var(--surface-2); }

.profile-view-head {
  display: flex; gap: 20px; align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.profile-view-avatar .av-init {
  border: 3px solid var(--surface);
  box-shadow: var(--shadow);
}
.profile-view-meta { flex: 1; min-width: 0; }
.profile-view-name {
  font-size: 22px; font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 6px;
  color: var(--text);
}
.profile-view-role {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.profile-view-dept {
  font-size: 12px;
  color: var(--text-2);
  background: var(--surface-2);
  padding: 2px 10px;
  border-radius: 999px;
}
.profile-view-pos {
  font-size: 13px; color: var(--text-3);
  font-style: italic;
}
.profile-view-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.pv-info {
  display: flex; flex-direction: column;
  padding: 10px 12px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.pv-label {
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
  margin-bottom: 3px;
}
.pv-val { font-size: 13px; color: var(--text); }
.pv-section { margin-top: 18px; }
.pv-section h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-3);
  margin-bottom: 10px;
  font-weight: 700;
}
.pv-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.pv-stat {
  display: flex; flex-direction: column;
  text-align: center;
  padding: 10px 6px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.pv-stat strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  color: var(--text);
}
.pv-stat small {
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  margin-top: 2px;
}

/* Disabled shift category tab */
.shift-cat-tab.disabled-tab {
  opacity: .35;
  cursor: not-allowed;
  pointer-events: auto;
}
.shift-cat-tab.disabled-tab:hover {
  background: transparent;
  color: var(--text-3);
}

@media (max-width: 700px) {
  .profile-view-grid { grid-template-columns: 1fr; }
  .pv-stats { grid-template-columns: repeat(3, 1fr); }
}

/* ════════════════════════════════════════════════════
   Departmanlar — Modern Card Grid
   ════════════════════════════════════════════════════ */
.dept-summary-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.dept-summary-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex; flex-direction: column;
}
.dsi-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px; font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
}
.dsi-lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-3);
  margin-top: 4px;
}

.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.dept-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: all var(--transition);
  cursor: default;
}
.dept-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.dept-card-bg {
  position: absolute;
  top: -60px; right: -60px;
  width: 160px; height: 160px;
  border-radius: 50%;
  opacity: .25;
  filter: blur(40px);
  pointer-events: none;
}
[data-theme="light"] .dept-card-bg { opacity: .35; }
.dept-card.dept-card-empty .dept-card-bg { opacity: .12; filter: blur(50px) grayscale(.4); }

.dept-card-head {
  display: flex; align-items: center; justify-content: space-between;
  position: relative;
  margin-bottom: 10px;
}
.dept-emoji {
  font-size: 28px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.2));
}
.dept-card-menu {
  background: transparent;
  border: 0;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  color: var(--text-3);
  cursor: pointer;
  opacity: 0;
  transition: all var(--transition);
}
.dept-card:hover .dept-card-menu { opacity: 1; }
.dept-card-menu:hover { background: var(--err-soft); color: var(--err); }
.dept-card-menu svg { width: 16px; height: 16px; }

.dept-card-name {
  font-size: 17px; font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 12px;
  position: relative;
}

.dept-card-count {
  display: flex; align-items: baseline; gap: 6px;
  margin-bottom: 14px;
  position: relative;
}
.dcc-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 32px; font-weight: 800;
  color: var(--text);
  line-height: 1;
  letter-spacing: -.02em;
}
.dcc-lbl {
  font-size: 13px;
  color: var(--text-3);
}
.dcc-empty {
  font-size: 13px;
  color: var(--text-3);
  font-style: italic;
}

.dept-members {
  display: flex;
  position: relative;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.dept-avatar {
  margin-left: -8px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  position: relative;
  transition: transform var(--transition);
}
.dept-avatar:first-child { margin-left: 0; }
.dept-avatar:hover { transform: translateY(-2px); z-index: 1; }
.dept-avatar-more {
  width: 28px; height: 28px;
  background: var(--surface-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  color: var(--text-2);
}
.dept-members-empty {
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 12px;
  text-align: center;
  position: relative;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  grid-column: 1 / -1;
}
.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.empty-state h3 {
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--text);
}
.empty-state p {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 16px;
}

/* Roster — clickable name cell */
.name-cell-clickable {
  cursor: pointer;
  transition: color var(--transition);
}
.name-cell-clickable:hover span {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 700px) {
  .dept-summary-bar { grid-template-columns: 1fr; }
  .dept-grid { grid-template-columns: 1fr; }
}

/* ════════ Swap Tabs ════════ */
.swap-tabs {
  display: inline-flex;
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}
.swap-tab {
  background: transparent;
  border: 0;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 13px; font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  border-radius: calc(var(--radius) - 4px);
  transition: all var(--transition);
}
.swap-tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
