﻿/* 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: #1B6CA8;
  --asya-accent-hover: #155a8c;
  --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;
  max-width: 260px;
  background: var(--asya-sidebar);
  color: #e2e8f0;
  flex-shrink: 0;
  overflow-x: hidden;
}

.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;
}

.sidebar-brand {
  padding: 0.75rem 0.75rem 0.25rem;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  margin-bottom: 0.65rem;
  max-width: 100%;
  overflow: hidden;
}

.sidebar-logo img {
  height: 36px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.menu-search input {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}

.menu-search input::placeholder { color: #94a3b8; }

.menu-group-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: 0;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
}

.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%;
  }
}
