/* DataNet Admin Starter — shadcn-style utility class'lar.
   Tailwind Play CDN bu dosyanın üstüne biner; aşağıda Tailwind'de olmayan
   ya da projeye özel olan kompozit class'lar tanımlanır. */

:root {
  --background: #ffffff;
  --foreground: #0a0a0a;
  --card: #ffffff;
  --card-foreground: #0a0a0a;
  --muted: #f4f4f5;
  --muted-foreground: #71717a;
  --border: rgba(0, 0, 0, 0.1);
  --input-background: #f3f3f5;
  --primary: #2563eb;          /* blue-600 — projeye göre değiştirin */
  --primary-foreground: #ffffff;
  --ring: #a1a1aa;
  --radius: 0.625rem;
}

html, body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f9fafb;
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ===== Card ===== */
.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
}
.card-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid #f3f4f6; }
.card-body   { padding: 1.5rem; }

/* ===== Button ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1rem;
  border-radius: 0.5rem;
  padding: 0.55rem 1rem;
  transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary   { background: #2563eb; color: #fff; }
.btn-primary:hover:not(:disabled) { background: #1d4ed8; }
.btn-secondary { background: #f3f4f6; color: #111827; }
.btn-secondary:hover:not(:disabled) { background: #e5e7eb; }
.btn-outline   { background: #fff; border-color: #e5e7eb; color: #111827; }
.btn-outline:hover:not(:disabled) { background: #f9fafb; }
.btn-ghost     { background: transparent; color: #374151; }
.btn-ghost:hover:not(:disabled) { background: #f3f4f6; }
.btn-danger    { background: #dc2626; color: #fff; }
.btn-danger:hover:not(:disabled) { background: #b91c1c; }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
.btn-icon { width: 2.25rem; height: 2.25rem; padding: 0; }

/* ===== Form ===== */
.input, .select {
  width: 100%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.55rem 0.875rem;
  font-size: 0.875rem;
  color: #111827;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.375rem;
}

/* ===== Badge ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1rem;
  white-space: nowrap;
}

/* ===== Table ===== */
.tbl        { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.tbl th     { text-align: left; font-weight: 500; color: #6b7280; padding: 0.75rem 1rem; border-bottom: 1px solid #e5e7eb; background: #fafafa; }
.tbl td     { padding: 0.875rem 1rem; border-bottom: 1px solid #f3f4f6; color: #111827; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr.clickable { cursor: pointer; }
.tbl tbody tr.clickable:hover { background: #f9fafb; }

/* ===== Sidebar nav ===== */
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: background-color .15s, color .15s;
}
.nav-link:hover { background: #f9fafb; }
.nav-link.active { background: #eff6ff; color: #1d4ed8; }
.nav-link .badge-count {
  margin-left: auto;
  background: #ef4444;
  color: #fff;
  font-size: 0.6875rem;
  padding: 0.1rem 0.5rem;
  border-radius: 9999px;
}

/* ===== Lucide icon sizing ===== */
.icon    { width: 1.25rem; height: 1.25rem; stroke-width: 2; }
.icon-sm { width: 1rem;    height: 1rem;    stroke-width: 2; }
.icon-lg { width: 1.5rem;  height: 1.5rem;  stroke-width: 2; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar        { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb  { background: #d1d5db; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }
::-webkit-scrollbar-track  { background: transparent; }
