:root {
  --bg-dark: #070a14;
  --bg-card: rgba(18, 26, 45, 0.75);
  --bg-card-hover: rgba(28, 38, 65, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.25);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  
  --accent-primary: #6366f1;
  --accent-primary-glow: rgba(99, 102, 241, 0.4);
  --accent-secondary: #0ea5e9;
  --accent-success: #10b981;
  --accent-success-glow: rgba(16, 185, 129, 0.35);
  --accent-warning: #f59e0b;
  --accent-danger: #ef4444;
  --accent-purple: #8b5cf6;
  --accent-orange: #f97316;

  --sidebar-width: 260px;
  --header-height: 70px;
  --radius-lg: 20px;
  --radius-md: 12px;
  --font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme (Gündüz Modu) Overrides */
[data-theme="light"] {
  --bg-dark: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;
  --border-color: rgba(226, 232, 240, 0.9);
  --border-glow: rgba(99, 102, 241, 0.2);
  --text-main: #0f172a;
  --text-muted: #64748b;

  --accent-primary-glow: rgba(99, 102, 241, 0.15);
  --accent-success-glow: rgba(16, 185, 129, 0.15);
}

[data-theme="light"] body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(at 10% 10%, rgba(99, 102, 241, 0.08) 0px, transparent 45%),
    radial-gradient(at 90% 90%, rgba(14, 165, 233, 0.06) 0px, transparent 45%);
}

[data-theme="light"] .sidebar {
  background: rgba(255, 255, 255, 0.95);
  border-right-color: var(--border-color);
}

[data-theme="light"] .top-navbar {
  background: rgba(248, 250, 252, 0.88);
  border-bottom-color: var(--border-color);
}

[data-theme="light"] .brand-text {
  background: linear-gradient(90deg, #0f172a, #334155);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .nav-item:hover {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .search-box input {
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-main);
}

[data-theme="light"] .icon-btn {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-main);
}

[data-theme="light"] .metric-card,
[data-theme="light"] .chart-card,
[data-theme="light"] .table-card,
[data-theme="light"] .neo-card,
[data-theme="light"] .slicer-top-bar,
[data-theme="light"] .upload-dropzone {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .neo-kpi-val,
[data-theme="light"] .kpi-actual-value,
[data-theme="light"] .kpi-name,
[data-theme="light"] .sub-metric-val {
  color: #0f172a !important;
}

[data-theme="light"] .custom-table th {
  background: rgba(241, 245, 249, 0.8);
  color: #475569;
}

[data-theme="light"] .custom-table td {
  border-bottom-color: rgba(226, 232, 240, 0.6);
}

[data-theme="light"] .custom-table tbody tr:hover {
  background: rgba(241, 245, 249, 0.5);
}

[data-theme="light"] .slicer-pill {
  background: rgba(0, 0, 0, 0.04);
  color: #475569;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  overflow-x: hidden;
  min-height: 100vh;
  background-image: 
    radial-gradient(at 10% 10%, rgba(99, 102, 241, 0.15) 0px, transparent 45%),
    radial-gradient(at 90% 90%, rgba(14, 165, 233, 0.12) 0px, transparent 45%),
    radial-gradient(at 50% 50%, rgba(139, 92, 246, 0.08) 0px, transparent 60%);
  background-attachment: fixed;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Layout Grid */
.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Custom HTML Glowing Legends (Şık Açıklama Rozetleri) */
.chart-legend-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition);
}

.legend-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.glowing-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-sky { background: #0ea5e9; box-shadow: 0 0 10px rgba(14, 165, 233, 0.6); }
.dot-lime { background: #a3e635; box-shadow: 0 0 10px rgba(163, 230, 53, 0.6); }
.dot-orange { background: #f97316; box-shadow: 0 0 10px rgba(249, 115, 22, 0.6); }
.dot-emerald { background: #10b981; box-shadow: 0 0 10px rgba(16, 185, 129, 0.6); }
.dot-amber { background: #f59e0b; box-shadow: 0 0 10px rgba(245, 158, 11, 0.6); }
.dot-purple { background: #8b5cf6; box-shadow: 0 0 10px rgba(139, 92, 246, 0.6); }

/* Sidebar Styling */
.sidebar {
  width: var(--sidebar-width);
  background: rgba(11, 15, 26, 0.92);
  backdrop-filter: blur(24px);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

/* Sidebar Closed / Collapsed State */
[data-sidebar-state="closed"] .sidebar {
  transform: translateX(-260px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  box-shadow: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0s linear 0.3s;
}

[data-sidebar-state="closed"] .main-content {
  margin-left: 0 !important;
  width: 100% !important;
}

.sidebar::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.sidebar-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border-color);
}

.brand-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-logo {
  height: 34px;
  width: auto;
  max-width: 95px;
  object-fit: contain;
  transition: var(--transition);
}

.sidebar-logo.logo-dark-theme {
  display: block;
}
.sidebar-logo.logo-light-theme {
  display: none;
}

[data-theme="light"] .sidebar-logo.logo-dark-theme {
  display: none;
}
[data-theme="light"] .sidebar-logo.logo-light-theme {
  display: block;
}

.brand-text {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.3px;
  background: linear-gradient(90deg, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar-nav {
  padding: 20px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.sidebar-nav::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.nav-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.71rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: #94a3b8;
  padding: 14px 10px 4px 10px;
  margin-top: 8px;
  user-select: none;
}

.nav-section-title:first-child,
.nav-section-title:first-of-type {
  margin-top: 2px;
  padding-top: 8px;
}

.nav-section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 12px;
  background: linear-gradient(180deg, var(--accent-primary, #6366f1), rgba(99, 102, 241, 0.35));
  border-radius: 3px;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.35);
}

.nav-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent);
  margin-left: 4px;
}

[data-theme="light"] .nav-section-title {
  color: #64748b;
}

[data-theme="light"] .nav-section-title::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.08), transparent);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.nav-item i {
  font-size: 20px;
}

.nav-item:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.3), rgba(99, 102, 241, 0.05));
  border-left: 3px solid var(--accent-primary);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
  font-weight: 600;
}

/* Gündüz modunda seçili öğe: beyaz yazı açık zeminde okunmuyordu; koyu indigo yazı + belirgin zemin */
[data-theme="light"] .nav-item.active {
  color: #3730a3;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.22), rgba(99, 102, 241, 0.07));
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.14);
}

.nav-badge {
  margin-left: auto;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.2);
  color: var(--accent-primary);
  font-weight: 700;
}

.nav-badge-3d {
  background: rgba(139, 92, 246, 0.2);
  color: var(--accent-purple);
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-color);
}

.user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.4);
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.user-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Language Switcher Dropdown */
.lang-switcher-dropdown {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
  margin-bottom: -6px;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-primary);
}

.lang-code-pill {
  font-size: 0.80rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.lang-switcher-dropdown:hover .lang-menu,
.lang-switcher-dropdown.show .lang-menu {
  display: block;
}

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  right: 0;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  z-index: 200;
  min-width: 140px;
}

/* Invisible Hover Bridge - Mouse never leaves hover boundary */
.lang-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.lang-option:hover {
  background: var(--bg-card-hover);
  color: var(--accent-primary);
}

.lang-option.active {
  color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.1);
  font-weight: 700;
}

/* Main Content Area */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header Navbar */
.top-navbar {
  height: var(--header-height);
  background: rgba(7, 10, 20, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 90;
  flex-shrink: 0;
}

.page-title h2 {
  font-size: 1.4rem;
  font-weight: 700;
}

.page-title p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Let a long title shrink/wrap instead of squeezing the toggle button */
.top-navbar > div:first-child { min-width: 0; }
.top-navbar .page-title { min-width: 0; }
#sidebarToggleBtn { flex-shrink: 0; }

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-box {
  position: relative;
  width: 260px;
}

.search-box input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 10px 16px 10px 42px;
  color: var(--text-main);
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 15px var(--accent-primary-glow);
}

.search-box > span {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 20px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.badge-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 9px;
  height: 9px;
  background: var(--accent-danger);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-danger);
}

/* Page Container */
.content-body {
  padding: 32px;
  flex: 1;
}

/* Metric Cards Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 22px;
  margin-bottom: 28px;
}

.metric-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.metric-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.metric-title {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.metric-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.metric-icon.indigo { background: rgba(99, 102, 241, 0.18); color: var(--accent-primary); box-shadow: 0 0 15px rgba(99, 102, 241, 0.2); }
.metric-icon.sky { background: rgba(14, 165, 233, 0.18); color: var(--accent-secondary); box-shadow: 0 0 15px rgba(14, 165, 233, 0.2); }
.metric-icon.emerald { background: rgba(16, 185, 129, 0.18); color: var(--accent-success); box-shadow: 0 0 15px rgba(16, 185, 129, 0.2); }
.metric-icon.amber { background: rgba(245, 158, 11, 0.18); color: var(--accent-warning); box-shadow: 0 0 15px rgba(245, 158, 11, 0.2); }
.metric-icon.purple { background: rgba(139, 92, 246, 0.18); color: var(--accent-purple); box-shadow: 0 0 15px rgba(139, 92, 246, 0.2); }

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.metric-trend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
}

.metric-trend.up { color: var(--accent-success); }
.metric-trend.down { color: var(--accent-danger); }

.metric-trend span {
  color: var(--text-muted);
  font-weight: 400;
}

/* Chart Card Grid */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}

.col-12 { grid-column: span 12; }
.col-8 { grid-column: span 8; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }

/* Backdrop behind the mobile sidebar drawer (hidden on desktop) */
.sidebar-backdrop {
  display: none;
}

/* ===================================================================
   TABLET / MOBILE (<= 1024px)
   Desktop layout (> 1024px) is untouched by everything below.
   =================================================================== */
@media (max-width: 1024px) {
  .col-8, .col-6, .col-4 { grid-column: span 12; }

  /* Sidebar turns into an off-canvas overlay drawer */
  .sidebar {
    width: 280px;
    max-width: 84vw;
    transform: translateX(-100%);
    opacity: 1;
    pointer-events: auto;
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.55);
  }

  [data-sidebar-state="open"] .sidebar {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  [data-sidebar-state="closed"] .sidebar {
    transform: translateX(-100%);
    opacity: 1;
    box-shadow: none;
  }

  /* Content is always full width; the drawer floats above it */
  .main-content,
  [data-sidebar-state="open"] .main-content,
  [data-sidebar-state="closed"] .main-content {
    margin-left: 0 !important;
    width: 100% !important;
  }

  /* Dimmed backdrop; tap to close (handled in markup) */
  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  [data-sidebar-state="open"] .sidebar-backdrop {
    opacity: 1;
    visibility: visible;
  }

  .content-body { padding: 24px; }
}

/* ===================================================================
   PHONE (<= 768px)
   =================================================================== */
@media (max-width: 768px) {
  /* Top navbar: allow it to grow and wrap instead of overflowing */
  .top-navbar {
    height: auto;
    min-height: var(--header-height);
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .top-navbar > div:first-child {
    flex: 1 1 auto;
    gap: 12px;
  }

  .page-title h2 {
    font-size: 1.1rem;
    line-height: 1.25;
  }

  .page-title p {
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .navbar-actions {
    width: 100%;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  /* Search takes its own full-width row so the controls never overflow */
  .search-box {
    order: 3;
    width: 100%;
  }

  /* Tighter page gutters and card padding on small screens */
  .content-body { padding: 16px; }

  .metrics-grid { gap: 16px; margin-bottom: 20px; }
  .charts-grid { gap: 16px; margin-bottom: 20px; }
  .metric-card { padding: 20px; }
  .metric-value { font-size: 1.6rem; }
  .chart-card { padding: 20px; }
  .table-card { padding: 18px; }
  .chart-header { margin-bottom: 16px; }

  /* Slicer / filter bar: let the pill groups wrap instead of overflowing */
  .slicer-top-bar { padding: 14px 16px; gap: 12px 14px; }
  .slicer-group { flex-wrap: wrap; }
  .slicer-top-bar > div[style*="width: 1px"] { display: none; }

  /* Horizontal scroll guard for wide tables */
  .table-card { overflow-x: auto; }

  /* daily view: stack the depo/antrepo switcher (defined inline in the view) */
  .content-body .depo-switcher-bar { flex-direction: column; align-items: stretch; }
  .content-body .depo-tab-btn { flex: 0 0 auto; width: 100%; }
}

.chart-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.chart-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.chart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}

.chart-title h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.chart-title p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.chart-canvas-wrapper {
  position: relative;
  width: 100%;
  min-height: 300px;
  flex: 1;
}

/* Sleek Modern Web Table Styling */
.table-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  overflow: hidden;
}

.custom-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 14px;
}

.custom-table th {
  text-align: left;
  padding: 14px 18px;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border-color);
}

.custom-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
  vertical-align: middle;
}

.custom-table tr {
  transition: var(--transition);
}

.status-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-badge.success { background: rgba(16, 185, 129, 0.18); color: var(--accent-success); border: 1px solid rgba(16, 185, 129, 0.3); }
.status-badge.warning { background: rgba(245, 158, 11, 0.18); color: var(--accent-warning); border: 1px solid rgba(245, 158, 11, 0.3); }
.status-badge.info { background: rgba(14, 165, 233, 0.18); color: var(--accent-secondary); border: 1px solid rgba(14, 165, 233, 0.3); }

/* Horizontal Glass Slicer Bar */
.slicer-top-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.slicer-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slicer-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-right: 6px;
}

.slicer-pill {
  padding: 7px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.slicer-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.slicer-pill.active {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-purple));
  color: #fff;
  border-color: var(--accent-primary);
  font-weight: 700;
  box-shadow: 0 4px 15px var(--accent-primary-glow);
}

.slicer-pill.orange.active {
  background: linear-gradient(135deg, var(--accent-orange), #ea580c);
  border-color: var(--accent-orange);
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.35);
}

.slicer-pill.green.active {
  background: linear-gradient(135deg, var(--accent-success), #059669);
  border-color: var(--accent-success);
  box-shadow: 0 4px 15px var(--accent-success-glow);
}

.nav-item.is-soon {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

/* Kenar çubuğu ve üst çubuğu ayıran ince çizgilerde yavaş akan ışık: yatay çizgi soldan sağa, dikey çizgi yukarıdan aşağıya.
   Yalnız 1px'lik alanlar boyanır; menü kapalıyken durur, hareket azalt'ta kapalıdır. */
.sidebar-header,
.top-navbar { position: relative; --flow: rgba(129, 140, 248, 0.95); }
[data-theme="light"] .sidebar-header,
[data-theme="light"] .top-navbar { --flow: rgba(79, 70, 229, 0.75); }
.sidebar { --flow: rgba(129, 140, 248, 0.95); }
[data-theme="light"] .sidebar { --flow: rgba(79, 70, 229, 0.75); }

.sidebar-header::after,
.top-navbar::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--flow), transparent) no-repeat -220px 0 / 220px 100%;
  animation: lineFlowX 8s ease-in-out infinite;
}
.sidebar::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; right: -1px;
  width: 1px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--flow), transparent) no-repeat 0 -260px / 100% 260px;
  animation: lineFlowY 10s ease-in-out infinite 1.5s;
}
@keyframes lineFlowX { 0% { background-position: -220px 0; } 65%, 100% { background-position: calc(100% + 220px) 0; } }
@keyframes lineFlowY { 0% { background-position: 0 -260px; } 65%, 100% { background-position: 0 calc(100% + 260px); } }

[data-sidebar-state="closed"] .sidebar-header::after,
[data-sidebar-state="closed"] .sidebar::after { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .sidebar-header::after, .top-navbar::after, .sidebar::after { animation: none; background: none; }
}

/* =====================================================================
   Arayüz tutarlılığı: ortak kaydırma çubuğu, açılır listeler, üst bar
   ===================================================================== */

/* Ortak kaydırma çubuğu (todolist ile aynı mavi-indigo) */
/* Chromium/Safari: ::-webkit-scrollbar (scrollbar-width verilirse Chrome bunu yok sayar); Firefox: scrollbar-*. */
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: auto; scrollbar-color: #38bdf8 rgba(255, 255, 255, 0.05); }
  [data-theme="light"] * { scrollbar-color: #38bdf8 rgba(15, 23, 42, 0.06); }
}
*::-webkit-scrollbar { width: 12px; height: 12px; }
*::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.04); border-radius: 10px; }
[data-theme="light"] *::-webkit-scrollbar-track { background: rgba(15, 23, 42, 0.05); }
/* Dururken soluk, üzerine gelince/tutulunca tam renk */
*::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(56, 189, 248, 0.38), rgba(129, 140, 248, 0.38)); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover, *::-webkit-scrollbar-thumb:active { background: linear-gradient(180deg, #38bdf8, #818cf8); background-clip: padding-box; }
*::-webkit-scrollbar-corner { background: transparent; }

/* Profil baş harfleri her temada beyaz */
.user-avatar, .admin-avatar { color: #fff; }

/* Yerel <select>: uygulamanın alan stiline uyar (liste kısmı custom-select.js ile çizilir) */
select:not([multiple]):not([size]) {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 16px;
  color-scheme: dark;
}
[data-theme="light"] select:not([multiple]):not([size]) { color-scheme: light; }
select.ms-open { border-color: var(--accent-primary); box-shadow: 0 0 0 3px var(--accent-primary-glow); }
select option, select optgroup { background: #0f172a; color: #e2e8f0; }
[data-theme="light"] select option, [data-theme="light"] select optgroup { background: #fff; color: #0f172a; }

.ms-popup {
  position: fixed;
  z-index: 5000;
  overflow-y: auto;
  padding: 6px;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 20px rgba(56, 189, 248, 0.15);
  animation: msPopIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes msPopIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.ms-option {
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ms-option.is-hover, .ms-option:hover { background: rgba(59, 130, 246, 0.18); color: #38bdf8; }
.ms-option.active { background: linear-gradient(135deg, var(--accent-primary), var(--accent-purple)); color: #fff; font-weight: 700; }
.ms-option.is-disabled { opacity: 0.4; cursor: not-allowed; }
.ms-group { padding: 8px 12px 4px; font-size: 0.68rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }
[data-theme="light"] .ms-popup { background: rgba(255, 255, 255, 0.99); border-color: #e2e8f0; box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16); }
[data-theme="light"] .ms-option { color: #475569; }
[data-theme="light"] .ms-option.is-hover, [data-theme="light"] .ms-option:hover { background: rgba(99, 102, 241, 0.1); color: #4338ca; }
/* Seçili seçenek üzerine gelinse de dolu kalır (açık temada soluk zemin + beyaz yazı okunmuyordu) */
.ms-option.active.is-hover, .ms-option.active:hover,
[data-theme="light"] .ms-option.active, [data-theme="light"] .ms-option.active.is-hover, [data-theme="light"] .ms-option.active:hover {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-purple, #8b5cf6)); color: #fff;
}
/* Uzun listelerde arama kutusu: liste kayarken üstte sabit kalır */
.ms-option[hidden], .ms-group[hidden], .ms-empty[hidden] { display: none; }
.ms-popup.has-search { padding-top: 0; }
.ms-search { position: sticky; top: 0; z-index: 1; margin: 0 -6px 4px; padding: 8px 8px 6px; background: inherit; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.ms-search input {
  width: 100%; height: 34px; padding: 0 10px 0 32px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 8px; outline: none;
  background: rgba(255, 255, 255, 0.05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 10px center / 15px;
  color: var(--text-main); font: inherit; font-size: 0.84rem;
}
.ms-search input:focus { border-color: var(--accent-primary); }
.ms-search input::-webkit-search-cancel-button { cursor: pointer; }
.ms-empty { padding: 12px; text-align: center; font-size: 0.82rem; color: var(--text-muted); }
[data-theme="light"] .ms-search { border-bottom-color: #e2e8f0; }
[data-theme="light"] .ms-search input { border-color: #e2e8f0; background-color: #f8fafc; color: #0f172a; }

/* Üst bar: daha sakin, düzenli */
.top-navbar { padding: 0 28px; }
.top-navbar .icon-btn { border-radius: 12px; }
#sidebarToggleBtn { background: rgba(255, 255, 255, 0.04); }
.page-title h2 { font-size: 1.32rem; letter-spacing: -0.2px; line-height: 1.2; }
.page-title p { margin-top: 2px; font-size: 0.8rem; }
.navbar-actions { gap: 12px; }
.search-box { width: 280px; }
.search-box input { border-radius: 14px; background: rgba(255, 255, 255, 0.04); padding: 10px 16px 10px 42px; }
.lang-btn { border-radius: 14px !important; height: 42px; }
.navbar-btn-group {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
}
.navbar-btn-group .icon-btn { width: 38px; height: 36px; border: 0; border-radius: 12px; background: transparent; color: var(--text-muted); }
.navbar-btn-group .icon-btn:hover { background: rgba(255, 255, 255, 0.09); color: var(--text-main); }
.navbar-btn-group .badge-dot { top: 6px; right: 9px; width: 8px; height: 8px; }
[data-theme="light"] .navbar-btn-group { background: rgba(15, 23, 42, 0.03); }
[data-theme="light"] .navbar-btn-group .icon-btn { background: transparent; }
[data-theme="light"] .navbar-btn-group .icon-btn:hover { background: rgba(15, 23, 42, 0.06); }
[data-theme="light"] .search-box input { background: rgba(15, 23, 42, 0.03); }
[data-theme="light"] #sidebarToggleBtn { background: rgba(15, 23, 42, 0.04); }

/* Mobil çekmece: sayfa içindeki yüksek z-index'li çubukların (ör. Günlük Veriler filtresi) üstünde kalsın */
@media (max-width: 1024px) {
  .sidebar { z-index: 1100; }
  .sidebar-backdrop { z-index: 1099; }
}
@media (max-width: 768px) {
  .navbar-btn-group { margin-left: auto; }
}

/* ---- Üst bar: sade, hafif, zarif ---- */
.top-navbar { height: var(--header-height); padding: 0 28px; background: rgba(7, 10, 20, 0.72); }
[data-theme="light"] .top-navbar { background: rgba(248, 250, 252, 0.8); }
.top-navbar .icon-btn { border-color: transparent; background: transparent; color: var(--text-muted); border-radius: 12px; }
.top-navbar .icon-btn:hover { background: rgba(255, 255, 255, 0.07); color: var(--text-main); }
[data-theme="light"] .top-navbar .icon-btn:hover { background: rgba(15, 23, 42, 0.06); }
#sidebarToggleBtn { background: transparent; }
.page-title h2 { font-size: 1.28rem; font-weight: 650; }
.page-title p { color: var(--text-muted); opacity: 0.85; }
.navbar-actions { gap: 6px; }
.navbar-btn-group { padding: 0; gap: 0; border: 0; background: transparent; }
.navbar-btn-group .icon-btn { width: 40px; height: 40px; }
.lang-btn { height: 40px; background: transparent !important; border-color: transparent !important; border-radius: 12px !important; }
.lang-btn:hover { background: rgba(255, 255, 255, 0.07) !important; }
[data-theme="light"] .lang-btn:hover { background: rgba(15, 23, 42, 0.06) !important; }
.search-box { width: 360px; margin-right: 8px; }
.search-box input {
  height: 40px;
  padding: 0 64px 0 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid transparent;
  box-shadow: inset 0 0 0 1px var(--border-color);
}
.search-box input:focus { background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px var(--accent-primary), 0 0 0 4px var(--accent-primary-glow); }
[data-theme="light"] .search-box input { background: rgba(15, 23, 42, 0.035); }
[data-theme="light"] .search-box input:focus { background: #fff; }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-kbd {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  padding: 2px 7px; border-radius: 6px; font: 600 0.68rem var(--font-family); letter-spacing: 0.3px;
  color: var(--text-muted); border: 1px solid var(--border-color); background: rgba(255, 255, 255, 0.04);
  pointer-events: none; transition: opacity 0.2s;
}
.search-box.is-open .search-kbd, .search-box input:focus ~ .search-kbd { opacity: 0; }

/* Arama sonuç paneli */
.gs-panel {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; width: auto; max-height: min(70vh, 480px); overflow-y: auto; z-index: 300;
  padding: 8px; border-radius: 16px;
  background: rgba(15, 23, 42, 0.98); backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  animation: msPopIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.gs-panel[hidden] { display: none; }
.gs-label { padding: 10px 12px 4px; font-size: 0.66rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-muted); }
.gs-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--text-main); }
.gs-item:hover, .gs-item.is-active { background: rgba(99, 102, 241, 0.16); }
.gs-ico { flex-shrink: 0; width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 19px; color: #a5b4fc; background: rgba(99, 102, 241, 0.14); }
.gs-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gs-title { font-size: 0.86rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-title mark { background: rgba(56, 189, 248, 0.25); color: #7dd3fc; border-radius: 3px; padding: 0 1px; }
.gs-sub { font-size: 0.74rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-go { font-size: 17px; color: var(--text-muted); opacity: 0; transition: opacity 0.15s, transform 0.15s; }
.gs-item:hover .gs-go, .gs-item.is-active .gs-go { opacity: 1; transform: translateX(2px); }
.gs-note { padding: 22px 14px; text-align: center; font-size: 0.85rem; color: var(--text-muted); }
.gs-note.is-error { color: var(--accent-danger); }
[data-theme="light"] .gs-panel { background: rgba(255, 255, 255, 0.99); border-color: #e2e8f0; box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16); }
[data-theme="light"] .gs-ico { color: #4f46e5; background: rgba(99, 102, 241, 0.1); }
[data-theme="light"] .gs-item:hover, [data-theme="light"] .gs-item.is-active { background: rgba(99, 102, 241, 0.09); }
[data-theme="light"] .gs-title mark { background: rgba(14, 165, 233, 0.18); color: #0369a1; }
@media (max-width: 768px) {
  .top-navbar { height: auto; }
  .search-box { width: 100%; margin-right: 0; order: 3; flex: 1 1 100%; }
  .search-kbd { display: none; }
}

/* =====================================================================
   Mobil uyum: yatay taşma kilidi, üst bar, filtre/banner satırları
   ===================================================================== */
html, body { overflow-x: clip; max-width: 100%; overscroll-behavior-x: none; }
img, svg, video, canvas { max-width: 100%; }

@media (max-width: 768px) {
  .top-navbar { padding: 12px 16px 14px; gap: 10px 8px; align-items: center; }
  .top-navbar > div:first-child { gap: 10px; }
  .navbar-actions { gap: 4px; width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .navbar-actions .search-box { margin: 4px 0 0; }
  .search-box input { height: 42px; }
  .page-title p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .status-banner { flex-wrap: wrap; gap: 10px; }
  .status-banner > div { flex-wrap: wrap; min-width: 0; }
  .stock-badge { white-space: normal; }
  .content-body { min-width: 0; }
  .slicer-group { flex-wrap: wrap; max-width: 100%; }
  /* Dil menüsü butonun solunda olduğu için sağa doğru açılsın (ekran dışına taşmasın) */
  .lang-menu { right: auto; left: 0; }
}
@media (max-width: 380px) {
  .top-navbar { padding: 10px 12px 12px; }
  .content-body { padding: 12px; }
}

/* Logo bloğu ana sayfaya bağlanır */
.sidebar-brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.sidebar-brand-link:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: -2px; border-radius: 8px; }

/* Kenar çubuğu ve üst çubuk her iki temada aynı zemin rengini kullanır */
:root { --chrome-bg: #0b0f1a; }
[data-theme="light"] { --chrome-bg: #ffffff; }
.sidebar,
[data-theme="light"] .sidebar,
.top-navbar,
[data-theme="light"] .top-navbar { background: var(--chrome-bg); }

/* Menü düğmesi ve üst çubuk eylem grubu: iki temada da aynı yumuşak dikdörtgen zemin */
#sidebarToggleBtn,
.navbar-btn-group { background: rgba(255, 255, 255, 0.05); }
[data-theme="light"] #sidebarToggleBtn,
[data-theme="light"] .navbar-btn-group { background: rgba(15, 23, 42, 0.04); }

/* Güvenli Çıkış: gece açık pembe, gündüz okunaklı koyu ton */
.nav-item-logout { color: #fca5a5; }
[data-theme="light"] .nav-item-logout { color: #dc4a4a; }

/* ---- Bildirim zili: okunmamış sohbet mesajları (assets/js/notifications.js) ---- */
.notif { position: relative; }
.notif-count {
  position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--accent-danger); color: #fff; font-size: 0.68rem; font-weight: 700; line-height: 18px; text-align: center;
  box-shadow: 0 0 0 2px var(--bg-dark); pointer-events: none;
}
.notif-count[hidden] { display: none; }
.notif-panel {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 1200; width: 360px; max-width: calc(100vw - 24px);
  background: #121a2d; border: 1px solid var(--border-color); border-radius: var(--radius-md);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); overflow: hidden;
}
.notif-panel[hidden] { display: none; }
[data-theme="light"] .notif-panel { background: #fff; box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14); }
.notif-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 10px; border-bottom: 1px solid var(--border-color); }
.notif-panel__head strong { font-size: 0.92rem; color: var(--text-main); }
.notif-panel__head a { font-size: 0.78rem; font-weight: 600; color: var(--accent-primary); text-decoration: none; }
.notif-panel__head a:hover { text-decoration: underline; }
.notif-list { max-height: 360px; overflow-y: auto; padding: 6px; }
.notif-empty { margin: 0; padding: 26px 12px; text-align: center; font-size: 0.84rem; color: var(--text-muted); }
.notif-item { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; color: inherit; text-decoration: none; }
.notif-item:hover, .notif-item:focus-visible { background: rgba(255, 255, 255, 0.06); outline: none; }
[data-theme="light"] .notif-item:hover, [data-theme="light"] .notif-item:focus-visible { background: rgba(15, 23, 42, 0.05); }
.notif-avatar {
  --c: #6366f1; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px;
  background: var(--c); color: #fff; font-size: 0.78rem; font-weight: 700;
}
.notif-avatar .material-symbols-outlined { font-size: 19px; }
.notif-avatar--rose { --c: #e11d48; } .notif-avatar--sky { --c: #0284c7; } .notif-avatar--amber { --c: #d97706; }
.notif-avatar--emerald { --c: #059669; } .notif-avatar--teal { --c: #0d9488; } .notif-avatar--violet { --c: #7c3aed; } .notif-avatar--slate { --c: #475569; }
.notif-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.notif-item__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.notif-item__top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.86rem; color: var(--text-main); }
.notif-item__top time { flex: none; font-size: 0.72rem; color: var(--text-muted); }
.notif-item__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.8rem; color: var(--text-muted); }
.notif-item__badge { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent-primary); color: #fff; font-size: 0.7rem; font-weight: 700; line-height: 20px; text-align: center; }
.notif-desktop {
  display: block; width: 100%; padding: 11px 16px; border: 0; border-top: 1px solid var(--border-color); background: none;
  color: var(--accent-primary); font: inherit; font-size: 0.8rem; font-weight: 600; text-align: center; cursor: pointer;
}
.notif-desktop[hidden] { display: none; }
.notif-desktop:disabled { color: var(--text-muted); cursor: default; }
.notif-desktop:not(:disabled):hover { background: rgba(99, 102, 241, 0.08); }

/* Yeni mesaj uyarısı (sağ alt köşe) */
.notif-toasts { position: fixed; right: 20px; bottom: 20px; z-index: 1300; display: flex; flex-direction: column; gap: 10px; width: 340px; max-width: calc(100vw - 32px); }
.notif-toast {
  display: flex; align-items: flex-start; gap: 11px; padding: 13px 12px 13px 14px; border: 1px solid var(--border-color); border-left: 3px solid var(--accent-primary);
  border-radius: var(--radius-md); background: #121a2d; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  color: inherit; text-decoration: none; animation: notifIn 0.25s ease-out both;
}
[data-theme="light"] .notif-toast { background: #fff; box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16); }
.notif-toast > .material-symbols-outlined { font-size: 22px; color: var(--accent-primary); }
.notif-toast__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.notif-toast__body strong { font-size: 0.86rem; color: var(--text-main); }
.notif-toast__body span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 0.8rem; color: var(--text-muted); }
.notif-toast__close { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 8px; background: none; color: var(--text-muted); cursor: pointer; }
.notif-toast__close:hover { background: rgba(255, 255, 255, 0.08); color: var(--text-main); }
.notif-toast__close .material-symbols-outlined { font-size: 17px; }
@keyframes notifIn { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .notif-toast { animation: none; } }
@media (max-width: 640px) { .notif-panel { position: fixed; top: calc(var(--header-height, 72px) + 4px); right: 12px; left: 12px; width: auto; max-width: none; } .notif-toasts { right: 16px; left: 16px; width: auto; } }