/* BenomCore Global Theme
   Login ekranındaki mavi palet referans alınmıştır.
   Amaç: tüm uygulama sayfalarında kurumsal ve tutarlı görünüm.
*/

:root {
  color-scheme: light;

  /* Login paleti */
  --blue-900: #0d1b3e;
  --blue-800: #102a5c;
  --blue-700: #1a3a7c;
  --blue-600: #1e4db7;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --blue-300: #93c5fd;
  --blue-100: #dbeafe;

  /* Ana tema token'ları */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #60a5fa;
  --secondary: #102a5c;

  --accent: var(--primary);
  --accent-h: var(--primary-dark);
  --accent-soft: rgba(37, 99, 235, 0.12);
  --accent-glow: rgba(37, 99, 235, 0.28);

  --white: #ffffff;
  --body-bg: #f4f7fc;
  --card-bg: #ffffff;
  --surface: #ffffff;
  --slate-bg: #f8fbff;
  --bg: var(--body-bg);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --text: var(--text-primary);
  --text-2: var(--text-secondary);
  --text-3: var(--text-muted);
  --text-4: var(--text-dim);

  --border-color: #d9e2ef;
  --border: #d9e2ef;
  --border-2: #c8d4e6;
  --light-border: #e7eef9;

  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #0ea5e9;

  --green: var(--success);
  --green-bg: #dcfce7;
  --red: var(--danger);
  --gray: #64748b;
  --gray-light: #e2e8f0;
  --gray-50: #f8fafc;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;

  --dark: #0f172a;
  --dark-alt: #1e293b;
  --dark-base: var(--blue-900);
  --dark-border: #1e3a68;
  --dark-border2: #294b82;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius: 16px;
  --r-sm: 8px;
  --r-md: 12px;
  --border-radius: 14px;

  --shadow-sm: 0 6px 18px rgba(13, 27, 62, 0.08);
  --shadow-md: 0 14px 32px rgba(13, 27, 62, 0.12);
  --shadow: 0 20px 40px rgba(13, 27, 62, 0.16);

  --tr: rgba(37, 99, 235, 0.12);
  --trans: all 0.2s ease;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  --font-main:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font: var(--font-main);

  /* Eski/özel ekran uyumluluk token'ları */
  --p: var(--primary);
  --p-light: var(--primary-light);
  --p-dark: var(--primary-dark);
  --p-bg: rgba(37, 99, 235, 0.09);
  --tc: #dbeafe;
  --scenario-accent: #60a5fa;

  --arch-line: #c9d7ee;
  --arch-muted: #64748b;
  --arch-ink: #0f172a;

  --node-width: 280px;
  --node-min-height: 90px;
  --node-radius: 12px;
  --node-gap: 22px;
  --node-pad: 14px;
  --node-icon-size: 20px;
  --node-font-scale: 1;
  --sidebar-gap: 18px;

  /* Floating layout ölçüleri */
  --app-sidebar-width: 240px;
  --app-sidebar-collapsed-width: 86px;
  --app-sidebar-offset-x: 12px;
  --app-sidebar-offset-y: 12px;
  --app-content-gap: 12px;
  --app-topbar-offset-x: 18px;
  --app-topbar-offset-y: 12px;
  --app-panel-radius: 22px;

  --ty-row-bg: #f8fbff;
  --ty-row-hover: #f0f6ff;

  /* Bootstrap uyumu */
  --bs-primary: var(--primary);
  --bs-primary-rgb: 37, 99, 235;
  --bs-link-color: var(--primary);
  --bs-link-hover-color: var(--primary-dark);
  --bs-border-color: var(--border-color);
  --bs-body-bg: var(--body-bg);
  --bs-body-color: var(--text-primary);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text-primary);
  background:
    radial-gradient(
      1000px 560px at -10% -25%,
      rgba(37, 99, 235, 0.1),
      transparent 62%
    ),
    radial-gradient(
      900px 500px at 105% -20%,
      rgba(59, 130, 246, 0.08),
      transparent 58%
    ),
    var(--body-bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: rgba(37, 99, 235, 0.2);
  color: var(--secondary);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

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

code {
  color: #1d4ed8;
}

hr {
  border-color: var(--border-color);
  opacity: 1;
}

/* ===============================
   Uygulama iskeleti
================================ */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  min-width: 0;
  margin-left: calc(
    var(--app-sidebar-offset-x) + var(--app-sidebar-width) +
      var(--app-content-gap)
  );
  display: flex;
  flex-direction: column;
  transition: margin-left var(--transition);
  overflow-x: clip;
}

.page-content {
  flex: 1;
  padding: 1.1rem 1.35rem 1.6rem;
}

.main-content > .content-wrapper,
.main-content > .page-content {
  flex: 1;
  padding: 0.95rem 1.2rem 1.55rem;
}

/* ===============================
   Sidebar
================================ */
.sidebar {
  position: fixed;
  left: var(--app-sidebar-offset-x);
  top: var(--app-sidebar-offset-y);
  bottom: var(--app-sidebar-offset-y);
  width: var(--app-sidebar-width);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  overflow: visible;
  color: #dbeafe;
  background:
    radial-gradient(
      120% 60% at -10% -10%,
      rgba(147, 197, 253, 0.16),
      transparent 60%
    ),
    linear-gradient(180deg, #0a1530 0%, #0d1f47 48%, #143268 100%);
  border: 1px solid rgba(147, 197, 253, 0.18);
  border-radius: var(--app-panel-radius);
  box-shadow:
    0 28px 56px rgba(8, 15, 35, 0.38),
    0 2px 0 rgba(255, 255, 255, 0.04) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    transform var(--transition),
    width var(--transition);
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.95;
  pointer-events: none;
}

.sidebar > * {
  position: relative;
  z-index: 1;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  margin: 0.62rem 0.64rem 0.72rem;
  padding: 0.88rem 0.84rem;
  border-radius: 16px;
  border: 1px solid rgba(147, 197, 253, 0.24);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.04)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 10px 20px rgba(8, 18, 39, 0.18);
  min-height: 76px;
}

.logo-box {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow:
    0 8px 18px rgba(37, 99, 235, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.14) inset;
  overflow: hidden;
}

.logo-box svg {
  width: 19px;
  height: 19px;
  stroke-width: 2;
}

.sidebar-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  background: #fff;
}

.sidebar-logo-text {
  min-width: 0;
}

.sidebar-logo-text h2 {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.2;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-logo-text small {
  color: rgba(219, 234, 254, 0.7);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.72rem 0.58rem 0.9rem;
  scrollbar-width: none;
}

.sidebar-nav::-webkit-scrollbar {
  display: none;
}

.sidebar-scroll-track {
  position: absolute;
  right: -5px;
  top: 20px;
  bottom: 20px;
  width: 4px;
  border-radius: 4px;
  background: transparent;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 0;
}

.sidebar:hover .sidebar-scroll-track.is-scrollable {
  opacity: 1;
}

.sidebar-scroll-thumb {
  position: absolute;
  left: 0;
  width: 100%;
  border-radius: 4px;
  background: linear-gradient(
    180deg,
    rgba(147, 197, 253, 0.6),
    rgba(96, 165, 250, 0.4)
  );
  min-height: 28px;
  transition: background 0.15s ease;
}

.nav-item {
  margin-bottom: 0.36rem;
}

.nav-parent {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0.72rem 0.82rem;
  border-radius: 0.9rem;
  border: 1px solid transparent;
  color: rgba(219, 234, 254, 0.86);
  font-size: 0.875rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  transition:
    color 0.2s cubic-bezier(0.22, 0.68, 0.28, 1),
    background 0.2s cubic-bezier(0.22, 0.68, 0.28, 1),
    border-color 0.2s ease,
    transform 0.2s cubic-bezier(0.22, 0.68, 0.28, 1);
}

.nav-parent::before {
  content: "";
  position: absolute;
  left: -0.58rem;
  top: 18%;
  bottom: 18%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #60a5fa, #2563eb);
  opacity: 0;
  transform: scaleY(0.4);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.nav-parent svg:first-child {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke-width: 2.1;
}

.nav-parent:hover {
  color: #fff;
  border-color: rgba(147, 197, 253, 0.30);
  background: rgba(37, 99, 235, 0.20);
  transform: translateX(2px);
}

.nav-parent.active,
.nav-parent.has-active,
.nav-parent.open {
  color: #fff;
  border-color: rgba(147, 197, 253, 0.38);
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.42),
    rgba(29, 78, 216, 0.24)
  );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 12px 24px rgba(13, 27, 62, 0.28);
}

.nav-parent.active::before,
.nav-parent.has-active::before,
.nav-parent.open::before {
  opacity: 1;
  transform: scaleY(1);
}

.nav-parent.nav-disabled {
  opacity: 0.64;
  cursor: not-allowed;
  filter: saturate(0.75);
}

.nav-parent.nav-disabled:hover {
  transform: none;
}

.nav-label {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-chevron {
  width: 14px;
  height: 14px;
  margin-left: auto;
  opacity: 0.8;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.nav-parent.open .nav-chevron {
  transform: rotate(90deg);
  opacity: 1;
}

.nav-submenu {
  margin: 0.3rem 0 0.45rem 0.4rem;
  padding: 0.18rem 0.2rem 0.35rem 0.5rem;
  border-left: 1px dashed rgba(147, 197, 253, 0.36);
}

.nav-popout-title {
  display: none;
}

.nav-submenu a {
  display: flex;
  align-items: center;
  margin: 0.1rem 0;
  padding: 0.42rem 0.64rem;
  border-radius: 0.56rem;
  color: rgba(219, 234, 254, 0.78);
  font-size: 0.81rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    color 0.18s ease,
    background 0.18s ease;
}

.nav-submenu a:hover {
  color: #fff;
  background: rgba(37, 99, 235, 0.24);
}

.nav-submenu a.active {
  position: relative;
  color: #fff;
  font-weight: 600;
  background: rgba(37, 99, 235, 0.3);
}

.nav-submenu a.active::before {
  content: "";
  position: absolute;
  left: -0.5rem;
  top: 22%;
  bottom: 22%;
  width: 2px;
  border-radius: 2px;
  background: #60a5fa;
}

.nav-submenu-divider {
  margin: 0.58rem 0.5rem 0.4rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(191, 219, 254, 0.8);
}

.nav-badge-soon {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 0.18rem 0.46rem;
  color: rgba(219, 234, 254, 0.92);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(147, 197, 253, 0.3);
}

/* "Kurulum Gerekli" gibi uzun rozetler tek satırda kalmalı; yer daralınca
   rozet değil menü adı üç noktayla kısalır (tam ad title'da durur). */
.nav-badge-soon {
  flex: 0 0 auto;
  white-space: nowrap;
}

.nav-submenu a .nav-label:not(.nav-badge-soon) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-footer {
  padding: 0.68rem 0.7rem 0.78rem;
  border-top: 1px solid rgba(147, 197, 253, 0.16);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.58rem;
  border-radius: 18px;
  border: 1px solid rgba(147, 197, 253, 0.24);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  box-shadow:
    0 12px 24px rgba(13, 27, 62, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 0.56rem 0.6rem;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.sidebar-user:hover {
  border-color: rgba(147, 197, 253, 0.4);
}

.sidebar-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.77rem;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

.sidebar-user-info {
  min-width: 0;
}

.sidebar-user-name {
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-logout {
  color: rgba(191, 219, 254, 0.88);
  font-size: 0.72rem;
}

.sidebar-user-logout:hover {
  color: #fff;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(1.5px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--transition),
    visibility var(--transition);
}

/* ===============================
   Sidebar collapsed (desktop)
================================ */
html.sidebar-collapsed-pre .sidebar,
body.sidebar-collapsed .sidebar {
  width: var(--app-sidebar-collapsed-width);
}

html.sidebar-collapsed-pre .main-content,
body.sidebar-collapsed .main-content {
  margin-left: calc(
    var(--app-sidebar-offset-x) + var(--app-sidebar-collapsed-width) +
      var(--app-content-gap)
  );
}

html.sidebar-collapsed-pre .sidebar-logo-text,
html.sidebar-collapsed-pre .sidebar .sidebar-user-info,
html.sidebar-collapsed-pre .sidebar .nav-badge-soon,
body.sidebar-collapsed .sidebar-logo-text,
body.sidebar-collapsed .sidebar .sidebar-user-info,
body.sidebar-collapsed .sidebar .nav-badge-soon {
  display: none !important;
}

html.sidebar-collapsed-pre .sidebar-logo,
body.sidebar-collapsed .sidebar-logo {
  justify-content: center;
  padding-inline: 0.35rem;
}

html.sidebar-collapsed-pre .sidebar-footer,
body.sidebar-collapsed .sidebar-footer {
  padding: 0.6rem 0.35rem;
}

html.sidebar-collapsed-pre .sidebar-user,
body.sidebar-collapsed .sidebar-user {
  justify-content: center;
  padding: 0.35rem;
}

html.sidebar-collapsed-pre .nav-parent,
body.sidebar-collapsed .nav-parent {
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.26rem;
  text-align: center;
  padding: 0.5rem 0.34rem 0.56rem;
  min-height: 64px;
}

html.sidebar-collapsed-pre .sidebar .nav-parent > .nav-label,
body.sidebar-collapsed .sidebar .nav-parent > .nav-label {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  white-space: normal;
  text-overflow: ellipsis;
  width: 100%;
  font-size: 0.61rem;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: 0.01em;
  min-height: calc(1.14em * 2);
}

html.sidebar-collapsed-pre .sidebar .nav-parent[data-bs-toggle="collapse"],
body.sidebar-collapsed .sidebar .nav-parent[data-bs-toggle="collapse"] {
  border-color: transparent;
  background: transparent;
}

html.sidebar-collapsed-pre
  .sidebar
  .nav-parent[data-bs-toggle="collapse"]::after,
body.sidebar-collapsed .sidebar .nav-parent[data-bs-toggle="collapse"]::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0.7);
  width: 3px;
  height: 56%;
  min-height: 22px;
  border-radius: 3px 0 0 3px;
  background: rgba(147, 197, 253, 0.35);
  pointer-events: none;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    height 0.2s ease;
}

html.sidebar-collapsed-pre
  .sidebar
  .nav-parent[data-bs-toggle="collapse"]:hover::after,
html.sidebar-collapsed-pre
  .sidebar
  .nav-item:focus-within
  > .nav-parent[data-bs-toggle="collapse"]::after,
body.sidebar-collapsed
  .sidebar
  .nav-parent[data-bs-toggle="collapse"]:hover::after,
body.sidebar-collapsed
  .sidebar
  .nav-item:focus-within
  > .nav-parent[data-bs-toggle="collapse"]::after {
  background: rgba(96, 165, 250, 0.85);
  transform: translateY(-50%) scaleY(1);
  height: 68%;
}

html.sidebar-collapsed-pre
  .sidebar
  .nav-item.popout-open
  > .nav-parent[data-bs-toggle="collapse"]::after,
html.sidebar-collapsed-pre
  .sidebar
  .nav-item.popout-pinned
  > .nav-parent[data-bs-toggle="collapse"]::after,
body.sidebar-collapsed
  .sidebar
  .nav-item.popout-open
  > .nav-parent[data-bs-toggle="collapse"]::after,
body.sidebar-collapsed
  .sidebar
  .nav-item.popout-pinned
  > .nav-parent[data-bs-toggle="collapse"]::after {
  background: #3b82f6;
  transform: translateY(-50%) scaleY(1);
  height: 72%;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}

html.sidebar-collapsed-pre .nav-chevron,
body.sidebar-collapsed .nav-chevron {
  display: none;
}

html.sidebar-collapsed-pre .sidebar,
body.sidebar-collapsed .sidebar {
  overflow: visible;
}

html.sidebar-collapsed-pre .sidebar-nav,
body.sidebar-collapsed .sidebar-nav {
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

html.sidebar-collapsed-pre .sidebar-nav::-webkit-scrollbar,
body.sidebar-collapsed .sidebar-nav::-webkit-scrollbar {
  display: none;
}

html.sidebar-collapsed-pre .sidebar .nav-item,
body.sidebar-collapsed .sidebar .nav-item {
  position: relative;
}

html.sidebar-collapsed-pre .sidebar .nav-submenu.collapse,
body.sidebar-collapsed .sidebar .nav-submenu.collapse {
  display: block !important;
  height: auto !important;
  margin: 0;
  padding: 0.38rem;
  border-left: 0;
  position: fixed;
  left: var(--bc-popout-left, -9999px);
  top: var(--bc-popout-top, -9999px);
  min-width: 252px;
  max-width: min(340px, calc(100vw - 108px));
  max-height: min(
    var(--bc-popout-max-height, calc(100vh - 24px)),
    calc(100vh - 24px)
  );
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  border-radius: 16px;
  border: 1px solid rgba(147, 197, 253, 0.28);
  background: linear-gradient(160deg, #0f1f4a 0%, #0d1b3e 60%, #0b1630 100%);
  box-shadow:
    0 28px 52px rgba(2, 6, 23, 0.52),
    0 8px 20px rgba(2, 6, 23, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 0 0 1px rgba(147, 197, 253, 0.1);
  backdrop-filter: blur(12px);
  z-index: 1250;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(0) scale(0.97);
  transform-origin: left center;
  transition:
    opacity 0.15s ease,
    transform 0.18s cubic-bezier(0.2, 0, 0.2, 1),
    visibility 0.15s ease;
}

html.sidebar-collapsed-pre .sidebar .nav-submenu.collapse::-webkit-scrollbar,
body.sidebar-collapsed .sidebar .nav-submenu.collapse::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

html.sidebar-collapsed-pre
  .sidebar
  .nav-submenu.collapse:hover::-webkit-scrollbar,
body.sidebar-collapsed .sidebar .nav-submenu.collapse:hover::-webkit-scrollbar {
  width: 5px;
}

html.sidebar-collapsed-pre
  .sidebar
  .nav-submenu.collapse:hover::-webkit-scrollbar-thumb,
body.sidebar-collapsed
  .sidebar
  .nav-submenu.collapse:hover::-webkit-scrollbar-thumb {
  background: rgba(147, 197, 253, 0.45);
  border-radius: 999px;
}

html.sidebar-collapsed-pre
  .sidebar
  .nav-item.submenu-open-up
  > .nav-submenu.collapse,
body.sidebar-collapsed
  .sidebar
  .nav-item.submenu-open-up
  > .nav-submenu.collapse {
  transform-origin: left bottom;
}

html.sidebar-collapsed-pre .sidebar .nav-submenu-divider,
body.sidebar-collapsed .sidebar .nav-submenu-divider {
  margin: 0.34rem 0.44rem 0.28rem;
  font-size: 0.61rem;
  letter-spacing: 0.09em;
  color: rgba(191, 219, 254, 0.78);
}

html.sidebar-collapsed-pre .sidebar .nav-submenu .nav-popout-title,
body.sidebar-collapsed .sidebar .nav-submenu .nav-popout-title {
  display: block;
  margin: 0.16rem 0.3rem 0.52rem;
  padding: 0 0 0.44rem;
  border-bottom: 1px solid rgba(147, 197, 253, 0.18);
  color: rgba(191, 219, 254, 0.65);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html.sidebar-collapsed-pre .sidebar .nav-submenu a,
body.sidebar-collapsed .sidebar .nav-submenu a {
  display: flex;
  align-items: center;
  margin: 0.06rem 0;
  border-radius: 10px;
  padding: 0.52rem 0.66rem;
  color: rgba(219, 234, 254, 0.8);
  font-size: 0.82rem;
  font-weight: 500;
  background: transparent;
  transition:
    color 0.13s ease,
    background 0.13s ease,
    padding-left 0.13s ease;
}

html.sidebar-collapsed-pre .sidebar .nav-submenu a::before,
body.sidebar-collapsed .sidebar .nav-submenu a::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(147, 197, 253, 0.45);
  margin-right: 0.6rem;
  flex-shrink: 0;
  transition:
    background 0.13s ease,
    transform 0.13s ease;
}

html.sidebar-collapsed-pre .sidebar .nav-submenu a:hover,
body.sidebar-collapsed .sidebar .nav-submenu a:hover {
  color: #fff;
  background: rgba(37, 99, 235, 0.28);
  padding-left: 0.86rem;
}

html.sidebar-collapsed-pre .sidebar .nav-submenu a:hover::before,
body.sidebar-collapsed .sidebar .nav-submenu a:hover::before {
  background: #60a5fa;
  transform: scale(1.4);
}

html.sidebar-collapsed-pre .sidebar .nav-submenu a.active,
body.sidebar-collapsed .sidebar .nav-submenu a.active {
  color: #fff;
  font-weight: 600;
  background: rgba(37, 99, 235, 0.42);
  padding-left: 0.86rem;
}

html.sidebar-collapsed-pre .sidebar .nav-submenu a.active::before,
body.sidebar-collapsed .sidebar .nav-submenu a.active::before {
  background: #3b82f6;
  transform: scale(1.5);
}

html.sidebar-collapsed-pre .sidebar .nav-submenu a.nav-disabled,
body.sidebar-collapsed .sidebar .nav-submenu a.nav-disabled {
  color: rgba(148, 163, 184, 0.5);
  background: transparent;
  cursor: not-allowed;
  pointer-events: none;
  padding-left: 0.66rem;
}

/* Collapsed flyout görünürlüğü SADECE JS'in eklediği .popout-open ile kontrol
   edilir. Eski CSS :hover / :focus-within tetikleyicileri kaldırıldı çünkü
   JS pozisyonu (fixed left/top) set etmeden menüyü gösteriyor ve tıklamadan
   sonra :focus-within menüyü açık bırakıyordu ("saçmalıyor" bug'ı). Artık JS
   tek kaynak: rawOpen() önce positionSubmenu() çağırıp sonra .popout-open ekler. */
html.sidebar-collapsed-pre .sidebar .nav-item.popout-open > .nav-submenu,
body.sidebar-collapsed .sidebar .nav-item.popout-open > .nav-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

/* ===============================
   Topbar — Modern Glass Design
================================ */
.topbar {
  position: sticky;
  top: var(--app-topbar-offset-y);
  z-index: 1020;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin: var(--app-topbar-offset-y) var(--app-topbar-offset-x) 0;
  padding: 0.72rem 1rem 0.72rem 0.86rem;
  border: 1px solid rgba(208, 219, 237, 0.7);
  border-radius: var(--app-panel-radius);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow:
    0 2px 0 0 rgba(255, 255, 255, 0.6) inset,
    0 12px 32px -8px rgba(13, 27, 62, 0.12),
    0 1px 2px rgba(13, 27, 62, 0.04);
}

/* Sol bölüm — hamburger + başlık */
.topbar-start {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.topbar-brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  flex-shrink: 0;
  animation: tb-dot-pulse 3s ease-in-out infinite;
}

@keyframes tb-dot-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.06);
  }
}

.topbar-title {
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--secondary);
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Sağ aksiyonlar */
.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Hamburger buton */
.topbar #sidebar-toggle,
.topbar-hamburger {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-600);
  background: #fff;
  border: 1px solid #dce5f3;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  padding: 0;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.topbar #sidebar-toggle:hover,
.topbar-hamburger:hover {
  border-color: #b7cbeb;
  color: var(--primary-dark);
  background: #f0f6ff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
  transform: translateY(-1px);
}

.topbar #sidebar-toggle:active,
.topbar-hamburger:active {
  transform: translateY(0);
  box-shadow: none;
}

.topbar-hamburger .collapse-icon {
  display: none;
}

html.sidebar-collapsed-pre .topbar-hamburger .hamburger-icon,
body.sidebar-collapsed .topbar-hamburger .hamburger-icon {
  display: none;
}

html.sidebar-collapsed-pre .topbar-hamburger .collapse-icon,
body.sidebar-collapsed .topbar-hamburger .collapse-icon {
  display: inline-block;
}

/* Genel topbar buton stili */
.topbar-btn {
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.72rem;
  border-radius: 10px;
  border: 1px solid #dce5f3;
  color: var(--text-secondary);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
  cursor: pointer;
}

.topbar-btn:hover {
  color: var(--primary-dark);
  border-color: #b9cbed;
  background: #f0f6ff;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.08);
  transform: translateY(-1px);
}

.topbar-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.topbar-btn svg {
  flex-shrink: 0;
}

/* Ayarlar butonu */
.topbar-btn-settings {
  border-color: #dce5f3;
  color: var(--text-muted);
}

.topbar-btn-settings:hover {
  color: var(--primary);
  border-color: #b9cbed;
  background: #f0f6ff;
}

/* Portal butonu */
.topbar-btn-portal {
  color: var(--primary);
  border-color: rgba(37, 99, 235, 0.2);
  background: rgba(37, 99, 235, 0.05);
}

.topbar-btn-portal:hover {
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-dark);
}

/* Çıkış butonu */
.topbar-btn-logout {
  border-color: #dce5f3;
  color: var(--text-muted);
}

.topbar-btn-logout:hover {
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.06);
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.08);
}

/* Kullanıcı profili */
.topbar-user {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.2rem 0.2rem 0.2rem 0.2rem;
  border-radius: 100px;
  border: 1px solid rgba(206, 218, 238, 0.7);
  background: rgba(255, 255, 255, 0.7);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
  cursor: default;
}

.topbar-user:hover {
  border-color: rgba(206, 218, 238, 1);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.06);
}

.topbar-avatar {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  flex-shrink: 0;
}

.topbar-avatar-text {
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  z-index: 1;
  position: relative;
}

.topbar-avatar-ring {
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  border: 2px solid rgba(37, 99, 235, 0.15);
  pointer-events: none;
}

.topbar-user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  padding-right: 0.4rem;
}

.topbar-username {
  font-size: 0.8rem;
  color: var(--text-primary);
  font-weight: 600;
  max-width: 130px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.topbar-user-role {
  font-size: 0.64rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ===============================
   Topbar Hatırlatma İkonları
================================ */
#hatr-topbar-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.2rem;
  margin-right: 0.25rem;
  border-radius: 10px;
  border: 1px solid #d5e1f3;
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

#hatr-topbar-wrap > div {
  position: relative;
}

.hatr-topbar-btn {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  border: 1px solid #d6e0f0;
  background: #fff;
  color: #1f4fc1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.hatr-topbar-btn svg {
  width: 18px;
  height: 18px;
  max-width: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hatr-topbar-btn:hover {
  color: #ffffff;
  border-color: #2563eb;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.28);
  transform: translateY(-1px);
}

.hatr-topbar-btn:focus-visible {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.hatr-topbar-btn:active {
  transform: translateY(0);
  box-shadow: 0 5px 12px rgba(37, 99, 235, 0.2);
}

.hatr-topbar-btn[aria-expanded="true"],
.hatr-topbar-btn.is-active {
  color: #fff;
  border-color: #1d4ed8;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.24);
}

.hatr-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: 2px solid #fff;
  box-shadow: 0 6px 12px rgba(220, 38, 38, 0.32);
}

@media (max-width: 640px) {
  #hatr-topbar-wrap {
    margin-right: 0;
    gap: 0.25rem;
    padding: 0.15rem;
  }

  .hatr-topbar-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .hatr-topbar-btn svg {
    width: 17px;
    height: 17px;
  }
}

/* ===============================
   Cari Form Wizard
================================ */
.wizard-header {
  border: 1px solid #d5e0f0;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  border-radius: 14px;
  box-shadow: 0 10px 20px rgba(13, 27, 62, 0.06);
  margin-bottom: 1rem;
  overflow: hidden;
}

.wizard-steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.25rem;
  padding: 0.75rem 0.75rem 0.65rem;
}

.wizard-step {
  position: relative;
  flex: 1 1 0;
  min-width: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.28rem;
  color: #64748b;
  transition: color 0.2s ease;
}

.wizard-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 16px;
  left: calc(50% + 19px);
  right: calc(-50% + 19px);
  height: 2px;
  background: #d4deee;
  z-index: 0;
}

.wizard-step-circle {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 2px solid #c5d3ea;
  background: #fff;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.07);
  transition: all 0.2s ease;
}

.wizard-step-label {
  font-size: 0.74rem;
  line-height: 1.25;
  font-weight: 600;
  color: inherit;
  min-height: 1.8em;
}

.wizard-step.active {
  color: #1d4ed8;
}

.wizard-step.active .wizard-step-circle {
  border-color: #2563eb;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.28);
}

.wizard-step.completed {
  color: #0f766e;
}

.wizard-step.completed::after {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.wizard-step.completed .wizard-step-circle {
  border-color: #16a34a;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
}

.wizard-pane {
  display: none;
}

/* ===============================
   Admin Dashboard — Stat cards & small helpers
   These styles ensure dashboard icons and cards have reasonable sizes
   when using the `views/admin/dashboard.php` layout.
================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.76rem 0.9rem;
  border-radius: 12px;
  background: var(--card-bg);
  border: 1px solid var(--light-border);
  box-shadow: var(--shadow-sm);
}

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

.stat-card-icon svg {
  width: 20px;
  height: 20px;
  max-width: none;
  stroke-width: 2;
}

.stat-card-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-card-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .stat-card-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }
  .stat-card-icon svg {
    width: 18px;
    height: 18px;
  }
  .stat-card-value {
    font-size: 1.05rem;
  }
}

.wizard-pane.active {
  display: block;
}

.wizard-nav {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid #dbe4f2;
  border-radius: 12px;
  background: #fff;
  padding: 0.72rem 0.85rem;
  box-shadow: 0 6px 14px rgba(13, 27, 62, 0.05);
}

.card-section-title {
  margin-bottom: 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #e4ebf7;
  color: #102a5c;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

@media (max-width: 991.98px) {
  .wizard-header {
    overflow-x: auto;
  }

  .wizard-steps {
    min-width: 640px;
  }
}

@media (max-width: 640px) {
  .wizard-header {
    border-radius: 12px;
  }

  .wizard-steps {
    min-width: 620px;
    padding: 0.62rem 0.55rem 0.55rem;
  }

  .wizard-step {
    min-width: 88px;
  }

  .wizard-step-circle {
    width: 30px;
    height: 30px;
    font-size: 0.76rem;
  }

  .wizard-step-label {
    font-size: 0.7rem;
  }

  .wizard-nav {
    flex-wrap: wrap;
  }

  .wizard-nav > .d-flex {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ===============================
   Kartlar, tablolar, formlar
================================ */
.card {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
}

.card-header {
  padding: 0.84rem 1.05rem;
  border-bottom: 1px solid var(--border-color);
  border-top-left-radius: calc(var(--border-radius) - 1px);
  border-top-right-radius: calc(var(--border-radius) - 1px);
  background: linear-gradient(180deg, #fbfdff 0%, #f3f7ff 100%);
  color: var(--secondary);
  font-weight: 700;
}

.card-header.bg-white {
  background: #fff !important;
}

.card-body {
  padding: 1rem 1.05rem;
}

.table-wrapper {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: auto;
}

.table {
  margin-bottom: 0;
  --bs-table-bg: transparent;
}

.table thead th {
  background: #f3f7ff;
  color: var(--text-secondary);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  border-bottom-color: var(--border-color);
}

.table > :not(caption) > * > * {
  border-bottom-color: var(--border-color);
}

.table tbody tr:hover {
  background: var(--ty-row-hover);
}

.form-label {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.84rem;
  margin-bottom: 0.38rem;
}

.form-control,
.form-select {
  border-radius: 10px;
  border: 1px solid #d4dcea;
  color: var(--text-primary);
  background: #fff;
}

.form-control::placeholder {
  color: #94a3b8;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.14);
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.input-group-text {
  border-color: #d4dcea;
  background: #f8fbff;
  color: var(--text-secondary);
}

/* ===============================
   Butonlar
================================ */
.btn {
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.btn-primary,
.bg-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  border-color: #1d4ed8 !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
  border-color: #1e40af !important;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
}

.btn-outline-primary {
  border-color: #93c5fd;
  color: var(--primary-dark);
  background: #fff;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus-visible {
  color: #fff;
  border-color: #2563eb;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.btn-outline-secondary {
  border-color: #cbd5e1;
  color: #475569;
  background: #fff;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus-visible {
  border-color: #94a3b8;
  color: #1e293b;
  background: #f8fafc;
}

.btn-success {
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.18);
}

/* ===============================
   Badge uyumu (Bootstrap 4 style)
================================ */
.badge {
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.01em;
}

.badge.badge-primary {
  background: #dbeafe;
  color: #1e40af;
}
.badge.badge-secondary {
  background: #e2e8f0;
  color: #334155;
}
.badge.badge-success {
  background: #dcfce7;
  color: #166534;
}
.badge.badge-danger {
  background: #fee2e2;
  color: #991b1b;
}
.badge.badge-warning {
  background: #fef3c7;
  color: #92400e;
}
.badge.badge-info {
  background: #e0f2fe;
  color: #075985;
}
.badge.badge-light {
  background: #f1f5f9;
  color: #334155;
}

/* ===============================
   Auth wrapper (register / forgot)
================================ */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.4rem;
  background:
    radial-gradient(
      70% 50% at 12% 18%,
      rgba(37, 99, 235, 0.22) 0%,
      transparent 65%
    ),
    radial-gradient(
      56% 44% at 88% 82%,
      rgba(16, 42, 92, 0.3) 0%,
      transparent 66%
    ),
    linear-gradient(135deg, #0d1b3e 0%, #102a5c 56%, #0d1b3e 100%);
}

.auth-card {
  width: min(560px, 100%);
  border-radius: 20px;
  border: 1px solid rgba(219, 234, 254, 0.8);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 26px 62px rgba(13, 27, 62, 0.24);
  padding: 1.7rem 1.8rem;
}

.auth-logo {
  text-align: center;
  margin-bottom: 1.2rem;
}

.auth-logo .logo-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.auth-logo h1 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--secondary);
}

.auth-logo h1 span {
  color: var(--primary);
}

.auth-logo p {
  margin: 0.36rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.divider {
  border-top: 1px solid var(--border-color);
  margin: 1.15rem 0;
}

/* ===============================
   Hatırlatma paneli / modal
================================ */
.hatr-panel {
  position: fixed;
  right: 1rem;
  top: 78px;
  width: min(360px, calc(100vw - 2rem));
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-md);
  z-index: 1100;
}

.hatr-cal-popup {
  right: 3.5rem;
  width: min(380px, calc(100vw - 2rem));
}

.hatr-panel-header,
.hatr-bd-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  justify-content: space-between;
  padding: 0.75rem 0.85rem 0.5rem;
}

.hatr-ay-baslik,
.hatr-bd-title {
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.88rem;
  flex: 1;
}

.hatr-nav-btn,
.hatr-kapat-btn,
.hatr-bd-tumu-btn {
  border: 1px solid #d9e2ef;
  background: #fff;
  color: var(--text-secondary);
  border-radius: 8px;
  min-width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hatr-nav-btn:hover,
.hatr-bd-tumu-btn:hover {
  background: #f0f6ff;
  border-color: #b7cbeb;
  color: var(--primary);
}

/* ── Bildirim dropdown liste ────────────────────────── */
.hatr-bd-list {
  max-height: 260px;
  overflow-y: auto;
}

.hatr-bd-sep-title {
  padding: 0.4rem 0.85rem 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  margin-top: 0.15rem;
}

.hatr-bd-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  transition: background 0.12s ease;
  border-bottom: 1px solid #f1f5f9;
}

.hatr-bd-item:last-child {
  border-bottom: none;
}

.hatr-bd-item:hover {
  background: #f8fafc;
}

.hatr-bd-item-read {
  opacity: 0.7;
}

.hatr-bd-item-read:hover {
  opacity: 1;
}

.hatr-bd-item-body {
  flex: 1;
  min-width: 0;
}

.hatr-bd-item-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hatr-bd-item-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.08rem;
}

.hatr-bd-item-btn {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid #d9e2ef;
  background: #fff;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.12s ease;
}

.hatr-bd-item-btn:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.hatr-bd-empty {
  padding: 1.25rem 0.85rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ── Calendar popup liste ────────────────────────────── */
.hatr-cal-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  transition: background 0.12s ease;
  border-bottom: 1px solid #f1f5f9;
}

.hatr-cal-item:last-child {
  border-bottom: none;
}

.hatr-cal-item:hover {
  background: #f0f6ff;
}

.hatr-cal-item-read {
  opacity: 0.65;
}

.hatr-cal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hatr-cal-item-body {
  flex: 1;
  min-width: 0;
}

.hatr-cal-item-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hatr-cal-item-meta {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.06rem;
}

.hatr-cal-footer {
  padding: 0.55rem 0.85rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.hatr-cal-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.hatr-cal-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.hatr-gun-basliklari {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.3rem;
  margin-bottom: 0.3rem;
}

.hatr-gun-basliklari span {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 700;
}

.hatr-gunler {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.3rem;
}

.hatr-gunler > * {
  min-height: 34px;
  border-radius: 8px;
}

.hatr-takvim-footer {
  margin-top: 0.62rem;
}

.hatr-yeni-btn,
.hatr-gun-ekle-btn {
  width: 100%;
  border: 1px solid #93c5fd;
  color: var(--primary-dark);
  background: #eff6ff;
  border-radius: 10px;
  height: 36px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.hatr-bd-liste,
.hatr-item-liste {
  max-height: 320px;
  overflow: auto;
}

.hatr-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1120;
  display: none;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  padding: 1rem;
}

.hatr-modal {
  width: min(520px, 100%);
  margin: 5vh auto 0;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: #fff;
  box-shadow: var(--shadow);
}

.hatr-modal-header,
.hatr-modal-footer {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.76rem 0.85rem;
  border-bottom: 1px solid var(--border-color);
}

.hatr-modal-footer {
  border-bottom: 0;
  border-top: 1px solid var(--border-color);
}

.hatr-modal-body {
  padding: 0.9rem;
}

.hatr-form-field + .hatr-form-field,
.hatr-form-row-2,
.hatr-bildirim-kutu {
  margin-top: 0.6rem;
}

.hatr-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.hatr-renk-secici {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.hatr-renk-dot {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.55);
  display: inline-block;
}

.hatr-yakin-badge {
  margin-left: 0.28rem;
  border-radius: 999px;
  padding: 0.05rem 0.35rem;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.65rem;
  font-weight: 700;
}

/* ===============================
   Global Loader
================================ */
.bc-global-loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 27, 62, 0.34);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.bc-global-loader.is-visible {
  opacity: 1;
  visibility: visible;
}

.bc-global-loader-card {
  width: min(370px, calc(100vw - 2rem));
  border-radius: 18px;
  border: 1px solid rgba(147, 197, 253, 0.45);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 52px rgba(13, 27, 62, 0.28);
  padding: 1.2rem 1.15rem;
  text-align: center;
}

.bc-global-loader-mark {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  margin: 0 auto 0.72rem;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  display: grid;
  place-items: center;
}

.bc-global-loader-mark span {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.32);
  border-top-color: #fff;
  border-radius: 999px;
  animation: bc-spin 0.8s linear infinite;
}

.bc-global-loader-title {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--secondary);
}

.bc-global-loader-sub {
  margin-top: 0.28rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* SweetAlert2 her zaman global loader'ın üstünde görünmeli */
.swal2-container {
  z-index: 3000 !important;
}

@keyframes bc-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===============================
   Responsive
================================ */
@media (max-width: 991.98px) {
  .sidebar {
    left: 10px;
    top: 10px;
    bottom: 10px;
    width: min(var(--app-sidebar-width), calc(100vw - 20px));
    border-radius: 20px;
    transform: translateX(calc(-100% - 24px));
  }

  .main-content {
    margin-left: 0;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  body.sidebar-open .sidebar-overlay {
    opacity: 1;
    visibility: visible;
  }

  .page-content {
    padding: 0.95rem 0.9rem 1.2rem;
  }

  .main-content > .content-wrapper,
  .main-content > .page-content {
    padding: 0.9rem 0.92rem 1.2rem;
  }

  .topbar {
    top: 10px;
    margin: 10px 10px 0;
    border-radius: 18px;
    padding: 0.68rem 0.8rem;
    min-height: 60px;
  }

  .topbar-title {
    font-size: 0.92rem;
  }

  .topbar-brand-dot {
    width: 6px;
    height: 6px;
  }

  .topbar-user-info {
    display: none;
  }

  .topbar-btn span {
    display: none;
  }

  .topbar-btn {
    padding: 0 0.5rem;
    gap: 0;
  }

  .topbar-btn svg {
    margin: 0;
  }
}

@media (max-width: 640px) {
  .topbar {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.4rem;
    margin: 10px 10px 0;
    padding: 0.6rem 0.7rem;
    min-height: 56px;
  }

  .topbar-start {
    gap: 0.35rem;
  }

  .topbar-brand-dot {
    display: none;
  }

  .topbar-actions {
    gap: 0.3rem;
  }

  .topbar-user {
    gap: 0.35rem;
    padding: 0.15rem;
  }

  .topbar-user-info {
    display: none;
  }

  .topbar-btn span {
    display: none;
  }

  .topbar-btn {
    padding: 0 0.45rem;
    gap: 0;
  }

  .topbar-btn svg {
    margin: 0;
  }

  .auth-card {
    padding: 1.35rem 1rem;
    border-radius: 16px;
  }

  .hatr-form-row-2 {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ============================================================
   BENOMCORE V3 DESIGN TOKENS — Adım 1
   AdminLTE benzeri görünümden Linear/Stripe/Vercel/Notion çizgisine
   geçiş için temel değişken seti. Mevcut sınıflar bozulmaz; bu blok
   sadece yeni component'lerin üzerine inşa edeceği token katmanıdır.
   ============================================================ */
:root,
[data-theme="light"] {
  /* Renk */
  --bc-color-bg: #f7f8fa;
  --bc-color-surface: #ffffff;
  --bc-color-surface-soft: #f1f3f6;
  --bc-color-text: #1a1d23;
  --bc-color-muted: #6b7280;
  --bc-color-border: #e5e7eb;
  --bc-color-primary: #2563eb;
  --bc-color-success: #16a34a;
  --bc-color-warning: #d97706;
  --bc-color-danger: #dc2626;

  /* Radius */
  --bc-radius-sm: 6px;
  --bc-radius-md: 10px;
  --bc-radius-lg: 14px;
  --bc-radius-xl: 20px;

  /* Shadow */
  --bc-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --bc-shadow-md: 0 4px 12px rgba(16, 24, 40, 0.08);
  --bc-shadow-lg: 0 12px 28px rgba(16, 24, 40, 0.12);

  /* Spacing scale */
  --bc-space-1: 4px;
  --bc-space-2: 8px;
  --bc-space-3: 12px;
  --bc-space-4: 16px;
  --bc-space-5: 24px;
  --bc-space-6: 32px;
  --bc-space-7: 48px;

  /* Typography */
  --bc-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --bc-font-size-xs: 0.75rem;
  --bc-font-size-sm: 0.875rem;
  --bc-font-size-md: 1rem;
  --bc-font-size-lg: 1.125rem;
  --bc-font-size-xl: 1.5rem;
  --bc-font-weight-regular: 400;
  --bc-font-weight-medium: 500;
  --bc-font-weight-semibold: 600;
  --bc-font-weight-bold: 700;

  /* Layout ölçüleri */
  --bc-sidebar-width: 260px;
  --bc-sidebar-width-collapsed: 72px;
  --bc-topbar-height: 64px;
  --bc-footer-height: 48px;
}

[data-theme="dark"] {
  --bc-color-bg: #0f1115;
  --bc-color-surface: #171a21;
  --bc-color-surface-soft: #1e222b;
  --bc-color-text: #e7e9ee;
  --bc-color-muted: #9aa1ad;
  --bc-color-border: #2a2e38;
  --bc-color-primary: #3b82f6;
  --bc-color-success: #22c55e;
  --bc-color-warning: #f59e0b;
  --bc-color-danger: #ef4444;

  --bc-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --bc-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.45);
  --bc-shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.55);
}

/* NOT: İkon kütüphanesi konsolidasyonu — sonraki adımda Font Awesome
   kaldırılıp tek kütüphane olarak Bootstrap Icons kullanılacak.
   Bu adımda head.php'deki mevcut bağımlılıklara dokunulmadı. */

/* ============================================================
   BENOMCORE V3 — Adım 2: Topbar Sadeleştirme
   Mevcut .topbar-* sınıfları korunur, yeni öğeler bc-topbar-*
   ============================================================ */
.bc-topbar {
  background: var(--bc-color-surface, #fff);
  border-bottom: 1px solid var(--bc-color-border, #e5e7eb);
  box-shadow: var(--bc-shadow-sm, 0 1px 2px rgba(16,24,40,.05));
  min-height: var(--bc-topbar-height, 64px);
  gap: var(--bc-space-4, 16px);
}

.bc-topbar-search {
  display: flex;
  align-items: center;
  gap: var(--bc-space-2, 8px);
  flex: 1 1 auto;
  max-width: 420px;
  margin: 0 auto;
  padding: 0 var(--bc-space-3, 12px);
  height: 38px;
  background: var(--bc-color-surface-soft, #f1f3f6);
  border: 1px solid var(--bc-color-border, #e5e7eb);
  border-radius: var(--bc-radius-lg, 14px);
  color: var(--bc-color-muted, #6b7280);
  transition: border-color .15s ease, background .15s ease;
}

.bc-topbar-search:focus-within {
  border-color: var(--bc-color-primary, #2563eb);
  background: var(--bc-color-surface, #fff);
}

.bc-topbar-search-icon {
  flex-shrink: 0;
  opacity: .7;
}

.bc-topbar-search-input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font-size: var(--bc-font-size-sm, .875rem);
  color: var(--bc-color-text, #1a1d23);
}

.bc-topbar-end {
  display: flex;
  align-items: center;
  gap: var(--bc-space-3, 12px);
}

.bc-topbar-quick-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 var(--bc-space-3, 12px);
  background: var(--bc-color-primary, #2563eb);
  color: #fff;
  border: 0;
  border-radius: var(--bc-radius-md, 10px);
  font-size: var(--bc-font-size-sm, .875rem);
  font-weight: var(--bc-font-weight-medium, 500);
  transition: opacity .15s ease;
}

.bc-topbar-quick-action:hover {
  opacity: .9;
}

.bc-topbar-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--bc-color-border, #e5e7eb);
  border-radius: var(--bc-radius-md, 10px);
  color: var(--bc-color-muted, #6b7280);
  transition: background .15s ease, color .15s ease;
}

.bc-topbar-icon-btn:hover {
  background: var(--bc-color-surface-soft, #f1f3f6);
  color: var(--bc-color-text, #1a1d23);
}

.bc-topbar-profile-toggle {
  display: flex;
  align-items: center;
  gap: var(--bc-space-2, 8px);
  background: transparent;
  border: 0;
  padding: 4px 6px;
  border-radius: var(--bc-radius-md, 10px);
}

.bc-topbar-profile-toggle:hover {
  background: var(--bc-color-surface-soft, #f1f3f6);
}

.bc-topbar-profile-toggle::after {
  display: none;
}

.bc-topbar-profile-menu {
  border: 1px solid var(--bc-color-border, #e5e7eb);
  border-radius: var(--bc-radius-md, 10px);
  box-shadow: var(--bc-shadow-md, 0 4px 12px rgba(16,24,40,.08));
  padding: 6px;
  min-width: 200px;
}

.bc-topbar-profile-menu .dropdown-item {
  border-radius: var(--bc-radius-sm, 6px);
  font-size: var(--bc-font-size-sm, .875rem);
  padding: 8px 10px;
}

@media (max-width: 768px) {
  .bc-topbar-search {
    max-width: 38px;
    padding: 0;
    justify-content: center;
    border-color: transparent;
    background: transparent;
  }

  .bc-topbar-search-input {
    display: none;
  }

  .bc-topbar-quick-action span {
    display: none;
  }

  .bc-topbar-quick-action {
    width: 36px;
    padding: 0;
    justify-content: center;
  }

  .bc-topbar-end {
    gap: var(--bc-space-2, 8px);
  }
}

[data-theme="dark"] .bc-topbar {
  background: var(--bc-color-surface);
  border-bottom-color: var(--bc-color-border);
}

[data-theme="dark"] .bc-topbar-search {
  background: var(--bc-color-surface-soft);
  border-color: var(--bc-color-border);
}

[data-theme="dark"] .bc-topbar-search-input {
  color: var(--bc-color-text);
}

[data-theme="dark"] .bc-topbar-icon-btn {
  border-color: var(--bc-color-border);
  color: var(--bc-color-muted);
}

[data-theme="dark"] .bc-topbar-profile-menu {
  background: var(--bc-color-surface);
  border-color: var(--bc-color-border);
}

/* ============================================================
   BENOMCORE V3 — Adım 3: Footer Sadeleştirme
   ============================================================ */
.bc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bc-space-4, 16px);
  min-height: var(--bc-footer-height, 48px);
  padding: var(--bc-space-2, 8px) var(--bc-space-5, 24px);
  background: var(--bc-color-surface, #fff);
  border-top: 1px solid var(--bc-color-border, #e5e7eb);
  border-radius: var(--bc-radius-sm, 6px) var(--bc-radius-sm, 6px) 0 0;
  font-size: var(--bc-font-size-xs, .75rem);
  color: var(--bc-color-muted, #6b7280);
}

.bc-footer-start {
  display: flex;
  align-items: center;
  gap: var(--bc-space-3, 12px);
  flex-shrink: 0;
}

.bc-footer-version {
  font-weight: var(--bc-font-weight-medium, 500);
  color: var(--bc-color-text, #1a1d23);
}

.bc-footer-links {
  display: flex;
  align-items: center;
  gap: var(--bc-space-4, 16px);
  flex-wrap: wrap;
  justify-content: center;
}

.bc-footer-links a {
  color: var(--bc-color-muted, #6b7280);
  text-decoration: none;
}

.bc-footer-links a:hover {
  color: var(--bc-color-primary, #2563eb);
}

.bc-footer-status {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}

.bc-footer-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bc-color-success, #16a34a);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--bc-color-success, #16a34a) 25%, transparent);
}

@media (max-width: 768px) {
  .bc-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--bc-space-2, 8px);
    padding: var(--bc-space-3, 12px) var(--bc-space-4, 16px);
  }

  .bc-footer-links {
    justify-content: flex-start;
    gap: var(--bc-space-3, 12px);
  }

  .bc-footer-status {
    order: 3;
  }
}

[data-theme="dark"] .bc-footer {
  background: var(--bc-color-surface);
  border-top-color: var(--bc-color-border);
}

[data-theme="dark"] .bc-footer-version {
  color: var(--bc-color-text);
}

/* ============================================================
   BENOMCORE V3 — Adım 4: Sidebar Görsel Yeniden Tasarımı
   Veri/permission/JS mantığı değişmedi; sadece görsel katman.
   Sidebar her zaman dark surface kalır (tema değiştirici sidebar'ı etkilemez).
   ============================================================ */
.bc-sidebar .nav-parent {
  position: relative;
}

/* Aktif menüde sol ince accent çizgisi */
.bc-sidebar .nav-parent.active::before,
.bc-sidebar .nav-parent.has-active::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 8%;
  bottom: 8%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #60a5fa;
}

.bc-sidebar .nav-label {
  font-weight: var(--bc-font-weight-medium, 500);
  letter-spacing: 0.01em;
}

.bc-sidebar .nav-parent svg:first-child {
  flex-shrink: 0;
}

.bc-sidebar-footer {
  padding: var(--bc-space-2, 8px) var(--bc-space-3, 12px) var(--bc-space-3, 12px);
}

.bc-sidebar-support {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.7rem;
  border-radius: var(--bc-radius-md, 10px);
  color: rgba(219, 234, 254, 0.85);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(147, 197, 253, 0.18);
  transition: background 0.15s ease, color 0.15s ease;
}

.bc-sidebar-support svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.bc-sidebar-support:hover {
  color: #fff;
  background: rgba(37, 99, 235, 0.22);
}

/* Collapsed durumda diğer nav item'larla aynı davranış: metin gizlenir */
body.sidebar-collapsed .bc-sidebar-support .nav-label {
  display: none;
}

/* ============================================================
   BENOMCORE V3 — Adım 4 ek: Footer içerik güncellemesi
   (API/Dokümantasyon/Destek/Gizlilik kaldırıldı, oturum hash + servis durumu)
   ============================================================ */
.bc-footer-session {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--bc-color-muted, #6b7280);
}

.bc-footer-session code {
  background: var(--bc-color-surface-soft, #f1f3f6);
  border: 1px solid var(--bc-color-border, #e5e7eb);
  border-radius: var(--bc-radius-sm, 6px);
  padding: 2px 6px;
  font-size: var(--bc-font-size-xs, .75rem);
  color: var(--bc-color-text, #1a1d23);
}

[data-theme="dark"] .bc-footer-session code {
  background: var(--bc-color-surface-soft);
  border-color: var(--bc-color-border);
  color: var(--bc-color-text);
}

@media (max-width: 768px) {
  .bc-footer-session {
    order: 2;
  }
}

/* ============================================================
   BENOMCORE V3 — Adım 5: Benom Asistan Widget Kabuğu
   Sadece UI; gerçek veri/AI bağlantısı yok.
   ============================================================ */
.bc-assistant {
  position: fixed;
  right: var(--bc-space-5, 24px);
  bottom: 64px;
  z-index: 1200;
}

.bc-assistant-fab {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: radial-gradient(circle at 50% 38%, #1b2c52 0%, #0c1530 52%, #060b1c 100%);
  color: #fff;
  box-shadow:
    0 8px 26px rgba(20, 70, 190, 0.45),
    0 2px 8px rgba(8, 14, 38, 0.55),
    0 0 0 1px rgba(90, 150, 255, 0.18),
    inset 0 0 20px rgba(40, 100, 220, 0.30),
    inset 0 1px 0 rgba(150, 195, 255, 0.22);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease, opacity .15s ease;
  animation: bcaOrbFloat 4.2s ease-in-out infinite;
}

/* outer pulse ring (also reused by reminder state) */
.bc-assistant-fab-ring {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px solid rgba(86, 160, 255, 0.5);
  opacity: 0;
  animation: bcAssistantFabPulse 2.8s ease-out infinite;
  pointer-events: none;
}

/* ── Orb core ─────────────────────────────────────────── */
.bca-orb {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* soft inner cyan glow that breathes */
.bca-orb-glow {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 55%, rgba(90,200,255,0.55), rgba(40,120,240,0.18) 55%, transparent 72%);
  filter: blur(2px);
  animation: bcaOrbBreath 3.4s ease-in-out infinite;
  pointer-events: none;
}

/* rotating arc rings */
.bca-orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid transparent;
  pointer-events: none;
}
.bca-orb-ring-1 {
  inset: 4px;
  border-top-color: rgba(120, 200, 255, 0.95);
  border-right-color: rgba(120, 200, 255, 0.28);
  filter: drop-shadow(0 0 3px rgba(90, 170, 255, 0.85));
  animation: bcaOrbSpin 3.4s linear infinite;
}
.bca-orb-ring-2 {
  inset: 8px;
  border-bottom-color: rgba(150, 215, 255, 0.85);
  border-left-color: rgba(150, 215, 255, 0.22);
  filter: drop-shadow(0 0 2px rgba(120, 195, 255, 0.7));
  animation: bcaOrbSpin 5.2s linear infinite reverse;
}
.bca-orb-ring-3 {
  inset: 1px;
  border-left-color: rgba(70, 140, 255, 0.55);
  border-right-color: rgba(70, 140, 255, 0.10);
  animation: bcaOrbSpin 7.5s linear infinite;
}

/* orbiting glow dots */
.bca-orb-orbit {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.bca-orb-orbit-1 { inset: 2px; animation: bcaOrbSpin 4.6s linear infinite; }
.bca-orb-orbit-2 { inset: 6px; animation: bcaOrbSpin 6.8s linear infinite reverse; }
.bca-orb-dot {
  position: absolute;
  top: -1px;
  left: 50%;
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  border-radius: 50%;
  background: #d8f1ff;
  box-shadow: 0 0 6px 1px rgba(140, 215, 255, 0.95), 0 0 2px #fff;
}
.bca-orb-orbit-2 .bca-orb-dot {
  width: 2.5px; height: 2.5px;
  background: #9ecbff;
  box-shadow: 0 0 5px 1px rgba(110, 175, 255, 0.9);
}

/* the two eyes */
.bca-orb-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 3;
}
.bca-eye {
  width: 5px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(180deg, #d6f4ff 0%, #4cc3ff 55%, #0ea5e9 100%);
  box-shadow:
    0 0 8px rgba(64, 196, 255, 0.95),
    0 0 16px rgba(56, 170, 255, 0.55);
  transform-origin: center;
  animation: bcaEyeBlink 5.5s ease-in-out infinite, bcaEyeGlow 2.6s ease-in-out infinite;
}
.bca-eye:nth-child(2) { animation-delay: 0s, .3s; }

/* ── hover / open / active states ─────────────────────── */
.bc-assistant-fab:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow:
    0 16px 36px rgba(30, 90, 220, 0.55),
    0 4px 12px rgba(8, 14, 38, 0.6),
    0 0 0 1px rgba(120, 180, 255, 0.3),
    inset 0 0 26px rgba(60, 130, 255, 0.4),
    inset 0 1px 0 rgba(180, 215, 255, 0.3);
}
.bc-assistant-fab:active {
  transform: translateY(-1px) scale(1.02);
}
.bc-assistant-open .bc-assistant-fab {
  transform: scale(0.9);
  box-shadow:
    0 0 0 4px rgba(40, 110, 240, 0.25),
    0 8px 22px rgba(20, 70, 190, 0.4),
    inset 0 0 18px rgba(40, 100, 220, 0.3);
  animation: none;
}

/* ── keyframes ────────────────────────────────────────── */
@keyframes bcaOrbFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}
@keyframes bcaOrbSpin {
  to { transform: rotate(360deg); }
}
@keyframes bcaOrbBreath {
  0%, 100% { opacity: .65; transform: scale(.94); }
  50%      { opacity: 1;   transform: scale(1.06); }
}
@keyframes bcaEyeGlow {
  0%, 100% { opacity: .82; }
  50%      { opacity: 1; }
}
@keyframes bcaEyeBlink {
  0%, 90%, 100% { transform: scaleY(1); }
  93%           { transform: scaleY(0.1); }
  96%           { transform: scaleY(1); }
}

@keyframes bcAssistantFabPulse {
  0%   { transform: scale(0.85); opacity: .5; }
  70%  { opacity: 0; }
  100% { transform: scale(1.3); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bc-assistant-fab,
  .bc-assistant-fab-ring,
  .bca-orb-glow,
  .bca-orb-ring,
  .bca-orb-orbit,
  .bca-eye {
    animation: none !important;
  }
}



.bc-assistant-panel {
  position: fixed;
  right: var(--bc-space-5, 24px);
  bottom: calc(var(--bc-space-5, 24px) + 56px);
  width: 400px;
  height: 560px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  background: var(--bc-color-surface, #fff);
  border: 1px solid var(--bc-color-border, #e5e7eb);
  border-radius: 18px;
  box-shadow: 0 24px 56px rgba(16,24,40,.18), 0 4px 16px rgba(16,24,40,.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(.96);
  transition: opacity .22s cubic-bezier(.4,0,.2,1),
              transform .22s cubic-bezier(.4,0,.2,1),
              visibility .22s;
  overflow: hidden;
  pointer-events: none;
}

.bc-assistant-open .bc-assistant-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Header */
.bc-assistant-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: linear-gradient(180deg,rgba(37,99,235,.06),transparent);
  border-bottom: 1px solid var(--bc-color-border,#e5e7eb);
  flex-shrink: 0;
  user-select: none;
}

.bc-assistant-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .82rem;
  color: var(--bc-color-text,#1a1d23);
}

.bc-assistant-panel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22,163,74,.2);
}

.bc-assistant-panel-controls { display: flex; gap: 4px; }

.bc-assistant-icon-btn {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  border-radius: 6px;
  color: var(--bc-color-muted,#6b7280);
  transition: background .15s, color .15s;
}
.bc-assistant-icon-btn:hover {
  background: var(--bc-color-surface-soft,#f1f3f6);
  color: var(--bc-color-text,#1a1d23);
}

/* Top bar */
.bc-assistant-topbar {
  display: flex;
  padding: 6px 12px;
  border-bottom: 1px solid var(--bc-color-border,#e5e7eb);
  flex-shrink: 0;
  background: #fafbfd;
}

.bc-assistant-topbar-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border: 0;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  color: #6b7280;
  background: transparent;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.bc-assistant-topbar-btn:hover { background: #f1f3f6; color: #1a1d23; }
.bc-assistant-topbar-btn.active {
  background: var(--bc-color-primary,#2563eb);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,.28);
}

/* Body = sidebar + content */
.bc-assistant-body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

/* Left sidebar */
.bc-assistant-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 5px;
  width: 46px;
  flex-shrink: 0;
  border-right: 1px solid var(--bc-color-border,#e5e7eb);
  background: #fafbfd;
  overflow-y: auto;
  scrollbar-width: none;
}
.bc-assistant-sidebar::-webkit-scrollbar { display: none; }

.bc-assistant-sidetab {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, color .15s, transform .12s;
}
.bc-assistant-sidetab:hover {
  background: #f1f5f9;
  color: #475569;
  transform: scale(1.08);
}
.bc-assistant-sidetab.active {
  background: rgba(37,99,235,.1);
  color: #2563eb;
}

/* Content area */
.bc-assistant-content {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 0;
}

.bc-assistant-tab-panel {
  display: none;
  padding: 14px;
}
.bc-assistant-tab-panel[data-assistant-panel="ai_chat"] {
  padding: 0;
  height: 100%;
  display: none;
  flex-direction: column;
}
.bc-assistant-tab-panel[data-assistant-panel="ai_chat"].active {
  display: flex;
}
.bc-assistant-tab-panel.active {
  display: block;
}

@media(max-width:576px){
  .bc-assistant-panel {
    right: 0; left: 0; bottom: 0;
    width: 100% !important;
    max-width: 100%;
    border-radius: 18px 18px 0 0;
    height: 72vh;
  }
}

/* Liste / boş durum / sohbet / sistem durumu bileşenleri */
.bc-assistant-list {
  display: flex;
  flex-direction: column;
  gap: var(--bc-space-3, 12px);
}

.bc-assistant-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 8px;
  margin: 0 -8px;
  border-radius: var(--bc-radius-md, 10px);
  transition: background .15s ease;
}

.bc-assistant-item:hover {
  background: var(--bc-color-surface-soft, #f1f3f6);
}

.bc-assistant-item-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.bc-assistant-dot-success { background: var(--bc-color-success, #16a34a); }
.bc-assistant-dot-warning { background: var(--bc-color-warning, #d97706); }
.bc-assistant-dot-danger  { background: var(--bc-color-danger, #dc2626); }

.bc-assistant-item-title {
  font-size: var(--bc-font-size-sm, .875rem);
  font-weight: var(--bc-font-weight-medium, 500);
  color: var(--bc-color-text, #1a1d23);
}

.bc-assistant-item-desc {
  font-size: var(--bc-font-size-xs, .75rem);
  color: var(--bc-color-muted, #6b7280);
}

.bc-assistant-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: var(--bc-space-6, 32px) var(--bc-space-3, 12px);
  color: var(--bc-color-muted, #6b7280);
}

.bc-assistant-empty p {
  font-size: var(--bc-font-size-sm, .875rem);
  margin: 0;
}

/* ── Benom AI Chat ─────────────────────────────── */
.bca-chat {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.bca-chat-log {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: #e2e8f0 transparent;
}

/* Welcome block */
.bca-chat-welcome {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.bca-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg,#3b82f6,#1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37,99,235,.28);
}

.bca-chat-welcome-text {
  display: flex;
  align-items: center;
  gap: 7px;
}

.bca-chat-name {
  font-weight: 700;
  font-size: .88rem;
  color: #1e293b;
}

.bca-chat-badge {
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: linear-gradient(135deg,#818cf8,#6366f1);
  color: #fff;
  letter-spacing: .02em;
}

/* Messages */
.bca-msg { display: flex; }

.bca-msg-bot { justify-content: flex-start; }
.bca-msg-user { justify-content: flex-end; }

.bca-msg-bubble {
  max-width: 88%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: .82rem;
  line-height: 1.55;
}

.bca-msg-bot .bca-msg-bubble {
  background: #f1f5f9;
  color: #1e293b;
  border-bottom-left-radius: 4px;
}

.bca-msg-user .bca-msg-bubble {
  background: linear-gradient(135deg,#3b82f6,#2563eb);
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* Quick prompts */
.bca-quick-prompts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
}

.bca-prompt-chip {
  text-align: left;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  font-size: .78rem;
  color: #475569;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}

.bca-prompt-chip:not(:disabled):hover {
  border-color: #a5b4fc;
  background: #f5f3ff;
  color: #4f46e5;
}

.bca-prompt-chip:disabled {
  cursor: not-allowed;
  opacity: .6;
}

/* Input bar */
.bca-chat-inputbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
  flex-shrink: 0;
}

.bca-chat-input {
  flex: 1 1 auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: .82rem;
  background: #f8fafc;
  color: #1e293b;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.bca-chat-input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}

.bca-chat-input:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.bca-chat-send {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg,#3b82f6,#2563eb);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity .15s, transform .12s;
  box-shadow: 0 2px 8px rgba(37,99,235,.3);
}

.bca-chat-send:not(:disabled):hover { opacity: .9; transform: scale(1.05); }
.bca-chat-send:disabled { opacity: .5; cursor: not-allowed; }

.bc-assistant-status-list {
  display: flex;
  flex-direction: column;
  gap: var(--bc-space-2, 8px);
}

.bc-assistant-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--bc-font-size-sm, .875rem);
  color: var(--bc-color-text, #1a1d23);
}

.bc-assistant-status-pill {
  font-size: var(--bc-font-size-xs, .75rem);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: var(--bc-font-weight-medium, 500);
}

.bc-assistant-status-ok {
  background: color-mix(in srgb, var(--bc-color-success, #16a34a) 15%, transparent);
  color: var(--bc-color-success, #16a34a);
}

.bc-assistant-status-warn {
  background: color-mix(in srgb, var(--bc-color-warning, #d97706) 15%, transparent);
  color: var(--bc-color-warning, #d97706);
}

/* Küçültme / tam ekran / sürükleme durumları */
.bc-assistant-minimized .bc-assistant-panel {
  height: auto !important;
  min-height: 0;
  max-height: none;
}

.bc-assistant-minimized .bc-assistant-tabs,
.bc-assistant-minimized .bc-assistant-panel-body,
.bc-assistant-minimized .bc-assistant-resize-handle {
  display: none;
}

.bc-assistant-positioned .bc-assistant-panel {
  right: auto;
  bottom: auto;
}

.bc-assistant-fullscreen .bc-assistant-panel {
  right: var(--bc-space-4, 16px) !important;
  bottom: var(--bc-space-4, 16px) !important;
  left: var(--bc-space-4, 16px) !important;
  top: var(--bc-space-4, 16px) !important;
  width: auto !important;
  height: auto !important;
  max-width: none;
  max-height: none;
}

.bc-assistant-fullscreen .bc-assistant-resize-handle {
  display: none;
}

@media (max-width: 576px) {
  .bc-assistant-panel {
    right: 10px !important;
    bottom: 10px !important;
    left: 10px !important;
    top: 10px !important;
    width: auto !important;
    height: auto !important;
    max-width: none;
    max-height: none;
  }

  .bc-assistant-resize-handle {
    display: none;
  }

  .bc-assistant {
    right: var(--bc-space-4, 16px);
    bottom: 56px;
  }
}


/* ── Benom Asistan Mini Takvim ──────────────────── */
.bca-cal { display:flex; flex-direction:column; padding:10px; gap:8px; }

.bca-cal-header {
  display:flex; align-items:center; gap:6px;
  padding:2px 0 4px;
}
.bca-cal-nav {
  width:26px; height:26px; border:1px solid #e2e8f0; border-radius:7px;
  background:#fff; display:flex; align-items:center; justify-content:center;
  cursor:pointer; color:#64748b; flex-shrink:0;
  transition:background .13s, border-color .13s;
}
.bca-cal-nav:hover { background:#f1f5f9; border-color:#cbd5e1; color:#1e293b; }
.bca-cal-title {
  flex:1; text-align:center; font-weight:700; font-size:.82rem; color:#1e293b;
}
.bca-cal-fulllink {
  width:26px; height:26px; display:flex; align-items:center; justify-content:center;
  color:#94a3b8; border-radius:7px; text-decoration:none;
  transition:color .13s, background .13s;
}
.bca-cal-fulllink:hover { color:#3b82f6; background:#eff6ff; }

/* 7-col grid */
.bca-cal-grid {
  display:grid; grid-template-columns:repeat(7,1fr); gap:2px;
}
.bca-cal-daynames { margin-bottom:1px; }
.bca-cal-dayname {
  text-align:center; font-size:.65rem; font-weight:600;
  color:#94a3b8; padding:2px 0; text-transform:uppercase; letter-spacing:.03em;
}

.bca-cal-day {
  display:flex; flex-direction:column; align-items:center;
  padding:3px 1px 2px; border-radius:7px; cursor:default;
  min-height:32px; position:relative;
  transition:background .12s;
}
.bca-cal-day.bca-cal-has-ev { cursor:default; }
.bca-cal-day-empty { visibility:hidden; }
.bca-cal-day-num {
  font-size:.72rem; font-weight:500; color:#475569; line-height:1;
  width:22px; height:22px; display:flex; align-items:center; justify-content:center;
  border-radius:50%;
}
.bca-cal-today .bca-cal-day-num {
  background:linear-gradient(135deg,#3b82f6,#2563eb);
  color:#fff; font-weight:700;
  box-shadow:0 2px 6px rgba(37,99,235,.32);
}
.bca-cal-dots {
  display:flex; gap:2px; justify-content:center; flex-wrap:wrap;
  margin-top:2px;
}
.bca-cal-dot {
  width:5px; height:5px; border-radius:50%; display:block; flex-shrink:0;
}
.bca-cal-dot-more {
  font-size:.5rem; color:#94a3b8; line-height:5px; font-weight:700;
  width:auto; height:auto; background:none !important;
}

/* Upcoming events */
.bca-cal-upcoming {
  border-top:1px solid #f1f5f9; padding-top:8px; display:flex; flex-direction:column; gap:4px;
}
.bca-cal-upcoming-title {
  font-size:.7rem; font-weight:700; color:#94a3b8;
  text-transform:uppercase; letter-spacing:.05em; margin-bottom:2px;
}
.bca-cal-event-row {
  display:flex; align-items:center; gap:7px;
  padding:5px 6px; border-radius:8px; text-decoration:none;
  transition:background .12s;
}
.bca-cal-event-row:hover { background:#f8fafc; }
.bca-cal-event-dot {
  width:8px; height:8px; border-radius:50%; flex-shrink:0;
}
.bca-cal-event-title {
  flex:1; font-size:.75rem; color:#1e293b; font-weight:500;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.bca-cal-event-date {
  font-size:.69rem; color:#94a3b8; white-space:nowrap; flex-shrink:0;
}
.bca-cal-empty {
  font-size:.75rem; color:#94a3b8; text-align:center; padding:8px 0;
}

[data-theme="dark"] .bc-assistant-panel {
  background: var(--bc-color-surface);
  border-color: var(--bc-color-border);
}

[data-theme="dark"] .bc-assistant-panel-header,
[data-theme="dark"] .bc-assistant-tabs {
  border-color: var(--bc-color-border);
}

[data-theme="dark"] .bc-assistant-chat-msg,
[data-theme="dark"] .bc-assistant-chat-input {
  background: var(--bc-color-surface-soft);
  color: var(--bc-color-text);
}

/* ============================================================
   BENOMCORE V3 — Adım 6: Component Kütüphanesi İskeletleri
   bc-card / bc-stat-card / bc-table / bc-badge / bc-alert /
   bc-empty-state / bc-quick-actions / bc-modal
   ============================================================ */

/* ── bc-card ───────────────────────────────────────────── */
.bc-card {
  background: var(--bc-color-surface, #fff);
  border: 1px solid var(--bc-color-border, #e5e7eb);
  border-radius: var(--bc-radius-lg, 14px);
  box-shadow: var(--bc-shadow-sm, 0 1px 2px rgba(16,24,40,.05));
}

.bc-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bc-space-3, 12px);
  padding: var(--bc-space-4, 16px) var(--bc-space-5, 24px);
  border-bottom: 1px solid var(--bc-color-border, #e5e7eb);
}

.bc-card-header-main {
  display: flex;
  align-items: center;
  gap: var(--bc-space-3, 12px);
  min-width: 0;
}

.bc-card-icon {
  flex-shrink: 0;
  display: inline-flex;
  color: var(--bc-color-primary, #2563eb);
}

.bc-card-title {
  font-size: var(--bc-font-size-md, 1rem);
  font-weight: var(--bc-font-weight-semibold, 600);
  color: var(--bc-color-text, #1a1d23);
}

.bc-card-subtitle {
  font-size: var(--bc-font-size-xs, .75rem);
  color: var(--bc-color-muted, #6b7280);
}

.bc-card-body {
  padding: var(--bc-space-5, 24px);
}

.bc-card-footer {
  padding: var(--bc-space-3, 12px) var(--bc-space-5, 24px);
  border-top: 1px solid var(--bc-color-border, #e5e7eb);
}

/* ── bc-stat-card ──────────────────────────────────────── */
.bc-stat-card {
  background: var(--bc-color-surface, #fff);
  border: 1px solid var(--bc-color-border, #e5e7eb);
  border-radius: var(--bc-radius-lg, 14px);
  box-shadow: var(--bc-shadow-sm, 0 1px 2px rgba(16,24,40,.05));
  padding: var(--bc-space-4, 16px) var(--bc-space-5, 24px);
}

.bc-stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--bc-space-2, 8px);
}

.bc-stat-card-title {
  font-size: var(--bc-font-size-sm, .875rem);
  color: var(--bc-color-muted, #6b7280);
}

.bc-stat-card-icon {
  display: inline-flex;
  color: var(--bc-color-primary, #2563eb);
}

.bc-stat-card-value {
  font-size: var(--bc-font-size-xl, 1.5rem);
  font-weight: var(--bc-font-weight-bold, 700);
  color: var(--bc-color-text, #1a1d23);
}

.bc-stat-card-change {
  font-size: var(--bc-font-size-xs, .75rem);
  color: var(--bc-color-muted, #6b7280);
  margin-top: 2px;
}

.bc-stat-card-footer {
  margin-top: var(--bc-space-3, 12px);
  font-size: var(--bc-font-size-xs, .75rem);
  color: var(--bc-color-muted, #6b7280);
}

.bc-stat-card-tone-success .bc-stat-card-change { color: var(--bc-color-success, #16a34a); }
.bc-stat-card-tone-warning .bc-stat-card-change { color: var(--bc-color-warning, #d97706); }
.bc-stat-card-tone-danger  .bc-stat-card-change { color: var(--bc-color-danger, #dc2626); }
.bc-stat-card-tone-info    .bc-stat-card-change { color: var(--bc-color-primary, #2563eb); }

/* ── bc-table ──────────────────────────────────────────── */
.bc-table-wrap {
  background: var(--bc-color-surface, #fff);
  border: 1px solid var(--bc-color-border, #e5e7eb);
  border-radius: var(--bc-radius-lg, 14px);
  overflow-x: auto;
}

.bc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--bc-font-size-sm, .875rem);
}

.bc-table thead th {
  text-align: left;
  padding: var(--bc-space-3, 12px) var(--bc-space-4, 16px);
  background: var(--bc-color-surface-soft, #f1f3f6);
  color: var(--bc-color-muted, #6b7280);
  font-weight: var(--bc-font-weight-medium, 500);
  font-size: var(--bc-font-size-xs, .75rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--bc-color-border, #e5e7eb);
}

.bc-table tbody td {
  padding: var(--bc-space-3, 12px) var(--bc-space-4, 16px);
  border-bottom: 1px solid var(--bc-color-border, #e5e7eb);
  color: var(--bc-color-text, #1a1d23);
}

.bc-table tbody tr:last-child td {
  border-bottom: 0;
}

.bc-table-align-left   { text-align: left; }
.bc-table-align-center { text-align: center; }
.bc-table-align-right  { text-align: right; }

.bc-table-empty {
  text-align: center;
  color: var(--bc-color-muted, #6b7280);
  padding: var(--bc-space-6, 32px);
}

/* ── bc-badge ──────────────────────────────────────────── */
.bc-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: var(--bc-font-size-xs, .75rem);
  font-weight: var(--bc-font-weight-medium, 500);
  line-height: 1.6;
}

.bc-badge-icon {
  display: inline-flex;
}

.bc-badge-success { background: color-mix(in srgb, var(--bc-color-success, #16a34a) 15%, transparent); color: var(--bc-color-success, #16a34a); }
.bc-badge-warning { background: color-mix(in srgb, var(--bc-color-warning, #d97706) 15%, transparent); color: var(--bc-color-warning, #d97706); }
.bc-badge-danger  { background: color-mix(in srgb, var(--bc-color-danger, #dc2626) 15%, transparent); color: var(--bc-color-danger, #dc2626); }
.bc-badge-info    { background: color-mix(in srgb, var(--bc-color-primary, #2563eb) 15%, transparent); color: var(--bc-color-primary, #2563eb); }
.bc-badge-neutral { background: var(--bc-color-surface-soft, #f1f3f6); color: var(--bc-color-muted, #6b7280); }

/* ── bc-alert ──────────────────────────────────────────── */
.bc-alert {
  display: flex;
  gap: var(--bc-space-3, 12px);
  padding: var(--bc-space-3, 12px) var(--bc-space-4, 16px);
  border-radius: var(--bc-radius-md, 10px);
  border: 1px solid transparent;
}

.bc-alert-icon {
  flex-shrink: 0;
  display: inline-flex;
  margin-top: 2px;
}

.bc-alert-title {
  font-weight: var(--bc-font-weight-semibold, 600);
  font-size: var(--bc-font-size-sm, .875rem);
  margin-bottom: 2px;
}

.bc-alert-message {
  font-size: var(--bc-font-size-sm, .875rem);
}

.bc-alert-success { background: color-mix(in srgb, var(--bc-color-success, #16a34a) 10%, transparent); border-color: color-mix(in srgb, var(--bc-color-success, #16a34a) 25%, transparent); color: var(--bc-color-success, #16a34a); }
.bc-alert-warning { background: color-mix(in srgb, var(--bc-color-warning, #d97706) 10%, transparent); border-color: color-mix(in srgb, var(--bc-color-warning, #d97706) 25%, transparent); color: var(--bc-color-warning, #d97706); }
.bc-alert-danger  { background: color-mix(in srgb, var(--bc-color-danger, #dc2626) 10%, transparent); border-color: color-mix(in srgb, var(--bc-color-danger, #dc2626) 25%, transparent); color: var(--bc-color-danger, #dc2626); }
.bc-alert-info    { background: color-mix(in srgb, var(--bc-color-primary, #2563eb) 10%, transparent); border-color: color-mix(in srgb, var(--bc-color-primary, #2563eb) 25%, transparent); color: var(--bc-color-primary, #2563eb); }

.bc-alert-success .bc-alert-message,
.bc-alert-warning .bc-alert-message,
.bc-alert-danger .bc-alert-message,
.bc-alert-info .bc-alert-message {
  color: var(--bc-color-text, #1a1d23);
}

/* ── bc-empty-state ────────────────────────────────────── */
.bc-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--bc-space-2, 8px);
  padding: var(--bc-space-7, 48px) var(--bc-space-4, 16px);
  color: var(--bc-color-muted, #6b7280);
}

.bc-empty-state-icon {
  color: var(--bc-color-muted, #6b7280);
  opacity: .7;
}

.bc-empty-state-title {
  font-size: var(--bc-font-size-md, 1rem);
  font-weight: var(--bc-font-weight-semibold, 600);
  color: var(--bc-color-text, #1a1d23);
}

.bc-empty-state-message {
  font-size: var(--bc-font-size-sm, .875rem);
  margin: 0;
  max-width: 360px;
}

.bc-empty-state-action {
  margin-top: var(--bc-space-2, 8px);
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--bc-radius-md, 10px);
  background: var(--bc-color-primary, #2563eb);
  color: #fff;
  font-size: var(--bc-font-size-sm, .875rem);
  font-weight: var(--bc-font-weight-medium, 500);
  text-decoration: none;
}

/* ── bc-quick-actions ──────────────────────────────────── */
.bc-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bc-space-2, 8px);
}

.bc-quick-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--bc-radius-md, 10px);
  font-size: var(--bc-font-size-sm, .875rem);
  font-weight: var(--bc-font-weight-medium, 500);
  text-decoration: none;
  border: 1px solid var(--bc-color-border, #e5e7eb);
  color: var(--bc-color-text, #1a1d23);
  background: var(--bc-color-surface, #fff);
  transition: background .15s ease;
}

.bc-quick-action:hover {
  background: var(--bc-color-surface-soft, #f1f3f6);
}

.bc-quick-action-primary {
  background: var(--bc-color-primary, #2563eb);
  border-color: var(--bc-color-primary, #2563eb);
  color: #fff;
}

.bc-quick-action-primary:hover { opacity: .9; }

.bc-quick-action-success { background: var(--bc-color-success, #16a34a); border-color: var(--bc-color-success, #16a34a); color: #fff; }
.bc-quick-action-warning { background: var(--bc-color-warning, #d97706); border-color: var(--bc-color-warning, #d97706); color: #fff; }
.bc-quick-action-danger  { background: var(--bc-color-danger, #dc2626); border-color: var(--bc-color-danger, #dc2626); color: #fff; }

/* ── bc-modal ──────────────────────────────────────────── */
.bc-modal-content {
  border-radius: var(--bc-radius-lg, 14px);
  border: 1px solid var(--bc-color-border, #e5e7eb);
}

.bc-modal-header {
  border-bottom: 1px solid var(--bc-color-border, #e5e7eb);
}

.bc-modal-title {
  font-size: var(--bc-font-size-md, 1rem);
  font-weight: var(--bc-font-weight-semibold, 600);
}

.bc-modal-footer {
  border-top: 1px solid var(--bc-color-border, #e5e7eb);
}

[data-theme="dark"] .bc-card,
[data-theme="dark"] .bc-stat-card,
[data-theme="dark"] .bc-table-wrap,
[data-theme="dark"] .bc-quick-action,
[data-theme="dark"] .bc-modal-content {
  background: var(--bc-color-surface);
  border-color: var(--bc-color-border);
}

[data-theme="dark"] .bc-card-header,
[data-theme="dark"] .bc-card-footer,
[data-theme="dark"] .bc-table thead th,
[data-theme="dark"] .bc-table tbody td,
[data-theme="dark"] .bc-modal-header,
[data-theme="dark"] .bc-modal-footer {
  border-color: var(--bc-color-border);
}

[data-theme="dark"] .bc-table thead th {
  background: var(--bc-color-surface-soft);
}

[data-theme="dark"] .bc-card-title,
[data-theme="dark"] .bc-stat-card-value,
[data-theme="dark"] .bc-table tbody td,
[data-theme="dark"] .bc-empty-state-title {
  color: var(--bc-color-text);
}

/* ============================================================
   BENOMCORE V3 — Sidebar Yeniden Tasarım (Flat Dark / Vercel·Stripe)
   Bu blok .bc-sidebar üzerinden önceki gradient/cam-efekti tasarımı
   ezerek (override) düz, az kontrastlı, ince çizgili bir yüzeye çevirir.
   Önceki CSS silinmedi; cascade sırası nedeniyle bu blok kazanır.
   Veri/permission/JS mantığına dokunulmadı.
   ============================================================ */

.bc-sidebar {
  background: #13151a;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02), 0 10px 24px rgba(0, 0, 0, 0.22);
  color: #aab0bc;
}

.bc-sidebar::before {
  display: none;
}

/* ── Logo alanı ───────────────────────────────────────── */
.bc-sidebar .sidebar-logo {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bc-sidebar .logo-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.bc-sidebar .sidebar-logo-text h2 {
  color: #f1f2f4;
}

.bc-sidebar .sidebar-logo-text small {
  color: #6b7280;
}

/* ── Grup başlıkları ──────────────────────────────────── */
.bc-sidebar .nav-submenu-divider {
  color: #5b6170;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 1;
}

/* ── Menü öğeleri: düz, hareketsiz, az kontrastlı ────── */
.bc-sidebar .nav-parent {
  color: #9aa1ad;
  font-weight: 500;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  transition: background 0.12s ease, color 0.12s ease;
}

.bc-sidebar .nav-parent:hover {
  color: #f1f2f4;
  background: rgba(255, 255, 255, 0.05);
  border-color: transparent;
  transform: none;
  box-shadow: none;
}

.bc-sidebar .nav-parent.active,
.bc-sidebar .nav-parent.has-active,
.bc-sidebar .nav-parent.open {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border-color: transparent;
  box-shadow: none;
}

/* Sol accent çizgisi: düz mavi, glow yok */
.bc-sidebar .nav-parent.active::before,
.bc-sidebar .nav-parent.has-active::before {
  background: #3b82f6;
  box-shadow: none;
}

.bc-sidebar .nav-parent.nav-disabled {
  opacity: 0.45;
}

/* ── Alt menü (popout/submenu) ────────────────────────── */
.bc-sidebar .nav-submenu a {
  color: #8b92a0;
}

.bc-sidebar .nav-submenu a:hover {
  color: #f1f2f4;
  background: rgba(255, 255, 255, 0.05);
}

.bc-sidebar .nav-submenu a.active {
  color: #fff;
  background: rgba(59, 130, 246, 0.16);
}

/* ── Scrollbar ─────────────────────────────────────────── */
.bc-sidebar .sidebar-scroll-track {
  background: rgba(255, 255, 255, 0.04);
}

.bc-sidebar .sidebar-scroll-thumb {
  background: rgba(255, 255, 255, 0.18);
}

/* ── Alt sabit alan: Destek Merkezi ──────────────────── */
.bc-sidebar .bc-sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.bc-sidebar .bc-sidebar-support {
  color: #8b92a0;
  border-color: transparent;
  background: transparent;
}

.bc-sidebar .bc-sidebar-support:hover {
  color: #f1f2f4;
  background: rgba(255, 255, 255, 0.05);
}

/* ============================================================
   BENOMCORE V3 — Sidebar Dock (yüzen panel değil, sola yapışık)
   ============================================================ */
.bc-sidebar {
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 0;
  border-left: 0;
  border-top: 0;
  border-bottom: 0;
}

.main-content {
  margin-left: var(--app-sidebar-width);
}

html.sidebar-collapsed-pre .main-content,
body.sidebar-collapsed .main-content {
  margin-left: var(--app-sidebar-collapsed-width);
}

@media (max-width: 768px) {
  .main-content {
    margin-left: 0;
  }
}

/* ============================================================
   BENOMCORE V3 — Benom Teams Widget Kabuğu (Adım 1)
   Sadece UI; gerçek mesajlaşma/backend yok. Benom Asistan'dan
   tamamen bağımsız (bc-teams-* prefix, ayrı JS/localStorage).
   ============================================================ */

/* Teams paneli açıkken Asistan FAB/panel sola kayar (çakışmasın diye).
   Sadece koordinasyon kuralı — bc-assistant-* dosyalarına dokunulmadı. */
body.bc-teams-panel-open .bc-assistant {
  transform: translateX(calc(-1 * var(--bc-teams-assistant-shift, 440px)));
  transition: transform .25s ease;
}
.bc-teams-launcher {
  position: fixed;
  right: var(--bc-space-5, 24px);
  bottom: 124px;
  z-index: 1150;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(140deg, #6366f1 0%, #7c3aed 48%, #2563eb 100%);
  color: #fff;
  box-shadow:
    0 8px 22px rgba(99, 102, 241, 0.42),
    0 2px 8px rgba(16, 24, 40, 0.20),
    0 0 0 1px rgba(150, 140, 255, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  cursor: pointer;
  overflow: visible;
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease;
  animation: bcTeamsFloat 4.6s ease-in-out infinite;
}

/* nabiz gibi atan dis hale */
.bc-teams-launcher::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(124, 108, 255, 0.55);
  opacity: 0;
  animation: bcTeamsPulse 2.9s ease-out infinite;
  pointer-events: none;
}

/* canli "online" noktasi */
.bc-teams-launcher::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #fff;
  animation: bcTeamsPresence 2s ease-out infinite;
  pointer-events: none;
}

.bc-teams-launcher svg {
  position: relative;
  z-index: 1;
  transition: transform .25s ease;
}

.bc-teams-launcher:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow:
    0 14px 30px rgba(99, 102, 241, 0.5),
    0 4px 10px rgba(16, 24, 40, 0.18),
    0 0 0 1px rgba(150, 140, 255, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  animation-play-state: paused;
}
.bc-teams-launcher:hover svg { transform: rotate(-8deg) scale(1.08); }

@keyframes bcTeamsFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
@keyframes bcTeamsPulse {
  0%   { transform: scale(.82); opacity: .7; }
  70%  { opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
@keyframes bcTeamsPresence {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70%  { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.bc-teams-open .bc-teams-launcher {
  opacity: 0;
  pointer-events: none;
}

.bc-teams-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--bc-color-danger, #ef4444);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  line-height: 1;
  border: 2px solid var(--bc-color-surface, #fff);
}

.bc-teams-badge-inline {
  position: static;
  top: auto;
  right: auto;
  margin-left: auto;
  border: 0;
}

/* ── Panel ─────────────────────────────────────────────── */
.bc-teams-panel {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: var(--bc-teams-w, 420px);
  max-width: 100vw;
  overflow: hidden;
  z-index: 1190;
  display: flex;
  flex-direction: column;
  background: var(--bc-color-surface, #fff);
  border-left: 1px solid var(--bc-color-border, #e5e7eb);
  box-shadow:
    -24px 0 48px rgba(16, 24, 40, 0.16),
    -4px 0 12px rgba(16, 24, 40, 0.06),
    inset 1px 0 0 rgba(255, 255, 255, 0.4);
  transform: translateX(100%);
  transition: transform .25s ease, width .2s ease;
}

.bc-teams-open .bc-teams-panel {
  transform: translateX(0);
}

.bc-teams-expanded {
  --bc-teams-w: 700px;
}

.bc-teams-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: var(--bc-space-3, 12px) var(--bc-space-4, 16px);
  border-bottom: 1px solid var(--bc-color-border, #e5e7eb);
  flex-shrink: 0;
}

.bc-teams-header-title {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-weight: var(--bc-font-weight-semibold, 600);
  font-size: var(--bc-font-size-sm, .875rem);
  color: var(--bc-color-text, #1a1d23);
  line-height: 1.3;
  min-width: 0;
}

.bc-teams-header-name {
  display: block;
}

/* ── Durum seçici (header dropdown) ───────────────────── */
.bc-teams-status-wrap {
  position: relative;
}

.bc-teams-status-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  padding: 2px 4px;
  margin: -2px -4px;
  border-radius: var(--bc-radius-sm, 6px);
  font-weight: var(--bc-font-weight-medium, 500);
  font-size: .68rem;
  color: var(--bc-color-muted, #6b7280);
  cursor: pointer;
  transition: background .15s ease;
}

.bc-teams-status-trigger:hover {
  background: var(--bc-color-surface-soft, #f1f3f6);
}

.bc-teams-status-trigger svg {
  opacity: .6;
}

.bc-teams-status-dot-sm {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px transparent;
}

.bc-teams-status-dot-online  { background: var(--bc-color-success, #16a34a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bc-color-success, #16a34a) 20%, transparent); }
.bc-teams-status-dot-busy    { background: var(--bc-color-danger, #ef4444); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bc-color-danger, #ef4444) 20%, transparent); }
.bc-teams-status-dot-working { background: var(--bc-color-primary, #2563eb); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bc-color-primary, #2563eb) 20%, transparent); }
.bc-teams-status-dot-offline { background: var(--bc-color-muted, #6b7280); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bc-color-muted, #6b7280) 20%, transparent); }

.bc-teams-status-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 5;
  min-width: 150px;
  padding: 6px;
  background: var(--bc-color-surface, #fff);
  border: 1px solid var(--bc-color-border, #e5e7eb);
  border-radius: var(--bc-radius-md, 10px);
  box-shadow: 0 16px 32px rgba(16, 24, 40, 0.18);
}

.bc-teams-status-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 7px 8px;
  border-radius: var(--bc-radius-sm, 6px);
  font-size: var(--bc-font-size-sm, .875rem);
  color: var(--bc-color-text, #1a1d23);
  text-align: left;
  cursor: pointer;
}

.bc-teams-status-option:hover {
  background: var(--bc-color-surface-soft, #f1f3f6);
}

.bc-teams-header-controls {
  display: flex;
  gap: 4px;
}

.bc-teams-icon-btn {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  border-radius: var(--bc-radius-sm, 6px);
  color: var(--bc-color-muted, #6b7280);
  transition: background .15s ease, color .15s ease;
}

.bc-teams-icon-btn:hover {
  background: var(--bc-color-surface-soft, #f1f3f6);
  color: var(--bc-color-text, #1a1d23);
}

/* ── Arama ─────────────────────────────────────────────── */
.bc-teams-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: var(--bc-space-3, 12px) var(--bc-space-4, 16px) 0;
  padding: 0 10px;
  height: 36px;
  border: 1px solid var(--bc-color-border, #e5e7eb);
  border-radius: var(--bc-radius-md, 10px);
  background: var(--bc-color-surface-soft, #f1f3f6);
  color: var(--bc-color-muted, #6b7280);
  flex-shrink: 0;
}

.bc-teams-search-input {
  flex: 1 1 auto;
  border: 0;
  background: transparent;
  font-size: var(--bc-font-size-sm, .875rem);
  color: var(--bc-color-text, #1a1d23);
  outline: none;
}

/* ── Nav ───────────────────────────────────────────────── */
.bc-teams-nav {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 2px;
  padding: var(--bc-space-3, 12px) var(--bc-space-3, 12px) var(--bc-space-2, 8px);
  flex-shrink: 0;
  scrollbar-width: none;
}

.bc-teams-nav::-webkit-scrollbar {
  display: none;
}

.bc-teams-nav-item {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  padding: 7px 11px;
  font-size: .78rem;
  font-weight: var(--bc-font-weight-medium, 500);
  color: var(--bc-color-muted, #6b7280);
  border-radius: var(--bc-radius-sm, 6px);
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}

.bc-teams-nav-icon {
  display: inline-flex;
  flex-shrink: 0;
}

.bc-teams-nav-item:hover {
  background: var(--bc-color-surface-soft, #f1f3f6);
  color: var(--bc-color-text, #1a1d23);
}

.bc-teams-nav-item.active {
  background: var(--bc-color-primary, #2563eb);
  color: #fff;
  box-shadow: 0 4px 10px color-mix(in srgb, var(--bc-color-primary, #2563eb) 35%, transparent);
}

/* ── Body / liste ──────────────────────────────────────── */
.bc-teams-body {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
}

.bc-teams-list-area {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 0 var(--bc-space-3, 12px) var(--bc-space-3, 12px);
}

.bc-teams-list-panel {
  display: none;
}

.bc-teams-list-panel.active {
  display: block;
}

.bc-teams-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bc-teams-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 9px 8px;
  border-radius: var(--bc-radius-md, 10px);
  text-align: left;
  cursor: pointer;
  transition: background .15s ease;
}

.bc-teams-list-item:hover {
  background: var(--bc-color-surface-soft, #f1f3f6);
}

.bc-teams-list-item-static {
  cursor: default;
}

.bc-teams-list-item-static:hover {
  background: transparent;
}

.bc-teams-avatar {
  position: relative;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .82rem;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.bc-teams-avatar-group { background: linear-gradient(135deg, #10b981, #047857); }
.bc-teams-avatar-project { background: linear-gradient(135deg, #f59e0b, #b45309); }
.bc-teams-avatar-meeting { background: linear-gradient(135deg, #8b5cf6, #5b21b6); }
.bc-teams-avatar-notif { background: linear-gradient(135deg, #ef4444, #b91c1c); }

.bc-teams-avatar-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bc-color-success, #16a34a);
  border: 2px solid var(--bc-color-surface, #fff);
}

.bc-teams-list-item-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bc-teams-list-item-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.bc-teams-list-item-name {
  font-size: var(--bc-font-size-sm, .875rem);
  font-weight: var(--bc-font-weight-medium, 500);
  color: var(--bc-color-text, #1a1d23);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bc-teams-list-item-time {
  flex-shrink: 0;
  font-size: .68rem;
  color: var(--bc-color-muted, #6b7280);
}

.bc-teams-list-item-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bc-teams-list-item-last {
  flex: 1 1 auto;
  min-width: 0;
  font-size: var(--bc-font-size-xs, .75rem);
  color: var(--bc-color-muted, #6b7280);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bc-teams-list-item-last.is-typing {
  color: var(--bc-color-primary, #2563eb);
  font-style: italic;
}

/* ── Ayarlar ───────────────────────────────────────────── */
.bc-teams-settings {
  display: flex;
  flex-direction: column;
  gap: var(--bc-space-2, 8px);
  padding-top: 4px;
}

.bc-teams-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--bc-font-size-sm, .875rem);
  color: var(--bc-color-text, #1a1d23);
  padding: 6px 4px;
}

.bc-teams-status-pill {
  font-size: var(--bc-font-size-xs, .75rem);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: var(--bc-font-weight-medium, 500);
}

.bc-teams-status-on {
  background: color-mix(in srgb, var(--bc-color-success, #16a34a) 15%, transparent);
  color: var(--bc-color-success, #16a34a);
}

.bc-teams-status-off {
  background: color-mix(in srgb, var(--bc-color-muted, #6b7280) 15%, transparent);
  color: var(--bc-color-muted, #6b7280);
}

/* ── Sohbet ekranı (liste üzerine kayar) ───────────────── */
.bc-teams-chat {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  background: var(--bc-color-surface, #fff);
  transform: translateX(100%);
  transition: transform .22s ease;
}

.bc-teams-chat-active .bc-teams-chat {
  transform: translateX(0);
}

/* ── Ayarlar ekranı (her şeyin üzerine kayar) ──────────── */
.bc-teams-settings-view {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  background: var(--bc-color-surface, #fff);
  transform: translateX(100%);
  transition: transform .22s ease;
}

.bc-teams-settings-active .bc-teams-settings-view {
  transform: translateX(0);
}

.bc-teams-settings-view .bc-teams-settings {
  padding: var(--bc-space-4, 16px);
  overflow-y: auto;
}

.bc-teams-chat-empty {
  display: none;
}

.bc-teams-chat[data-teams-chat-empty="1"] .bc-teams-chat-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  text-align: center;
  color: var(--bc-color-muted, #6b7280);
  padding: var(--bc-space-6, 32px);
}

.bc-teams-chat[data-teams-chat-empty="1"] .bc-teams-chat-empty p {
  font-size: var(--bc-font-size-sm, .875rem);
  margin: 0;
}

.bc-teams-chat-conversation {
  display: none;
  flex-direction: column;
  height: 100%;
}

.bc-teams-chat[data-teams-chat-empty="0"] .bc-teams-chat-conversation {
  display: flex;
}

.bc-teams-chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: var(--bc-space-3, 12px) var(--bc-space-4, 16px);
  border-bottom: 1px solid var(--bc-color-border, #e5e7eb);
  flex-shrink: 0;
}

.bc-teams-chat-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--bc-radius-sm, 6px);
  color: var(--bc-color-muted, #6b7280);
  cursor: pointer;
}

.bc-teams-chat-back:hover {
  background: var(--bc-color-surface-soft, #f1f3f6);
  color: var(--bc-color-text, #1a1d23);
}

.bc-teams-chat-title {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: var(--bc-font-weight-semibold, 600);
  font-size: var(--bc-font-size-sm, .875rem);
  color: var(--bc-color-text, #1a1d23);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bc-teams-chat-status {
  flex-shrink: 0;
  font-size: var(--bc-font-size-xs, .72rem);
  color: var(--bc-color-success, #16a34a);
}

.bc-teams-chat-log {
  flex: 1 1 auto;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--bc-space-4, 16px);
}

.bc-teams-message {
  max-width: 78%;
  padding: 8px 12px;
  border-radius: var(--bc-radius-md, 10px);
  font-size: var(--bc-font-size-sm, .875rem);
  line-height: 1.4;
}

.bc-teams-message-in {
  align-self: flex-start;
  background: var(--bc-color-surface-soft, #f1f3f6);
  color: var(--bc-color-text, #1a1d23);
  border-bottom-left-radius: 3px;
}

.bc-teams-message-out {
  align-self: flex-end;
  background: var(--bc-color-primary, #2563eb);
  color: #fff;
  border-bottom-right-radius: 3px;
}

.bc-teams-chat-composer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--bc-space-3, 12px) var(--bc-space-4, 16px);
  border-top: 1px solid var(--bc-color-border, #e5e7eb);
  flex-shrink: 0;
}

.bc-teams-composer-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--bc-color-border, #e5e7eb);
  border-radius: var(--bc-radius-md, 10px);
  padding: 8px 10px;
  font-size: var(--bc-font-size-sm, .875rem);
  background: var(--bc-color-surface-soft, #f1f3f6);
  color: var(--bc-color-text, #1a1d23);
}

.bc-teams-composer-send {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 0;
  border-radius: var(--bc-radius-md, 10px);
  background: var(--bc-color-primary, #2563eb);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ── Küçültme ──────────────────────────────────────────── */
.bc-teams-minimized .bc-teams-panel {
  height: 56px;
}

.bc-teams-minimized .bc-teams-search,
.bc-teams-minimized .bc-teams-nav,
.bc-teams-minimized .bc-teams-body {
  display: none;
}

/* ── Mobil ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .bc-teams-panel {
    width: 100vw !important;
    --bc-teams-w: 100vw;
  }
}

@media (max-width: 576px) {
  .bc-teams-launcher {
    right: var(--bc-space-4, 16px);
    bottom: 120px;
    width: 46px;
    height: 46px;
  }
}

[data-theme="dark"] .bc-teams-panel {
  background: var(--bc-color-surface);
  border-color: var(--bc-color-border);
}

[data-theme="dark"] .bc-teams-search,
[data-theme="dark"] .bc-teams-composer-input,
[data-theme="dark"] .bc-teams-message-in,
[data-theme="dark"] .bc-teams-list-item:hover {
  background: var(--bc-color-surface-soft);
}

/* ── Adım 2: backend veri durumları (loading / empty / error) ───────── */

.bc-teams-state {
  padding: var(--bc-space-6, 32px) var(--bc-space-4, 16px);
  text-align: center;
  color: var(--bc-color-muted, #6b7280);
  font-size: var(--bc-font-size-sm, .875rem);
}

.bc-teams-state-error {
  color: #dc2626;
}

.bc-teams-inline-error {
  margin: 4px 12px 0;
  font-size: .75rem;
  color: #dc2626;
}

.bc-teams-chat-readonly .bc-teams-composer-input,
.bc-teams-chat-readonly .bc-teams-composer-send {
  opacity: .5;
  pointer-events: none;
}

.bc-teams-chat-sending .bc-teams-composer-input,
.bc-teams-chat-sending .bc-teams-composer-send {
  opacity: .6;
}

/* ── Adım 5: grup oluşturma mini formu ───────────────────────────── */

.bc-teams-group-create-row {
  padding: 8px 12px;
  border-bottom: 1px solid var(--bc-color-border, #e5e7eb);
}

.bc-teams-group-create-btn {
  width: 100%;
  padding: 8px 10px;
  border: 1px dashed var(--bc-color-border, #d1d5db);
  border-radius: var(--bc-radius, 8px);
  background: transparent;
  color: var(--bc-color-primary, #2563eb);
  font-size: var(--bc-font-size-sm, .875rem);
  cursor: pointer;
}

.bc-teams-group-create-btn:hover {
  background: var(--bc-color-surface-soft, #f3f4f6);
}

.bc-teams-group-create-form {
  padding: 10px 12px;
  border-bottom: 1px solid var(--bc-color-border, #e5e7eb);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bc-teams-group-name-input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--bc-color-border, #d1d5db);
  border-radius: var(--bc-radius, 8px);
  font-size: var(--bc-font-size-sm, .875rem);
  box-sizing: border-box;
}

.bc-teams-group-members {
  max-height: 140px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bc-teams-group-member-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--bc-font-size-sm, .875rem);
  cursor: pointer;
}

.bc-teams-group-form-actions {
  display: flex;
  gap: 8px;
}

.bc-teams-group-create-confirm,
.bc-teams-group-create-cancel {
  flex: 1;
  padding: 7px 10px;
  border-radius: var(--bc-radius, 8px);
  font-size: var(--bc-font-size-sm, .875rem);
  cursor: pointer;
  border: 1px solid transparent;
}

.bc-teams-group-create-confirm {
  background: var(--bc-color-primary, #2563eb);
  color: #fff;
}

.bc-teams-group-create-confirm:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.bc-teams-group-create-cancel {
  background: transparent;
  border-color: var(--bc-color-border, #d1d5db);
  color: var(--bc-color-muted, #6b7280);
}

/* ── Adım 6: grup yönetimi / bilgi paneli ────────────────────────── */

.bc-teams-chat-info-btn {
  margin-left: auto;
}

.bc-teams-group-info-view {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  background: var(--bc-color-surface, #fff);
  transform: translateX(100%);
  transition: transform .22s ease;
}

.bc-teams-group-info-active .bc-teams-group-info-view {
  transform: translateX(0);
}

.bc-teams-group-info-body {
  padding: var(--bc-space-4, 16px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bc-teams-group-info-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bc-teams-group-info-label {
  font-size: .75rem;
  color: var(--bc-color-muted, #6b7280);
}

.bc-teams-group-info-value {
  font-size: var(--bc-font-size-sm, .875rem);
  font-weight: 500;
}

.bc-teams-group-info-rename-row {
  display: flex;
  gap: 6px;
}

.bc-teams-group-info-rename-row input {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid var(--bc-color-border, #d1d5db);
  border-radius: var(--bc-radius, 8px);
  font-size: var(--bc-font-size-sm, .875rem);
  box-sizing: border-box;
}

.bc-teams-group-info-members {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bc-teams-group-member-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--bc-color-border, #f1f2f4);
}

.bc-teams-group-member-row:last-child {
  border-bottom: none;
}

.bc-teams-group-member-name {
  flex: 1;
  font-size: var(--bc-font-size-sm, .875rem);
}

.bc-teams-group-role-badge {
  font-size: .7rem;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 600;
}

.bc-teams-group-role-owner {
  background: rgba(37, 99, 235, .12);
  color: var(--bc-color-primary, #2563eb);
}

.bc-teams-group-role-member {
  background: var(--bc-color-surface-soft, #f3f4f6);
  color: var(--bc-color-muted, #6b7280);
}

.bc-teams-group-member-remove {
  border: none;
  background: transparent;
  color: #dc2626;
  font-size: .75rem;
  cursor: pointer;
  padding: 2px 6px;
}

.bc-teams-group-info-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--bc-color-border, #e5e7eb);
  padding-top: 10px;
}

.bc-teams-group-action-btn {
  padding: 8px 10px;
  border-radius: var(--bc-radius, 8px);
  font-size: var(--bc-font-size-sm, .875rem);
  cursor: pointer;
  border: 1px solid var(--bc-color-border, #d1d5db);
  background: transparent;
}

.bc-teams-group-action-btn.bc-teams-group-action-danger {
  border-color: #dc2626;
  color: #dc2626;
}


/* ─── Reminder Slide (FAB-anchored, slides left) ──────────────────────────── */
.bca-reminder-slide {
  position: absolute;
  right: calc(100% + 10px);
  bottom: 0;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
  z-index: 5;
  min-width: 0;
}

/* FAB glow-purple when reminder active */
.bc-assistant-fab.bca-fab-has-reminder {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 60%, #4c1d95 100%);
  box-shadow:
    0 6px 18px rgba(124, 58, 237, 0.5),
    0 2px 6px rgba(16, 24, 40, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  animation: bcaReminderFabPulse 1.8s ease-in-out infinite !important;
}
.bc-assistant-fab.bca-fab-has-reminder .bc-assistant-fab-ring {
  border-color: rgba(167, 139, 250, 0.75);
  animation: bcAssistantFabPulse 1.4s ease-out infinite !important;
}
@keyframes bcaReminderFabPulse {
  0%, 100% {
    box-shadow: 0 6px 18px rgba(124,58,237,.5), 0 0 0 0 rgba(139,92,246,.55),
                inset 0 1px 0 rgba(255,255,255,.22);
  }
  50% {
    box-shadow: 0 8px 24px rgba(124,58,237,.7), 0 0 0 9px rgba(139,92,246,0),
                inset 0 1px 0 rgba(255,255,255,.22);
  }
}

/* Each chip */
.bca-reminder-chip {
  position: relative;
  pointer-events: all;
  width: 292px;
  background: rgba(13, 9, 36, 0.9);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid rgba(139, 92, 246, 0.38);
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(139,92,246,.12),
    0 0 28px rgba(109,40,217,.22),
    0 12px 40px rgba(0,0,0,.55);
  overflow: visible;
  /* slide-in from right */
  opacity: 0;
  transform: translateX(18px) scale(.97);
  transition:
    opacity .32s cubic-bezier(.4,0,.2,1),
    transform .35s cubic-bezier(.34,1.56,.64,1);
}
.bca-reminder-chip.bca-chip-in {
  opacity: 1;
  transform: translateX(0) scale(1);
}
.bca-reminder-chip.bca-chip-out {
  opacity: 0;
  transform: translateX(22px) scale(.95);
  transition: opacity .28s ease, transform .28s ease;
}

/* Ambient glow layer */
.bca-chip-glow {
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  background: radial-gradient(ellipse at 80% 50%, rgba(var(--chip-color-rgb,109,40,217),.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: bcaChipGlow 2.8s ease-in-out infinite;
}
@keyframes bcaChipGlow {
  0%,100% { opacity: .7; }
  50%      { opacity: 1.2; }
}

/* Arrow tail pointing right toward FAB */
.bca-chip-tail {
  position: absolute;
  right: -7px;
  bottom: 17px;
  width: 13px;
  height: 13px;
  background: rgba(13,9,36,.9);
  border-right: 1px solid rgba(139,92,246,.38);
  border-top: 1px solid rgba(139,92,246,.38);
  transform: rotate(45deg);
  border-radius: 0 3px 0 0;
  pointer-events: none;
  z-index: 1;
}

/* Inner layout */
.bca-chip-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px 9px 12px;
  position: relative;
  z-index: 2;
  cursor: pointer;
}
.bca-chip-inner:hover .bca-chip-title { color: #fff; }
.bca-chip-inner:hover { background: rgba(255,255,255,.03); border-radius: 14px 14px 0 0; }
.bca-chip-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  padding-top: 2px;
}
.bca-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
  flex-shrink: 0;
}
.bca-chip-icon {
  font-size: 1rem;
  line-height: 1;
}
.bca-chip-body {
  flex: 1;
  min-width: 0;
}
.bca-chip-title {
  font-size: .82rem;
  font-weight: 700;
  color: #ede9fe;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: .01em;
}
.bca-chip-time {
  font-size: .68rem;
  color: #a78bfa;
  margin-top: 2px;
  font-weight: 500;
}
.bca-chip-desc {
  font-size: .7rem;
  color: #94a3b8;
  margin-top: 3px;
  line-height: 1.45;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.bca-chip-dismiss {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.5);
  font-size: .65rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background .15s, color .15s;
  z-index: 3;
}
.bca-chip-dismiss:hover {
  background: rgba(255,255,255,.18);
  color: #fff;
}

/* Action buttons row */
.bca-chip-actions {
  display: flex;
  gap: 7px;
  padding: 0 12px 12px 12px;
  position: relative;
  z-index: 2;
}
.bca-chip-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 9px;
  border: none;
  font-size: .72rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s, transform .1s, background .15s;
  letter-spacing: .01em;
}
.bca-chip-btn:active { transform: scale(.96); }
.bca-chip-btn:disabled { opacity: .4; cursor: not-allowed; }
.bca-btn-ertele {
  background: rgba(139,92,246,.16);
  color: #c4b5fd;
  border: 1px solid rgba(139,92,246,.28);
}
.bca-btn-ertele:hover:not(:disabled) { background: rgba(139,92,246,.28); }
.bca-btn-tamamla {
  background: rgba(16,185,129,.14);
  color: #6ee7b7;
  border: 1px solid rgba(16,185,129,.22);
}
.bca-btn-tamamla:hover:not(:disabled) { background: rgba(16,185,129,.26); }

/* Snooze dropdown */
.bca-snooze-wrap { position: relative; flex: 1; }
.bca-snooze-dd {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(13,9,36,.97);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(139,92,246,.35);
  border-radius: 11px;
  overflow: hidden;
  z-index: 20;
  box-shadow: 0 -6px 20px rgba(0,0,0,.5), 0 0 16px rgba(109,40,217,.2);
  animation: bcaSnoozeDdIn .15s ease;
}
.bca-snooze-dd.open { display: block; }
@keyframes bcaSnoozeDdIn {
  from { opacity:0; transform:translateY(6px) scale(.97); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}
.bca-snooze-dd button {
  display: block;
  width: 100%;
  padding: 9px 13px;
  background: none;
  border: none;
  color: #c4b5fd;
  font-size: .73rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background .12s;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.bca-snooze-dd button:last-child { border-bottom: none; }
.bca-snooze-dd button:hover { background: rgba(139,92,246,.2); color: #ede9fe; }
/* ─── End Reminder Slide ─────────────────────────────────────────────────── */

/* ─── Asistan Bildirimler Sekmesi (bcn-*) ─────────────────────────────────── */
.bcn-wrap { display: flex; flex-direction: column; height: 100%; }

.bcn-subtabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 8px 10px 0;
  flex-shrink: 0;
}
.bcn-subtab {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  font-size: .72rem;
  font-weight: 600;
  color: #94a3b8;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.bcn-subtab:hover { color: #c4b5fd; }
.bcn-subtab.active {
  color: #a78bfa;
  border-bottom-color: #7c3aed;
}
.bcn-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: #7c3aed;
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  line-height: 1;
}
.bcn-badge-dim { background: rgba(139,92,246,.3); color: #a78bfa; }

.bcn-panel {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 6px 0;
}
.bcn-panel::-webkit-scrollbar { width: 3px; }
.bcn-panel::-webkit-scrollbar-thumb { background: rgba(139,92,246,.3); border-radius: 3px; }
.bcn-panel.active { display: block; }

.bcn-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 36px 20px;
  color: #475569;
  font-size: .78rem;
  text-align: center;
}
.bcn-empty svg { opacity: .4; }

.bcn-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  text-decoration: none;
  transition: background .15s;
  position: relative;
}
.bcn-item:hover { background: rgba(139,92,246,.07); }
.bcn-item:last-child { border-bottom: none; }
.bcn-item-active { background: rgba(124,58,237,.06); }
.bcn-item-active:hover { background: rgba(124,58,237,.13); }
.bcn-item-done { opacity: .7; }

.bcn-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.bcn-icon {
  font-size: .9rem;
  flex-shrink: 0;
  margin-top: 1px;
  line-height: 1.3;
}
.bcn-body { flex: 1; min-width: 0; }
.bcn-title {
  font-size: .8rem;
  font-weight: 600;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
}
.bcn-item-done .bcn-title { text-decoration: line-through; color: #64748b; }
.bcn-time {
  font-size: .68rem;
  color: #64748b;
  margin-top: 2px;
}
.bcn-desc {
  font-size: .69rem;
  color: #475569;
  margin-top: 3px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.bcn-tag-snooze {
  font-size: .67rem;
  color: #f59e0b;
  margin-top: 3px;
  font-weight: 500;
}
.bcn-check {
  flex-shrink: 0;
  color: #22c55e;
  margin-top: 4px;
  opacity: .7;
}
/* Canlı nabız noktası — aktif bildirimler için */
.bcn-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7c3aed;
  flex-shrink: 0;
  margin-top: 5px;
  animation: bcnLivePulse 1.6s ease-out infinite;
}
@keyframes bcnLivePulse {
  0%   { box-shadow: 0 0 0 0 rgba(124,58,237,.6); }
  70%  { box-shadow: 0 0 0 6px rgba(124,58,237,0); }
  100% { box-shadow: 0 0 0 0 rgba(124,58,237,0); }
}
/* ─── End Asistan Bildirimler ─────────────────────────────────────────────── */

/* ─── AI Özet Sekmesi (bcai-*) ────────────────────────────────────────────── */
.bcai-wrap { display:flex; flex-direction:column; min-height:0; height:100%;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  padding: 0 0 8px;
  position: relative;
  background:
    radial-gradient(120% 55% at 50% -10%, rgba(46,108,230,0.06), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}
.bcai-wrap::-webkit-scrollbar { width: 3px; }
.bcai-wrap::-webkit-scrollbar-thumb { background: rgba(100,116,139,.25); border-radius: 3px; }

.bcai-header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 14px 13px;
  border-bottom: 1px solid rgba(15,23,42,.08);
  flex-shrink: 0;
  position: relative;
  background: linear-gradient(180deg, rgba(46,108,230,.05), transparent);
}
.bcai-header-text { flex: 1; min-width: 0; }
.bcai-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  overflow: visible;
  background: radial-gradient(circle at 50% 38%, #1b2c52 0%, #0c1530 54%, #060b1c 100%);
  box-shadow:
    0 0 16px rgba(45, 115, 245, 0.5),
    0 0 0 1px rgba(95, 155, 255, 0.22),
    inset 0 0 14px rgba(45, 105, 225, 0.4),
    inset 0 1px 0 rgba(160, 200, 255, 0.2);
  animation: bcaOrbFloat 4.2s ease-in-out infinite;
}
/* avatar sizes a touch smaller than the FAB orb */
.bcai-avatar .bca-orb-ring-1 { inset: 3px; }
.bcai-avatar .bca-orb-ring-2 { inset: 6px; }
.bcai-avatar .bca-eye { width: 4px; height: 9px; }
.bcai-avatar .bca-orb-orbit-1 { inset: 1px; }
@keyframes bcaiFabFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-2px); }
}

/* Benom AI title + badge */
.bcai-title-ai {
  background: linear-gradient(90deg, #5cc3ff, #7c9bff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}
.bcai-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(92, 160, 255, 0.16);
  border: 1px solid rgba(120, 180, 255, 0.25);
  color: #9ecbff;
  font-size: .56rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  vertical-align: middle;
}
.bcai-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
  font-size: .62rem;
  font-weight: 600;
}
.bcai-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: bcaiStatusPulse 2s ease-out infinite;
}
@keyframes bcaiStatusPulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70%  { box-shadow: 0 0 0 5px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.bcai-title {
  font-size: .78rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: .02em;
}
.bcai-date {
  font-size: .67rem;
  color: #64748b;
  margin-top: 1px;
}

.bcai-cards {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 10px 6px;
}

.bcai-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  text-decoration: none;
  transition: background .15s, transform .12s;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}
a.bcai-card:hover {
  transform: translateX(-2px);
}
.bcai-card-ok {
  background: rgba(16,185,129,.10);
  border-color: rgba(16,185,129,.15);
}
.bcai-card-warn {
  background: rgba(245,158,11,.10);
  border-color: rgba(245,158,11,.18);
}
a.bcai-card-warn:hover { background: rgba(245,158,11,.14); }
.bcai-card-info {
  background: rgba(59,130,246,.10);
  border-color: rgba(59,130,246,.15);
}
a.bcai-card-info:hover { background: rgba(59,130,246,.14); }
.bcai-card-notif {
  background: rgba(124,58,237,.10);
  border-color: rgba(124,58,237,.15);
}

.bcai-card-icon {
  font-size: 1.1rem;
  line-height: 1.3;
  flex-shrink: 0;
  margin-top: 1px;
}
.bcai-card-body { flex: 1; min-width: 0; }
.bcai-card-title {
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #64748b;
  margin-bottom: 2px;
}
.bcai-card-val {
  font-size: .8rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
}
.bcai-card-warn .bcai-card-val { color: #b45309; }
.bcai-card-info .bcai-card-val { color: #1d4ed8; }
.bcai-card-ok   .bcai-card-val { color: #047857; }
.bcai-card-notif .bcai-card-val { color: #6d28d9; }
.bcai-card-sub {
  font-size: .67rem;
  color: #475569;
  margin-top: 2px;
}
.bcai-card-arrow {
  color: #475569;
  flex-shrink: 0;
  margin-top: 3px;
  transition: transform .15s, color .15s;
}
a.bcai-card:hover .bcai-card-arrow {
  transform: translateX(3px);
  color: #94a3b8;
}

.bcai-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px 4px;
  font-size: .67rem;
  color: #64748b;
  border-top: 1px solid rgba(15,23,42,.07);
  margin-top: auto;
}

/* ─── Sipariş kaynak rozetleri ─── */
.bcai-source-row { display:flex; flex-wrap:wrap; gap:5px; margin-top:7px; }
.bcai-source-pill {
  font-size:.66rem; font-weight:700; line-height:1; text-decoration:none;
  padding:4px 8px; border-radius:999px; color:#fff; white-space:nowrap;
  transition:transform .12s, filter .12s;
}
.bcai-source-pill:hover { transform:translateY(-1px); filter:brightness(1.06); color:#fff; }
.bcai-src-ty  { background:linear-gradient(135deg,#f97316,#fb923c); }
.bcai-src-hb  { background:linear-gradient(135deg,#ea580c,#f59e0b); }
.bcai-src-ptt { background:linear-gradient(135deg,#2563eb,#0ea5e9); }

/* ─── Benom AI sohbet ─── */
/* bcai-chat esnek: panelin tamamini kaplar, ustte bosluk birakmaz */
.bcai-chat {
  flex:1 1 auto; min-height:0; display:flex; flex-direction:column;
  border-top:1px solid rgba(15,23,42,.07); padding:8px 10px 10px;
  background:linear-gradient(180deg, rgba(247,249,252,0) 0%, #f7f9fc 22%);
}
.bcai-chat-log {
  display:flex; flex-direction:column; gap:7px;
  flex:1 1 auto; min-height:120px; max-height:none; overflow-y:auto; padding:4px 2px 8px;
  justify-content:flex-start;
}
.bcai-chat-log::-webkit-scrollbar { width:3px; }
.bcai-chat-log::-webkit-scrollbar-thumb { background:rgba(100,116,139,.25); border-radius:3px; }
.bcai-msg { display:flex; max-width:90%; }
.bcai-msg-user { align-self:flex-end; justify-content:flex-end; }
.bcai-msg-bot  { align-self:flex-start; }
.bcai-msg-bubble {
  font-size:.74rem; line-height:1.45; padding:7px 11px; border-radius:13px;
  word-break:break-word;
}
.bcai-msg-bot .bcai-msg-bubble {
  background:#fff; color:#1e293b; border:1px solid rgba(15,23,42,.08);
  border-bottom-left-radius:4px;
}
.bcai-msg-user .bcai-msg-bubble {
  background:linear-gradient(135deg,#2e6ce6,#4f8bf0); color:#fff;
  border-bottom-right-radius:4px;
}
.bcai-msg-bubble em { font-style:italic; opacity:.85; }
.bcai-typing .bcai-msg-bubble { display:inline-flex; gap:3px; align-items:center; padding:9px 12px; }
.bcai-dot { width:5px; height:5px; border-radius:50%; background:#94a3b8; animation:bcaiBlink 1.2s infinite; }
.bcai-dot:nth-child(2){ animation-delay:.2s; } .bcai-dot:nth-child(3){ animation-delay:.4s; }
@keyframes bcaiBlink { 0%,60%,100%{opacity:.25;} 30%{opacity:1;} }
.bcai-reply-chips { display:flex; flex-wrap:wrap; gap:5px; }
.bcai-reply-chip {
  font-size:.68rem; font-weight:600; text-decoration:none; cursor:pointer;
  padding:4px 9px; border-radius:999px; border:1px solid rgba(46,108,230,.3);
  background:rgba(46,108,230,.07); color:#2e6ce6; transition:background .12s;
}
.bcai-reply-chip:hover { background:rgba(46,108,230,.15); color:#2e6ce6; }
.bcai-chip-row { display:flex; flex-wrap:wrap; gap:5px; margin:2px 2px 8px; }
.bcai-chip {
  font-size:.67rem; font-weight:600; cursor:pointer;
  padding:4px 9px; border-radius:999px; border:1px solid rgba(15,23,42,.12);
  background:#fff; color:#475569; transition:all .12s;
}
.bcai-chip:hover { border-color:rgba(46,108,230,.4); color:#2e6ce6; }
.bcai-chat-form { display:flex; gap:6px; align-items:center; }
.bcai-chat-input {
  flex:1; min-width:0; font-size:.76rem; padding:8px 12px;
  border:1px solid rgba(15,23,42,.14); border-radius:999px; outline:none;
  background:#fff; transition:border-color .12s, box-shadow .12s;
}
.bcai-chat-input:focus { border-color:#2e6ce6; box-shadow:0 0 0 3px rgba(46,108,230,.12); }
.bcai-chat-send {
  flex-shrink:0; width:34px; height:34px; border:none; border-radius:50%;
  display:flex; align-items:center; justify-content:center; cursor:pointer; color:#fff;
  background:linear-gradient(135deg,#2e6ce6,#4f8bf0); transition:transform .12s, filter .12s;
}
.bcai-chat-send:hover { transform:scale(1.06); filter:brightness(1.05); }

/* ─── End AI Özet ─────────────────────────────────────────────────────────── */

/* ─── Global Search Dropdown ──────────────────────────────────────────────── */
@keyframes bcSearchSpin {
  to { transform: rotate(360deg); }
}

.bc-topbar-search {
  position: relative;
}
.bc-search-shortcut {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--bc-color-border, #e5e7eb);
  color: var(--bc-color-muted, #6b7280);
  font-size: .65rem;
  font-family: inherit;
  border: 1px solid var(--bc-color-border, #e5e7eb);
  flex-shrink: 0;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity .15s;
}
.bc-search-active .bc-search-shortcut { display: none; }
.bc-topbar-search-input::placeholder {
  transition: color .15s;
}
.bc-search-active .bc-topbar-search-input::placeholder {
  color: transparent;
}

.bc-search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 420px;
  max-height: 480px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow:
    0 4px 6px rgba(0,0,0,.04),
    0 12px 40px rgba(0,0,0,.12),
    0 0 0 1px rgba(37,99,235,.06);
  z-index: 9999;
  animation: bcSdIn .15s cubic-bezier(.4,0,.2,1);
  scrollbar-width: thin;
  scrollbar-color: #e2e8f0 transparent;
}
.bc-search-dropdown::-webkit-scrollbar { width: 4px; }
.bc-search-dropdown::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 4px; }
.bc-sd-open { display: block; }

@keyframes bcSdIn {
  from { opacity:0; transform:translateY(-6px) scale(.98); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}

.bc-sd-empty {
  padding: 28px 20px;
  text-align: center;
  color: #94a3b8;
  font-size: .83rem;
}

.bc-sd-group {
  padding: 6px 0 4px;
  border-bottom: 1px solid #f1f5f9;
}
.bc-sd-group:last-child { border-bottom: none; }

.bc-sd-group-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px 4px;
  font-size: .66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #94a3b8;
}
.bc-sd-group-label svg { flex-shrink: 0; color: #cbd5e1; }

.bc-sd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  text-decoration: none;
  transition: background .1s;
  border-radius: 0;
  cursor: pointer;
}
.bc-sd-item:hover,
.bc-sd-item-active {
  background: #f8fafc;
}
.bc-sd-item-body { flex: 1; min-width: 0; }
.bc-sd-item-title {
  font-size: .82rem;
  font-weight: 500;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bc-sd-item-title mark {
  background: #fef9c3;
  color: #92400e;
  border-radius: 2px;
  padding: 0 1px;
}
.bc-sd-item-sub {
  font-size: .71rem;
  color: #94a3b8;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bc-sd-item-sub mark {
  background: transparent;
  color: #64748b;
  font-weight: 600;
}
.bc-sd-badge {
  flex-shrink: 0;
  padding: 2px 7px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #64748b;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .03em;
}

/* dark mode */
[data-theme="dark"] .bc-search-dropdown {
  background: #1e2535;
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 4px 6px rgba(0,0,0,.2), 0 12px 40px rgba(0,0,0,.4);
}
[data-theme="dark"] .bc-sd-group { border-color: rgba(255,255,255,.05); }
[data-theme="dark"] .bc-sd-item:hover,
[data-theme="dark"] .bc-sd-item-active { background: rgba(255,255,255,.05); }
[data-theme="dark"] .bc-sd-item-title { color: #e2e8f0; }
[data-theme="dark"] .bc-sd-item-sub { color: #64748b; }
[data-theme="dark"] .bc-sd-badge { background: rgba(255,255,255,.08); color: #94a3b8; }
[data-theme="dark"] .bc-search-shortcut { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.1); color: #64748b; }
/* ─── Sonuc satiri gorsel kutusu (urun kapak gorseli) ─────────── */
.bc-sd-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #eef0f4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #cbd5e1;
}
.bc-sd-thumb svg { width: 15px; height: 15px; }
.bc-sd-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}
[data-theme="dark"] .bc-sd-thumb {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.07);
  color: #475569;
}
[data-theme="dark"] .bc-sd-thumb img { background: #0f172a; }

/* ─── End Global Search ───────────────────────────────────────────────────── */

/* ─── Search filter bar ───────────────────────────────────────── */
.bc-sd-filterbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px 6px;
  border-bottom: 1px solid #f1f5f9;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  border-radius: 14px 14px 0 0;
}
.bc-sd-filterbar::-webkit-scrollbar { display: none; }

.bc-sd-ftab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-size: .7rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s, color .12s, border-color .12s;
  font-family: inherit;
}
.bc-sd-ftab:hover {
  background: #f1f5f9;
  color: #334155;
}
.bc-sd-ftab-active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.bc-sd-ftab-active:hover {
  background: #1d4ed8;
  color: #fff;
}
.bc-sd-fcount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: rgba(0,0,0,.08);
  font-size: .62rem;
  font-weight: 700;
  line-height: 1;
}
.bc-sd-ftab-active .bc-sd-fcount {
  background: rgba(255,255,255,.25);
}

[data-theme="dark"] .bc-sd-filterbar {
  background: #1e2535;
  border-color: rgba(255,255,255,.05);
}
[data-theme="dark"] .bc-sd-ftab {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.08);
  color: #94a3b8;
}
[data-theme="dark"] .bc-sd-ftab:hover { background: rgba(255,255,255,.1); color: #cbd5e1; }
[data-theme="dark"] .bc-sd-ftab-active { background: #2563eb; border-color: #2563eb; color: #fff; }
/* ─── End filter bar ──────────────────────────────────────────── */

/* ============================================================
   DARK THEME — legacy değişken override'ları (tüm panel geneli)
   2026-07-04: dark tema aktif edildi. Eski component'ler --body-bg,
   --card-bg, --text-* değişkenlerini kullanıyordu; bunların dark
   karşılıkları yoktu → tema çalışmıyordu. Bu blok onları çevirir.
   Tek bir blok halinde en sonda; gerekirse tümüyle silinip geri alınabilir.
   ============================================================ */
[data-theme="dark"] {
  color-scheme: dark;

  --body-bg: #0f1115;
  --card-bg: #171a21;
  --surface: #171a21;
  --slate-bg: #1a1d24;
  --bg: #0f1115;
  --white: #171a21; /* "beyaz kart" zeminleri için; saf beyaz gereken yerler ayrıca ele alınır */

  --text-primary: #e7e9ee;
  --text-secondary: #c3c8d2;
  --text-muted: #9aa1ad;
  --text-dim: #7a828f;
  --text: #e7e9ee;
  --text-2: #c3c8d2;
  --text-3: #9aa1ad;
  --text-4: #7a828f;

  --border-color: #2a2e38;
  --border: #2a2e38;
  --border-2: #363b47;
  --light-border: #23272f;
  --dark-border: #2a2e38;
  --dark-border2: #363b47;

  --gray-50: #1a1d24;
  --gray-light: #262b34;
  --gray-200: #262b34;
  --gray-400: #7a828f;
  --gray-600: #9aa1ad;

  --ty-row-bg: #171a21;
  --ty-row-hover: #1e222b;

  --accent-soft: rgba(59, 130, 246, 0.16);
  --p-bg: rgba(59, 130, 246, 0.14);
  --tr: rgba(59, 130, 246, 0.16);

  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 14px 32px rgba(0, 0, 0, 0.5);
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.55);

  --arch-ink: #e7e9ee;
  --arch-muted: #9aa1ad;
  --arch-line: #2a2e38;

  --slate-bg: #1a1d24;
}

/* Tema toggle ikon değişimi */
.bc-theme-icon-dark { display: none; }
[data-theme="dark"] .bc-theme-icon-light { display: none; }
[data-theme="dark"] .bc-theme-icon-dark { display: inline-block; }

/* Genel gövde */
[data-theme="dark"] body { background: var(--body-bg); color: var(--text-primary); }

/* Sık kullanılan yüzeyler / Bootstrap sınıfları */
[data-theme="dark"] .card,
[data-theme="dark"] .modal-content,
[data-theme="dark"] .dropdown-menu,
[data-theme="dark"] .list-group,
[data-theme="dark"] .list-group-item,
[data-theme="dark"] .offcanvas,
[data-theme="dark"] .accordion,
[data-theme="dark"] .accordion-item,
[data-theme="dark"] .accordion-button {
  background-color: var(--card-bg);
  color: var(--text-primary);
  border-color: var(--border-color);
}
[data-theme="dark"] .card-header,
[data-theme="dark"] .card-footer,
[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
  background-color: var(--card-bg);
  border-color: var(--border-color);
  color: var(--text-primary);
}
[data-theme="dark"] .bg-white,
[data-theme="dark"] .bg-light,
[data-theme="dark"] .bg-body,
[data-theme="dark"] .bg-body-tertiary {
  background-color: var(--card-bg) !important;
  color: var(--text-primary);
}
[data-theme="dark"] .text-dark { color: var(--text-primary) !important; }
[data-theme="dark"] .text-muted,
[data-theme="dark"] .text-secondary { color: var(--text-muted) !important; }
[data-theme="dark"] .border,
[data-theme="dark"] .border-top,
[data-theme="dark"] .border-bottom,
[data-theme="dark"] .border-start,
[data-theme="dark"] .border-end { border-color: var(--border-color) !important; }
[data-theme="dark"] hr,
[data-theme="dark"] .dropdown-divider { border-color: var(--border-color); }
[data-theme="dark"] .dropdown-item { color: var(--text-secondary); }
[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus { background-color: var(--ty-row-hover); color: var(--text-primary); }

/* Formlar */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] .input-group-text,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background-color: #1a1d24;
  color: var(--text-primary);
  border-color: var(--border-color);
}
[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
  background-color: #1a1d24;
  color: var(--text-primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.2);
}
[data-theme="dark"] .form-control::placeholder { color: var(--text-dim); }
[data-theme="dark"] .form-check-input { background-color: #1a1d24; border-color: var(--border-color); }
[data-theme="dark"] .form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }

/* Tablolar */
[data-theme="dark"] .table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text-primary);
  color: var(--text-primary);
  border-color: var(--border-color);
}
[data-theme="dark"] .table > :not(caption) > * > * {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
}
[data-theme="dark"] .table thead th,
[data-theme="dark"] .table > thead { color: var(--text-secondary); border-color: var(--border-color); }
[data-theme="dark"] .table-hover > tbody > tr:hover > * { background-color: var(--ty-row-hover); color: var(--text-primary); }
[data-theme="dark"] .table-light,
[data-theme="dark"] .table-light > * { background-color: #1a1d24 !important; color: var(--text-primary) !important; }

/* Nav / tab / badge yumuşak zeminler */
[data-theme="dark"] .nav-tabs { border-color: var(--border-color); }
[data-theme="dark"] .nav-tabs .nav-link { color: var(--text-muted); }
[data-theme="dark"] .nav-tabs .nav-link.active {
  background-color: var(--card-bg);
  color: var(--text-primary);
  border-color: var(--border-color) var(--border-color) var(--card-bg);
}
[data-theme="dark"] .badge.bg-light,
[data-theme="dark"] .badge.text-bg-light { background-color: #262b34 !important; color: var(--text-primary) !important; }

/* Bootstrap close butonu koyu zeminde görünür olsun */
[data-theme="dark"] .btn-close { filter: invert(1) grayscale(1) brightness(1.6); }

/* Genel geçiş yumuşatma (tema değişiminde) */
body,
.card,
.modal-content,
.form-control,
.table,
.dropdown-menu { transition: background-color .25s ease, color .25s ease, border-color .25s ease; }

/* ── Benom Teams: yuvarlak ikon yerine alt kenara yapışık YATAY dock pili ── */
.bc-teams-launcher {
  right: 86px;
  bottom: 0;
  width: auto;
  height: 36px;
  padding: 0 16px 0 13px;
  gap: 8px;
  border-radius: 12px 12px 0 0;
  animation: none;
  box-shadow: 0 -4px 18px rgba(99, 102, 241, .35), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.bc-teams-launcher::before { display: none; } /* daire pulse pill'e uymaz */
.bc-teams-launcher::after { right: -3px; top: -4px; bottom: auto; } /* online noktası köşede */
.bc-teams-launcher svg { width: 17px; height: 17px; }
.bc-teams-launcher:hover {
  transform: translateY(-3px);
  box-shadow: 0 -8px 24px rgba(99, 102, 241, .45), inset 0 1px 0 rgba(255, 255, 255, .26);
}
.bc-teams-launcher-text {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .02em;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .bc-teams-launcher-text { display: none; }
  .bc-teams-launcher { padding: 0 12px; right: 78px; }
}

/* ── Benom Teams dock: sürüklenebilir (alt ↔ sağ kenar) ── */
.bc-teams-launcher { touch-action: none; cursor: grab; }
.bc-teams-launcher.bc-teams-tasiniyor {
  opacity: .88;
  cursor: grabbing;
  transition: none !important;
  animation: none !important;
}
.bc-teams-launcher.bc-teams-dock-right {
  flex-direction: column;
  width: 36px;
  height: auto;
  padding: 14px 0 16px;
  gap: 9px;
  border-radius: 12px 0 0 12px;
  box-shadow: -4px 0 18px rgba(99, 102, 241, .35), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.bc-teams-launcher.bc-teams-dock-right:hover {
  transform: translateX(-3px);
  box-shadow: -8px 0 24px rgba(99, 102, 241, .45), inset 0 1px 0 rgba(255, 255, 255, .26);
}
.bc-teams-dock-right .bc-teams-launcher-text {
  writing-mode: vertical-rl;
  letter-spacing: .05em;
}
.bc-teams-dock-right::after { right: auto; left: -3px; top: -4px; }
@media (max-width: 640px) {
  .bc-teams-dock-right .bc-teams-launcher-text { display: none; }
}

/* ── Asistan "Günün İpuçları": panelin solunda EŞ TASARIMLI yan panel ── */
#bcaiIpuclari {
  position: fixed;
  right: calc(var(--bc-space-5, 24px) + 400px + 10px);
  bottom: calc(var(--bc-space-5, 24px) + 56px);
  width: 292px;
  height: 560px;
  max-height: calc(100vh - 100px);
  background: var(--bc-color-surface, #fff);
  border: 1px solid var(--bc-color-border, #e5e7eb);
  border-radius: 18px;
  box-shadow: 0 24px 56px rgba(16, 24, 40, .18), 0 4px 16px rgba(16, 24, 40, .08);
  padding: 14px;
  overflow-y: auto;
  display: none;
  flex-direction: column;
  gap: 10px;
  z-index: 1199;
}
.bc-assistant-open #bcaiIpuclari {
  display: flex;
  animation: bcaiIpucuGel .3s cubic-bezier(.21, 1.02, .73, 1);
}
@keyframes bcaiIpucuGel {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: none; }
}
.bcai-ipucu-baslik {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 2px 8px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 2px;
}
.bcai-ipucu-baslik i { color: #f59e0b; }
#bcaiIpuclari .bcai-cards { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; }
#bcaiIpuclari .bcai-card { margin: 0; }
/* Dar ekran: yan panel sığmaz — kartlar sohbet panelinin içinde kalsaydı erişilemezdi;
   panelin üstünde kompakt yatay şerit gösterilir */
@media (max-width: 1100px) {
  #bcaiIpuclari {
    right: var(--bc-space-5, 24px);
    bottom: calc(var(--bc-space-5, 24px) + 56px + 560px + 10px);
    width: 400px;
    max-width: calc(100vw - 24px);
    height: auto;
    max-height: 190px;
    padding: 10px;
  }
  #bcaiIpuclari .bcai-cards { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  #bcaiIpuclari .bcai-card { min-width: 225px; }
  .bcai-ipucu-baslik { display: none; }
}

/* ══════════════════════════════════════════════════════════════════════
   Benom Asistan — proaktif bildirim POP'u
   ----------------------------------------------------------------------
   ESKİ: baloncuk FAB butonunun İÇİNDE büyüyordu → orb metnin üstüne
   biniyor, metin tek satırda "…" ile kesiliyordu (okunmuyordu).
   YENİ: pop FAB'ın DIŞINDA, bağımsız bir kart. Çok satırlı metin,
   tıklanabilir maddeler, otomatik kapanma çubuğu. Konumu JS hesaplar
   (FAB nereye sürüklenirse sürüklensin ekran içinde kalır).
   JS API: window.bcaPop({ baslik, metin, maddeler, aksiyonlar, sure })
   ══════════════════════════════════════════════════════════════════════ */
.bca-pop {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1260;
  width: 320px;
  max-width: calc(100vw - 20px);
  padding: 12px 14px 16px;
  border-radius: 18px;
  background:
    radial-gradient(130% 110% at 0% 0%, rgba(46, 92, 190, .34) 0%, rgba(46, 92, 190, 0) 60%),
    linear-gradient(158deg, rgba(18, 28, 58, .97) 0%, rgba(9, 15, 36, .97) 100%);
  backdrop-filter: blur(22px) saturate(1.45);
  -webkit-backdrop-filter: blur(22px) saturate(1.45);
  border: 1px solid rgba(96, 160, 255, .30);
  box-shadow:
    0 0 0 1px rgba(96, 160, 255, .10),
    0 0 32px rgba(37, 99, 235, .22),
    0 20px 48px rgba(4, 8, 22, .55);
  color: #eaf1ff;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px) scale(.95);
  transform-origin: var(--bca-pop-ox, 50%) var(--bca-pop-oy, 100%);
  transition:
    opacity .24s cubic-bezier(.4, 0, .2, 1),
    transform .34s cubic-bezier(.34, 1.56, .64, 1),
    visibility .24s;
}
.bca-pop.bca-pop-acik {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* FAB'a bakan küçük ok */
.bca-pop-ok {
  position: absolute;
  left: var(--bca-pop-ok-x, 50%);
  width: 13px;
  height: 13px;
  margin-left: -6.5px;
  border-radius: 3px 0 0 0;
  transform: rotate(45deg);
  pointer-events: none;
}
.bca-pop-alt .bca-pop-ok {           /* pop FAB'ın ÜSTÜNDE → ok aşağı bakar */
  bottom: -7px;
  background: rgba(9, 15, 36, .97);
  border-right: 1px solid rgba(96, 160, 255, .30);
  border-bottom: 1px solid rgba(96, 160, 255, .30);
}
.bca-pop-ust .bca-pop-ok {           /* pop FAB'ın ALTINDA → ok yukarı bakar */
  top: -7px;
  background: rgba(21, 33, 68, .97);
  border-left: 1px solid rgba(96, 160, 255, .30);
  border-top: 1px solid rgba(96, 160, 255, .30);
}

/* ── Başlık satırı ─────────────────────────────────────────── */
.bca-pop-bas {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}
.bca-pop-avatar {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: radial-gradient(circle at 50% 34%, #2c4f96 0%, #12224a 54%, #060c1e 100%);
  box-shadow:
    inset 0 1px 0 rgba(150, 195, 255, .30),
    0 0 0 1px rgba(96, 160, 255, .28),
    0 0 16px rgba(37, 99, 235, .45);
}
.bca-pop-goz {
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: #cfe3ff;
  box-shadow: 0 0 7px rgba(125, 176, 255, .95);
  animation: bcaPopGoz 5.2s ease-in-out infinite;
}
@keyframes bcaPopGoz {
  0%, 91%, 100% { transform: scaleY(1); }
  95%           { transform: scaleY(.12); }
}
.bca-pop-baslik {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .01em;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bca-pop-kapat {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .09);
  color: rgba(226, 238, 255, .80);
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .16s ease, color .16s ease;
}
.bca-pop-kapat:hover {
  background: rgba(255, 255, 255, .20);
  color: #fff;
}

/* ── Gövde metni (ARTIK KESİLMİYOR) ────────────────────────── */
.bca-pop-metin {
  margin: 0;
  font-size: 13px;
  line-height: 1.52;
  color: rgba(226, 238, 255, .88);
  white-space: normal;
  overflow-wrap: anywhere;
}
.bca-pop-metin:empty { display: none; }

/* ── Tıklanabilir maddeler ─────────────────────────────────── */
.bca-pop-liste {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 9px;
}
.bca-pop-madde {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .07);
  color: #e6efff;
  font-size: 12.5px;
  line-height: 1.4;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
a.bca-pop-madde:hover {
  background: rgba(96, 160, 255, .17);
  border-color: rgba(96, 160, 255, .36);
  transform: translateX(2px);
  color: #fff;
}
.bca-pop-madde-ikon { flex: 0 0 auto; font-size: 13px; line-height: 1; }
.bca-pop-madde-metin { flex: 1 1 auto; min-width: 0; }
a.bca-pop-madde::after {
  content: "›";
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1;
  opacity: .45;
}

/* ── Aksiyon butonları ─────────────────────────────────────── */
.bca-pop-aksiyon {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}
.bca-pop-btn {
  flex: 0 1 auto;
  padding: 7px 13px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .07);
  color: #e6efff;
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .12s ease;
}
.bca-pop-btn:hover { background: rgba(255, 255, 255, .14); }
.bca-pop-btn:active { transform: scale(.97); }
.bca-pop-btn-birincil {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  border-color: rgba(147, 197, 253, .45);
  color: #fff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .38);
}
.bca-pop-btn-birincil:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #3576ef 100%);
}

/* ── Otomatik kapanma çubuğu (fare üstündeyken durur) ──────── */
.bca-pop-bar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 7px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .09);
  overflow: hidden;
}
.bca-pop-bar > i {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  transform-origin: left center;
  animation-name: bcaPopBar;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  animation-play-state: paused;
}
.bca-pop-acik .bca-pop-bar > i { animation-play-state: running; }
.bca-pop-acik:hover .bca-pop-bar > i { animation-play-state: paused; }
@keyframes bcaPopBar {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

@media (max-width: 480px) {
  .bca-pop { width: calc(100vw - 20px); padding: 11px 12px 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .bca-pop { transition: opacity .18s linear, visibility .18s linear; transform: none; }
  .bca-pop.bca-pop-acik { transform: none; }
  .bca-pop-goz, .bca-pop-bar > i { animation: none; }
}

/* ============================================================
   BENOMCORE V3 — Sidebar Kompakt & Modern (2026-08-23)
   Genişlik 276 → 240px; logo/menü/alt alan boşlukları sıkılaştırıldı,
   tipografi küçültüldü. Yalnızca görsel katman — menü verisi, yetki
   ve JS mantığı DEĞİŞMEDİ. Blok dosyanın sonunda: cascade gereği
   yukarıdaki sidebar kurallarını ezer.
   ============================================================ */

/* ── Logo alanı: alçak, çerçevesiz, ince ayraçlı ── */
.bc-sidebar .sidebar-logo {
  margin: 0.5rem 0.5rem 0.4rem;
  padding: 0.55rem 0.6rem 0.7rem;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  min-height: 0;
  gap: 0.55rem;
}

.bc-sidebar .logo-box {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.bc-sidebar .logo-box svg {
  width: 16px;
  height: 16px;
}

.bc-sidebar .sidebar-logo-text h2 {
  font-size: 0.855rem;
  letter-spacing: -0.01em;
}

.bc-sidebar .sidebar-logo-text small {
  font-size: 0.66rem;
}

/* ── Menü satırları: daha alçak, daha sık ── */
.bc-sidebar .sidebar-nav {
  padding: 0.45rem 0.45rem 0.7rem;
}

.bc-sidebar .nav-item {
  margin-bottom: 0.1rem;
}

.bc-sidebar .nav-parent {
  gap: 0.56rem;
  padding: 0.47rem 0.58rem;
  border-radius: 0.6rem;
  font-size: 0.8125rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.bc-sidebar .nav-parent svg:first-child {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.bc-sidebar .nav-chevron {
  width: 12px;
  height: 12px;
}

.bc-sidebar .nav-parent.active::before,
.bc-sidebar .nav-parent.has-active::before {
  left: -0.45rem;
  top: 24%;
  bottom: 24%;
  width: 2px;
  border-radius: 0 2px 2px 0;
}

/* ── Alt menü ── */
.bc-sidebar .nav-submenu {
  margin: 0.16rem 0 0.28rem 0.36rem;
  padding: 0.1rem 0.1rem 0.18rem 0.42rem;
}

.bc-sidebar .nav-submenu a {
  margin: 0.05rem 0;
  padding: 0.33rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.775rem;
}

.bc-sidebar .nav-submenu-divider {
  margin: 0.42rem 0.42rem 0.26rem;
  font-size: 0.62rem;
  letter-spacing: 0.07em;
}

.bc-sidebar .nav-badge-soon {
  font-size: 0.55rem;
  padding: 0.11rem 0.36rem;
}

.bc-sidebar .nav-mp-chip {
  width: 26px;
  height: 18px;
  margin-right: 0.42rem;
}

/* ── Alt sabit alan (Destek Merkezi) ── */
.bc-sidebar .bc-sidebar-footer {
  padding: 0.4rem 0.45rem 0.5rem;
}

.bc-sidebar .bc-sidebar-support {
  gap: 0.56rem;
  padding: 0.44rem 0.56rem;
  border-radius: 0.6rem;
  font-size: 0.785rem;
}

.bc-sidebar .bc-sidebar-support svg {
  width: 16px;
  height: 16px;
}

/* ============================================================
   BENOMCORE V3 — Sidebar Canlandırma (2026-08-29)
   Flat dark + ekrana yapışık (dock) yapı ve 240px ölçü KORUNUR
   (kullanıcı tercihi). Bu blok yalnız renk/mikro-etkileşim
   katmanıdır: accent ikonlar, aktif satırda sol vurgu çizgisi,
   hover geçişleri, logo rozeti. Cascade gereği dosya SONUNDA.
   ============================================================ */

.bc-sidebar {
  background: linear-gradient(180deg, #14161c 0%, #101319 100%);
}

.bc-sidebar .logo-box {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.bc-sidebar .sidebar-logo-text h2 {
  color: #f1f5f9;
}

.bc-sidebar .sidebar-nav .nav-parent,
.bc-sidebar .sidebar-nav .nav-item > a {
  transition: background 0.14s ease, color 0.14s ease;
  border-radius: 8px;
  position: relative;
}

.bc-sidebar .sidebar-nav .nav-parent:hover,
.bc-sidebar .sidebar-nav .nav-item > a:hover {
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
}

.bc-sidebar .sidebar-nav .nav-parent i.bi,
.bc-sidebar .sidebar-nav .nav-item i.bi {
  transition: color 0.14s ease, transform 0.14s ease;
}

.bc-sidebar .sidebar-nav .nav-parent:hover i.bi,
.bc-sidebar .sidebar-nav .nav-item > a:hover i.bi {
  color: #a5b4fc;
  transform: scale(1.08);
}

.bc-sidebar .sidebar-nav .nav-parent.active,
.bc-sidebar .sidebar-nav .nav-parent.has-active {
  background: rgba(99, 102, 241, 0.14);
  color: #fff;
}

.bc-sidebar .sidebar-nav .nav-parent.active::before,
.bc-sidebar .sidebar-nav .nav-parent.has-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #818cf8, #a78bfa);
}

.bc-sidebar .sidebar-nav .nav-parent.active i.bi,
.bc-sidebar .sidebar-nav .nav-parent.has-active i.bi {
  color: #a5b4fc;
}

.bc-sidebar .nav-submenu a.active {
  color: #c7d2fe;
}

.bc-sidebar .nav-badge-soon {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
}

.bc-sidebar .bc-sidebar-support {
  transition: background 0.15s ease, border-color 0.15s ease;
}

.bc-sidebar .bc-sidebar-support:hover {
  background: rgba(99, 102, 241, 0.12);
}


/* ============================================================
   BENOMCORE V3 -- Sidebar Premium (2026-09-03)
   Masaustu uygulamasiyla eslesen gorsel yukseltme: gradyanli aktif
   modul + yumusak glow, indigo/mavi ton ayrikli hover, nefes alan
   grup basliklari, yeniden tasarlanmis Destek Merkezi karti.
   Veri/permission/JS mantigi DEGISMEDI -- yalniz gorsel katman.
   Cascade geregi dosya SONUNDA; daraltilmis (collapsed) sidebar
   kurallari bundan etkilenmez, ayrica ele alinmistir.
   ============================================================ */

.bc-sidebar {
  background: linear-gradient(180deg, #171b27 0%, #13151e 45%, #0d0e14 100%);
}

/* -- Grup basliklari: gruplar arasi nefes alani (yalniz ust seviye) -- */
.bc-sidebar .sidebar-nav > .nav-submenu-divider {
  margin: 1.05rem 0.42rem 0.4rem;
}
.bc-sidebar .sidebar-nav > .nav-submenu-divider:first-child {
  margin-top: 0.3rem;
}

/* -- Menu satirlari: ikon boyutu, radius, hover tonu -- */
.bc-sidebar .nav-parent svg:first-child {
  width: 18px;
  height: 18px;
}

.bc-sidebar .nav-parent {
  border-radius: 0.65rem;
}

.bc-sidebar .sidebar-nav .nav-parent:hover,
.bc-sidebar .sidebar-nav .nav-item > a:hover {
  background: rgba(99, 102, 241, 0.09);
}

/* -- Aktif modul: gradyan + yumusak glow -- */
.bc-sidebar .sidebar-nav .nav-parent.active,
.bc-sidebar .sidebar-nav .nav-parent.has-active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.24), rgba(168, 85, 247, 0.18));
  box-shadow: 0 5px 18px rgba(59, 130, 246, 0.15);
}

/* -- Chevron: acik/kapali donus animasyonu -- */
.bc-sidebar .nav-chevron {
  transition: transform 0.18s ease;
}
.bc-sidebar .nav-parent.open .nav-chevron {
  transform: rotate(90deg);
}

/* -- Alt menu: mavi ton hover + aktif gradyan -- */
.bc-sidebar .nav-submenu a:hover {
  background: rgba(59, 130, 246, 0.09);
}
.bc-sidebar .nav-submenu a.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.28), rgba(96, 165, 250, 0.2));
}

/* -- Destek Merkezi: kart gorunumu -- */
.bc-sidebar .bc-sidebar-support {
  border: none;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0.75rem;
  transition: background 0.17s ease;
}
.bc-sidebar .bc-sidebar-support:hover {
  background: rgba(255, 255, 255, 0.07);
}
.bc-sidebar .bc-sidebar-support .bc-support-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #3b82f6);
}
.bc-sidebar .bc-sidebar-support .bc-support-icon svg {
  width: 16px;
  height: 16px;
  color: #fff;
}
.bc-sidebar .bc-sidebar-support .bc-support-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  flex: 1 1 auto;
}
.bc-sidebar .bc-sidebar-support .bc-support-title-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}
.bc-sidebar .bc-sidebar-support .bc-support-title {
  color: #f1f5f9;
  font-size: 0.8rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1 1 auto;
}
.bc-sidebar .bc-sidebar-support .bc-support-badge {
  background: #ef4444;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.06rem 0.4rem;
  line-height: 1.5;
  flex-shrink: 0;
}
.bc-sidebar .bc-sidebar-support .bc-support-sub {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.66rem;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bc-sidebar .bc-sidebar-support .bc-support-chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.35);
  margin-left: auto;
}

body.sidebar-collapsed .bc-sidebar-support .bc-support-text,
body.sidebar-collapsed .bc-sidebar-support .bc-support-chevron {
  display: none;
}
body.sidebar-collapsed .bc-sidebar-support {
  justify-content: center;
}


/* ============================================================
   Sidebar Premium -- Daraltilmis Ray (2026-09-03)
   Daraltilmis ray, genisletilmis sidebar'la ayni gorsel dili
   kullanmiyordu: aktif modul zorla saydam kaliyor, grup basliklari
   iki satira kirilip dagiliyor, alt menu gostergesi sag kenarda
   kopuk bir cizgi gibi duruyordu. Bu blok yalnizca GORSEL katmani
   duzeltir -- genislik, menu agaci, popout ve JS mantigi aynidir.
   ============================================================ */

/* -- Aktif modul: ray modunda da gradyan + glow (eski kural saydam yapiyordu) -- */
html.sidebar-collapsed-pre .bc-sidebar .nav-parent.active[data-bs-toggle="collapse"],
html.sidebar-collapsed-pre .bc-sidebar .nav-parent.has-active[data-bs-toggle="collapse"],
body.sidebar-collapsed .bc-sidebar .nav-parent.active[data-bs-toggle="collapse"],
body.sidebar-collapsed .bc-sidebar .nav-parent.has-active[data-bs-toggle="collapse"],
body.sidebar-collapsed .bc-sidebar .nav-parent.active,
body.sidebar-collapsed .bc-sidebar .nav-parent.has-active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.24), rgba(168, 85, 247, 0.18));
  box-shadow: 0 5px 18px rgba(59, 130, 246, 0.15);
}

/* -- Hover: genisletilmis haldekiyle ayni indigo yuzey -- */
body.sidebar-collapsed .bc-sidebar .sidebar-nav .nav-parent:hover {
  background: rgba(99, 102, 241, 0.09);
}
body.sidebar-collapsed .bc-sidebar .sidebar-nav .nav-parent.active:hover,
body.sidebar-collapsed .bc-sidebar .sidebar-nav .nav-parent.has-active:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.22));
}

/* -- Grup basliklari: 86px raya sigmayip iki satira kiriliyordu.
      Metin yerine ince, ortadan parlak ayrac cizgisi (masaustuyle ayni dil). -- */
body.sidebar-collapsed .bc-sidebar .sidebar-nav > .nav-submenu-divider,
html.sidebar-collapsed-pre .bc-sidebar .sidebar-nav > .nav-submenu-divider {
  height: 1px;
  margin: 0.85rem 0.95rem 0.7rem;
  padding: 0;
  border: 0;
  overflow: hidden;
  font-size: 0;
  line-height: 0;
  color: transparent;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}
body.sidebar-collapsed .bc-sidebar .sidebar-nav > .nav-submenu-divider:first-child,
html.sidebar-collapsed-pre .bc-sidebar .sidebar-nav > .nav-submenu-divider:first-child {
  margin-top: 0.35rem;
}

/* -- Alt menu gostergesi: sag kenardaki 3px cubuk kopuk bir cizgi gibi
      duruyordu; yerine ray icine cekilmis kucuk yuvarlak nokta. -- */
body.sidebar-collapsed .bc-sidebar .nav-parent[data-bs-toggle="collapse"]::after,
html.sidebar-collapsed-pre .bc-sidebar .nav-parent[data-bs-toggle="collapse"]::after {
  right: 5px;
  top: 50%;
  width: 4px;
  height: 4px;
  min-height: 0;
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(147, 197, 253, 0.4);
}
body.sidebar-collapsed .bc-sidebar .nav-parent[data-bs-toggle="collapse"]:hover::after,
body.sidebar-collapsed .bc-sidebar .nav-parent.has-active[data-bs-toggle="collapse"]::after {
  background: rgba(196, 216, 255, 0.85);
}

/* -- Ikon ve etiket: ray boyunca tutarli olcu -- */
body.sidebar-collapsed .bc-sidebar .nav-parent > svg:first-child {
  width: 18px;
  height: 18px;
}
body.sidebar-collapsed .bc-sidebar .nav-parent > .nav-label {
  color: rgba(154, 161, 173, 0.95);
}
body.sidebar-collapsed .bc-sidebar .nav-parent.active > .nav-label,
body.sidebar-collapsed .bc-sidebar .nav-parent.has-active > .nav-label {
  color: #fff;
}

/* -- Ince scroll gostergesi ray disina tasip icerik uzerinde
      kopuk bir cizgi olusturuyordu; sidebar icine alindi. -- */
.bc-sidebar .sidebar-scroll-track {
  right: 3px;
}

/* -- Destek karti: rayda ortalanmis yuvarlak buton -- */
body.sidebar-collapsed .bc-sidebar .bc-sidebar-support {
  padding: 0.5rem;
  background: transparent;
}
body.sidebar-collapsed .bc-sidebar .bc-sidebar-support:hover {
  background: rgba(255, 255, 255, 0.06);
}
body.sidebar-collapsed .bc-sidebar .bc-sidebar-support .bc-support-icon {
  width: 36px;
  height: 36px;
}
body.sidebar-collapsed .bc-sidebar .bc-sidebar-support .bc-support-icon svg {
  width: 18px;
  height: 18px;
}


/* ============================================================
   Sidebar Premium -- Sadece Ikon Rayi (2026-09-03)
   Sorun: daraltilmis halde satirlar ikon + 2 satir etiketten
   olustugu icin 64px'ti; 13 modul + grup ayraclari 986px tutuyor,
   723px'lik alana sigmiyordu -> Dijital Operasyonlar, Ayarlar,
   Geri Bildirim ve Moderasyon ekran disinda kaliyordu. Yani
   sidebar'i daraltmak onu UZATIYORDU.
   Cozum: ray artik yalnizca ikon gosterir (42px satir); menu adi
   alt menulu modullerde zaten popout basliginda, yapraklarda ise
   foot.php'nin ekledigi tooltip'te gorunur.
   ============================================================ */

body.sidebar-collapsed .bc-sidebar .nav-parent,
html.sidebar-collapsed-pre .bc-sidebar .nav-parent {
  min-height: 42px;
  padding: 0.5rem 0.34rem;
  gap: 0;
}

body.sidebar-collapsed .bc-sidebar .nav-parent > .nav-label,
html.sidebar-collapsed-pre .bc-sidebar .nav-parent > .nav-label {
  display: none !important;
}

body.sidebar-collapsed .bc-sidebar .nav-parent > svg:first-child,
html.sidebar-collapsed-pre .bc-sidebar .nav-parent > svg:first-child {
  width: 19px;
  height: 19px;
}

body.sidebar-collapsed .bc-sidebar .sidebar-nav .nav-item,
html.sidebar-collapsed-pre .bc-sidebar .sidebar-nav .nav-item {
  margin-bottom: 0.22rem;
}

body.sidebar-collapsed .bc-sidebar .sidebar-nav > .nav-submenu-divider,
html.sidebar-collapsed-pre .bc-sidebar .sidebar-nav > .nav-submenu-divider {
  margin: 0.55rem 0.95rem 0.45rem;
}

/* Alt menu gostergesi: etiket kalkinca sag kenar yerine ikonun
   sag-altinda kucuk nokta daha dengeli duruyor. */
body.sidebar-collapsed .bc-sidebar .nav-parent[data-bs-toggle="collapse"]::after,
html.sidebar-collapsed-pre .bc-sidebar .nav-parent[data-bs-toggle="collapse"]::after {
  right: 6px;
  width: 3.5px;
  height: 3.5px;
}


/* -- Ray genisligi: sadece-ikon icin 86px -> 68px --
   Ray artik etiket tasimadigi icin 86px bos duruyordu; daraltilip
   icerik alanina 18px kazandirildi. Tek kaynak degiskeni ezilir,
   .main-content marji ve mobil off-canvas otomatik uyar. */
:root {
  --app-sidebar-collapsed-width: 68px;
}


/* -- Destek karti alt metni: tek satirda kesiliyordu; 240px karta sigmadigi
   icin iki satira sariyor. -- */
.bc-sidebar .bc-sidebar-support .bc-support-sub {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
  line-height: 1.25;
}


/* ============================================================
   Sidebar Premium -- Popout Paleti (2026-09-04)
   Daraltilmis raydaki flyout hala eski LACIVERT palettoydi
   (#0f1f4a -> #0b1630, mavi kenarlik, mavi metinler); yeni ray
   neredeyse-siyah (#171B27 -> #0D0E14) oldugu icin yan yana
   uyumsuz duruyordu. Yuzey rayin tonuna cekildi, bir tik acik
   birakilarak "yukselti" hissi korundu. Vurgular masaustundeki
   sidebar_stil.dart ile ayni mantikta: modul indigo/mor,
   alt madde daha sakin mavi.
   ============================================================ */

body.sidebar-collapsed .bc-sidebar .nav-submenu.collapse,
html.sidebar-collapsed-pre .bc-sidebar .nav-submenu.collapse {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(160deg, #1d2130 0%, #181b27 55%, #13151d 100%);
  box-shadow:
    0 28px 52px rgba(0, 0, 0, 0.55),
    0 8px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Popout basligi ve icindeki grup ayraclari (ornek: RAPORLAR) */
body.sidebar-collapsed .bc-sidebar .nav-submenu .nav-popout-title,
html.sidebar-collapsed-pre .bc-sidebar .nav-submenu .nav-popout-title {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.42);
}
body.sidebar-collapsed .bc-sidebar .nav-submenu .nav-submenu-divider,
html.sidebar-collapsed-pre .bc-sidebar .nav-submenu .nav-submenu-divider {
  color: rgba(255, 255, 255, 0.38);
}

/* Alt madde: pasif metin rayla ayni gri, madde imi notr */
body.sidebar-collapsed .bc-sidebar .nav-submenu a,
html.sidebar-collapsed-pre .bc-sidebar .nav-submenu a {
  color: rgba(196, 202, 212, 0.88);
}
body.sidebar-collapsed .bc-sidebar .nav-submenu a::before,
html.sidebar-collapsed-pre .bc-sidebar .nav-submenu a::before {
  background: rgba(255, 255, 255, 0.26);
}

/* Hover: rayin indigo yuzeyi. Aktif: masaustunun sakin mavi gradyani. */
body.sidebar-collapsed .bc-sidebar .nav-submenu a:hover,
html.sidebar-collapsed-pre .bc-sidebar .nav-submenu a:hover {
  background: rgba(99, 102, 241, 0.16);
}
body.sidebar-collapsed .bc-sidebar .nav-submenu a:hover::before,
html.sidebar-collapsed-pre .bc-sidebar .nav-submenu a:hover::before {
  background: #818cf8;
}
body.sidebar-collapsed .bc-sidebar .nav-submenu a.active,
html.sidebar-collapsed-pre .bc-sidebar .nav-submenu a.active {
  color: #dde4ff;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(96, 165, 250, 0.22));
}
body.sidebar-collapsed .bc-sidebar .nav-submenu a.active::before,
html.sidebar-collapsed-pre .bc-sidebar .nav-submenu a.active::before {
  background: #93c5fd;
}


/* ============================================================
   Sidebar Premium -- Ray icinde parlama korumasi (2026-09-04)
   Popout kabugu ".nav-submenu.collapse" seciciine bagliydi.
   Bootstrap bir gecis baslattigi an .collapse sinifini kaldirip
   .collapsing koydugu icin kural eslesmeyi birakiyor, alt menu
   position:fixed kabugunu kaybedip 68px'lik RAYIN ICINE cizilerek
   kisa bir parlama yapiyordu. Tiklama artik Bootstrap'i hic
   tetiklemiyor, ama kabugu sinif adindan bagimsiz hale getirip
   bu belirtiyi kaynagindan kapatiyoruz: gecis sinifi tasiyan alt
   menu ekran disinda ve gorunmez kalir.
   ============================================================ */

body.sidebar-collapsed .bc-sidebar .nav-item > .nav-submenu.collapsing,
html.sidebar-collapsed-pre .bc-sidebar .nav-item > .nav-submenu.collapsing {
  position: fixed;
  left: var(--bc-popout-left, -9999px);
  top: var(--bc-popout-top, -9999px);
  height: auto !important;
  margin: 0;
  border-left: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: none;
}

/* ============================================================
   Sidebar toggle oku (2026-10-22): daraltılmış hâlde görünen ok
   "genişlet" anlamında SAĞA bakar (önceden sola bakıyordu).
   ============================================================ */
html.sidebar-collapsed-pre .topbar-hamburger .collapse-icon,
body.sidebar-collapsed .topbar-hamburger .collapse-icon {
  transform: rotate(180deg);
}
