/* AsyaCrm – Şık ve sade tema (CSS değişkenleri) */
:root {
  --asya-bg: #f8fafc;
  --asya-surface: #ffffff;
  --asya-sidebar: #1e293b;
  --asya-sidebar-hover: #334155;
  --asya-text: #0f172a;
  --asya-text-muted: #64748b;
  --asya-accent: #0d9488;
  --asya-accent-hover: #0f766e;
  --asya-border: #e2e8f0;
  --asya-shadow: 0 1px 3px rgba(0,0,0,.08);
  --asya-radius: 8px;
  --asya-font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html, body {
  font-family: var(--asya-font);
  background: var(--asya-bg);
  color: var(--asya-text);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--asya-text);
}

a {
  color: var(--asya-accent);
  text-decoration: none;
}

a:hover {
  color: var(--asya-accent-hover);
}

.btn-primary {
  background-color: var(--asya-accent);
  border-color: var(--asya-accent);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--asya-accent-hover);
  border-color: var(--asya-accent-hover);
  color: #fff;
}

.page {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: var(--asya-sidebar);
  color: #e2e8f0;
  flex-shrink: 0;
}

.sidebar .nav-link {
  color: #cbd5e1;
  padding: 0.65rem 1rem;
  border-radius: var(--asya-radius);
  margin: 0 0.5rem 2px;
}

.sidebar .nav-link:hover {
  background: var(--asya-sidebar-hover);
  color: #fff;
}

.sidebar .nav-link.active {
  background: var(--asya-accent);
  color: #fff;
}

.sidebar .navbar-brand {
  color: #fff;
  font-weight: 600;
  padding: 1rem;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.top-row {
  background: var(--asya-surface);
  border-bottom: 1px solid var(--asya-border);
  padding: 0.75rem 1.5rem;
  box-shadow: var(--asya-shadow);
}

.content {
  padding: 1.5rem;
  flex: 1;
}

.nav-scrollable {
  overflow-y: auto;
  padding: 0.5rem 0;
}

.navbar-toggler {
  border-color: rgba(255,255,255,.3);
}

.navbar-toggler-icon {
  filter: invert(1);
}

#blazor-error-ui {
  background: #fef3c7;
  color: #92400e;
}

@media (max-width: 640px) {
  .sidebar {
    width: 100%;
  }
}
