/* Solitex ERP & Cielo Premium Executive Palette */
:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: rgba(37, 99, 235, 0.08);
  --bg-dark: #f8fafc;
  --bg-topbar: #0f172a;
  --sidebar-bg: #eef2f6;
  --surface-dark: #ffffff;
  --surface-card: #ffffff;
  --border-dark: #cbd5e1;
  --border-light: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --success: #059669;
  --success-bg: rgba(5, 150, 105, 0.08);
  --warning: #d97706;
  --warning-bg: rgba(217, 119, 6, 0.08);
  --danger: #dc2626;
  --danger-bg: rgba(220, 38, 38, 0.08);
  --trendyol-orange: #ea580c;
  --trendyol-bg: rgba(234, 88, 12, 0.08);
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
}

body {
  background: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
}

body.erp-dashboard,
.app-layout {
  height: 100vh;
  overflow: hidden;
  display: flex;
  width: 100vw;
}

/* 1. Sol Sidebar Menü */
.sidebar {
  width: 280px;
  min-width: 280px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  user-select: none;
}

.sidebar>div:first-child {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.sidebar-header {
  padding: 1.1rem 1.25rem 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border-dark);
  flex-shrink: 0;
}

.sidebar-brand {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.sidebar-tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.version-pill {
  background: rgba(2, 132, 199, 0.25);
  color: #1d4ed8;
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.sidebar-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.65rem 0.5rem 1.5rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sidebar-nav::-webkit-scrollbar {
  width: 5px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}

/* YENİ: AŞAĞI AÇILIR AKORDEON (DROPDOWN) MENÜ STİLLERİ */
.nav-accordion-group {
  flex-shrink: 0;
  margin-bottom: 0.25rem;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.05);
  transition: all 0.2s ease;
}

.nav-accordion-group:hover {
  border-color: rgba(56, 189, 248, 0.2);
}

.nav-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  font-size: 0.82rem;
  color: #4b5563;
  transition: all 0.2s ease;
}

.nav-accordion-header:hover {
  background: rgba(15, 23, 42, 0.05);
  color: var(--text-main);
}

.nav-accordion-header .nav-group-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-accordion-header .accordion-chevron {
  font-size: 0.65rem;
  color: #4b5563;
  transition: transform 0.25s ease, color 0.2s ease;
}

.nav-accordion-group.open .nav-accordion-header {
  color: var(--text-main);
  background: rgba(56, 189, 248, 0.08);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.nav-accordion-group.open .nav-accordion-header .accordion-chevron {
  transform: rotate(180deg);
  color: #1d4ed8;
}

.nav-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 0 0.4rem;
}

.nav-accordion-group.open .nav-accordion-body {
  max-height: 1500px;
  padding: 0.35rem 0.4rem 0.5rem 0.4rem;
}

.nav-sub-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #4b5563;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: 2px;
}

.nav-sub-item:hover {
  background: rgba(15, 23, 42, 0.05);
  color: #1d4ed8;
  transform: translateX(3px);
}

.nav-sub-item.active {
  background: rgba(56, 189, 248, 0.16);
  color: #1d4ed8;
  font-weight: 700;
  border-left: 3px solid #38bdf8;
}

.nav-sub-item .sub-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-sub-item .sub-dot {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1;
}

.nav-sub-item.active .sub-dot {
  color: #1d4ed8;
}

.nav-section-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  font-weight: 700;
  padding: 0.6rem 0.75rem 0.25rem 0.75rem;
}

.nav-link-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.15s ease;
  cursor: pointer;
}

.nav-link-item:hover {
  background: rgba(15, 23, 42, 0.05);
  color: var(--text-main);
}

.nav-link-item.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

.nav-link-item .icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.nav-link-item .badge {
  margin-left: auto;
  font-size: 0.68rem;
  background: rgba(15, 23, 42, 0.05);
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 700;
}

.sidebar-footer {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border-dark);
  background: rgba(15, 23, 42, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #3b82f6;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

.user-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
}

.user-role {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* 2. Ana İçerik Alanı */
.main-viewport {
  flex: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.top-bar {
  height: 52px;
  background: var(--surface-dark);
  border-bottom: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.top-bar-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.live-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.btn-open-store {
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.15s;
}

.btn-open-store:hover {
  background: rgba(15, 23, 42, 0.05);
}

.content-scrollable {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

/* Modül Tab Panelleri */
.module-pane {
  display: none;
  animation: fadeIn 0.2s ease-in-out;
}

.module-pane.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modül Başlık Alanı */
.module-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.module-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.module-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Kartlar ve İstatistik Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--surface-card);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
}

.stat-card.featured {
  border-color: rgba(2, 132, 199, 0.4);
  background: linear-gradient(145deg, #182339, #132242);
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0.35rem 0 0.2rem 0;
}

.stat-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.stat-sub.positive {
  color: var(--success);
}

.stat-sub.negative {
  color: var(--danger);
}

.stat-sub.warning {
  color: var(--warning);
}

/* Paneller ve Tablo Kapsayıcıları */
.panel-card {
  background: var(--surface-dark);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.panel-header {
  padding: 0.85rem 1.25rem;
  background: rgba(15, 23, 42, 0.05);
  border-bottom: 1px solid var(--border-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.panel-body {
  padding: 1.25rem;
}

/* Tablolar */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
}

.data-table th {
  background: rgba(15, 23, 42, 0.05);
  color: var(--text-muted);
  font-weight: 700;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border-dark);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  color: var(--text-main);
  vertical-align: middle;
}

.data-table tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

/* Rozetler */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
}

.badge-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-primary {
  background: var(--primary-light);
  color: #1d4ed8;
  border: 1px solid rgba(2, 132, 199, 0.3);
}

.badge-trendyol {
  background: var(--trendyol-bg);
  color: var(--trendyol-orange);
  border: 1px solid rgba(242, 122, 26, 0.3);
}

/* Butonlar */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-success {
  background: var(--success);
  color: #fff;
}

.btn-success:hover {
  background: #059669;
}

.btn-trendyol {
  background: var(--trendyol-orange);
  color: #fff;
}

.btn-trendyol:hover {
  background: #d96408;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.05);
}

.btn-sm {
  padding: 0.25rem 0.6rem;
  font-size: 0.72rem;
}

/* Kanban Tahtası */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.85rem;
  align-items: flex-start;
  min-height: 450px;
}

.kanban-col {
  background: var(--surface-card);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 380px;
}

.kanban-col-head {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.05);
}

.kanban-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-main);
}

.kanban-col-count {
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 0.68rem;
  font-weight: bold;
}

.kanban-col-cards {
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.kanban-card {
  background: var(--surface-dark);
  border: 1px solid var(--border-dark);
  border-radius: 6px;
  padding: 0.75rem;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.05);
}

.kanban-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.kanban-card-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.kanban-card-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

/* Formlar */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-control {
  background: var(--bg-dark);
  border: 1px solid var(--border-dark);
  color: var(--text-main);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.82rem;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

/* Modallar */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  overflow-y: auto;
  overflow-x: hidden !important;
  box-sizing: border-box;
}

.modal-overlay.active,
.modal-overlay.open {
  display: flex !important;
}

.modal-box {
  background: var(--surface-dark);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  width: 92%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
  margin: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.modal-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.05);
  flex-shrink: 0;
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
}

.modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  overflow-x: hidden !important;
  flex: 1;
  box-sizing: border-box;
  width: 100%;
}

/* Geniş Modal Varyantları */
.modal-box-lg {
  max-width: 980px !important;
  width: 96% !important;
}

.modal-box-xl {
  max-width: 1140px !important;
  width: 96% !important;
  overflow-x: hidden !important;
}

/* Modal İçindeki Tablo Taşıyıcıları */
.modal-table-scroll {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-dark);
  border-radius: 6px;
  margin-bottom: 1rem;
  box-sizing: border-box;
}

/* Toast Bildirimleri */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
  pointer-events: none;
}

.toast {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 12px 16px;
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  font-size: 0.85rem;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.toast-success {
  border-left-color: var(--success);
}

.toast-danger {
  border-left-color: var(--danger);
}

.toast-warning {
  border-left-color: var(--warning);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.badge-urgent {
  background: rgba(239, 68, 68, 0.2);
  color: #b91c1c;
  border: 1px solid #ef4444;
}

.badge-high {
  background: rgba(245, 158, 11, 0.2);
  color: #92400e;
  border: 1px solid #f59e0b;
}

.badge-normal {
  background: rgba(2, 132, 199, 0.2);
  color: #1d4ed8;
  border: 1px solid #0284c7;
}

/* KPI GRID & EXECUTIVE CHART STYLES (RAPORLAR & ANA DASHBOARD) */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.kpi-card {
  background: linear-gradient(145deg, #0e172a 0%, #0b1120 100%);
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s, border-color 0.2s;
}

.kpi-card:hover {
  transform: translateY(-2px);
  border-color: #38bdf8;
}

.kpi-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.kpi-value {
  font-size: 1.6rem;
  font-weight: 900;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.kpi-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dashboard-charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.chart-card {
  background: #f1f4f8;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  min-height: 280px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
}

.chart-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-body-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0;
  position: relative;
}

/* =========================================================================
   SOLİTEX ERP & CIELO EXECUTIVE PALETTE (RESMİ EKRAN GÖRÜNTÜSÜ BİREBİR UYUMU)
   ========================================================================= */

/* 1. Üst Bar: Derin Lacivert (Slate 900) */
.topbar,
.top-bar {
  background: #0f172a !important;
  border-bottom: 1px solid #1e293b !important;
  color: #ffffff !important;
}

.topbar-title,
.top-bar-title,
.topbar h1,
.topbar h2,
.topbar h3,
.topbar span {
  color: #ffffff !important;
}

.top-bar-actions .btn-open-store {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

.top-bar-actions .btn-open-store:hover {
  background: #2563eb !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
}

/* 2. Sol Menü (Sidebar): Aydınlık Slate 100 & Canlı Royal Blue Aktif Sekme */
.sidebar {
  background: #eef2f6 !important;
  border-right: 1px solid #cbd5e1 !important;
}

.sidebar .sidebar-header {
  background: #e2e8f0 !important;
  border-bottom: 1px solid #cbd5e1 !important;
}

.sidebar .sidebar-brand {
  color: #0f172a !important;
}

.sidebar .sidebar-tagline {
  color: #475569 !important;
}

.sidebar .nav-section-title,
.sidebar .nav-group-title {
  color: #64748b !important;
  font-weight: 800 !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}

.sidebar .nav-link-item,
.sidebar .nav-sub-item {
  color: #334155 !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
}

.sidebar .nav-link-item:hover,
.sidebar .nav-sub-item:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

/* Sol Menü Başlıkları (Akordeon Başlıkları): Bir ton koyu ve belirgin */
.sidebar .nav-accordion-group {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  margin-bottom: 0.35rem !important;
  overflow: hidden !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.sidebar .nav-accordion-header {
  background: #dde4ee !important;
  /* Bir ton daha koyu, belirgin gri-mavi */
  color: #0f172a !important;
  /* Net koyu siyah-lacivert */
  font-weight: 800 !important;
  font-size: 0.84rem !important;
  border-bottom: 1px solid #cbd5e1 !important;
  padding: 0.7rem 0.85rem !important;
  border-radius: 0 !important;
  transition: all 0.2s ease !important;
}

.sidebar .nav-accordion-header:hover {
  background: #cfd8e5 !important;
  /* Hover'da hafif daha koyu */
  color: #0f172a !important;
}

.sidebar .nav-accordion-header .nav-group-left span,
.sidebar .nav-accordion-header span {
  color: #0f172a !important;
  font-weight: 800 !important;
}

.sidebar .nav-accordion-header .accordion-chevron {
  color: #334155 !important;
}

.sidebar .nav-accordion-group.open .nav-accordion-header {
  background: #d4deed !important;
  /* Açıkken belirgin ton */
  color: #0f172a !important;
  border-bottom: 1px solid #b8c7db !important;
}

.sidebar .nav-accordion-group.open .nav-accordion-header .accordion-chevron {
  color: #2563eb !important;
}

.sidebar .nav-accordion-body {
  background: #ffffff !important;
}

.sidebar .nav-sub-item.active {
  background: #dbeafe !important;
  color: #1d4ed8 !important;
  font-weight: 700 !important;
  border-left: 3px solid #2563eb !important;
}

/* Sol Menü Düz Link Aktif Sekme (Mavi Pill) */
.sidebar .nav-link-item.active {
  background: #2563eb !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35) !important;
}

.sidebar .nav-link-item.active .icon,
.sidebar .nav-link-item.active span {
  color: #ffffff !important;
}

.sidebar-footer {
  background: #e2e8f0 !important;
  border-top: 1px solid #cbd5e1 !important;
}

/* 3. Ana İçerik Alanı: Slate 50 Zemin */
.main-viewport,
.content-scrollable,
.main-content,
.content-area {
  background: #f8fafc !important;
  color: #0f172a !important;
}

.page-title,
.section-title,
.module-title,
.panel-title,
.card-title,
.user-name,
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #0f172a !important;
}

/* 4. Kartlar ve Paneller: Bembeyaz (#ffffff), İnce Kenarlık ve Hafif Gölge */
.card,
.panel,
.panel-card,
.stat-card,
.kpi-card,
.kanban-col,
.chart-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px 0 rgba(0, 0, 0, 0.04) !important;
  color: #0f172a !important;
}

.stat-card:hover,
.panel-card:hover,
.chart-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04) !important;
}

.stat-card .stat-label,
.kpi-card .kpi-title {
  color: #475569 !important;
  font-weight: 700 !important;
  font-size: 0.75rem !important;
}

.stat-card .stat-value,
.kpi-card .kpi-value {
  color: #0f172a !important;
  font-weight: 900 !important;
}

.stat-card.featured {
  background: linear-gradient(145deg, #1e3a8a, #0f172a) !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
}

.stat-card.featured .stat-label,
.stat-card.featured .stat-value,
.stat-card.featured .stat-sub {
  color: #ffffff !important;
}

.panel-header,
.chart-header {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.chart-title,
.panel-title {
  color: #0f172a !important;
  font-weight: 700 !important;
}

/* 5. Tablolar: Kurumsal Temiz Görünüm */
.data-table {
  background: #ffffff !important;
}

.data-table th {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border-bottom: 2px solid #cbd5e1 !important;
  font-weight: 700 !important;
  font-size: 0.72rem !important;
  text-transform: uppercase !important;
}

.data-table td {
  background: #ffffff !important;
  color: #0f172a !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.data-table tr:hover td {
  background: #f8fafc !important;
}

/* 6. Form Elemanları (Girdiler) */
.form-control,
input.form-control,
select.form-control,
textarea.form-control {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  border-radius: 6px !important;
}

.form-control:focus,
input.form-control:focus,
select.form-control:focus,
textarea.form-control:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

.form-label,
label {
  color: #334155 !important;
  font-weight: 600 !important;
}

/* 7. Modallar */
.modal-overlay {
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(4px) !important;
}

.modal-box {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.05) !important;
  border-radius: 12px !important;
  color: #0f172a !important;
}

.modal-box .modal-header {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.modal-box .modal-title {
  color: #0f172a !important;
}

/* 8. Butonlar */
.btn-primary {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2) !important;
}

.btn-primary:hover {
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
}

.btn-outline,
.data-table .btn,
.data-table a.btn,
.data-table button.btn {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.btn-outline:hover,
.data-table .btn:hover,
.data-table a.btn:hover,
.data-table button.btn:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

.btn-success {
  background: #059669 !important;
  color: #ffffff !important;
}

.btn-success:hover {
  background: #047857 !important;
}

.btn-danger {
  background: #dc2626 !important;
  color: #ffffff !important;
}

.btn-danger:hover {
  background: #b91c1c !important;
}

/* 9. Rozetler (Badges) */
.badge-success {
  background: #ecfdf5 !important;
  color: #065f46 !important;
  border: 1px solid #a7f3d0 !important;
  font-weight: 700 !important;
}

.badge-warning {
  background: #fffbeb !important;
  color: #92400e !important;
  border: 1px solid #fde68a !important;
  font-weight: 700 !important;
}

.badge-danger {
  background: #fef2f2 !important;
  color: #991b1b !important;
  border: 1px solid #fecaca !important;
  font-weight: 700 !important;
}

.badge-info,
.badge-primary {
  background: #eff6ff !important;
  color: #1e40af !important;
  border: 1px solid #bfdbfe !important;
  font-weight: 700 !important;
}

/* Toast */
.toast {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}