/* ============================================================
   ATÖLYE ERP - Custom CSS (Tailwind'siz)
   ============================================================ */

:root {
  --brand-bg: #FAF7F1;
  --brand-panel: #FFFFFF;
  --brand-ink: #211D19;
  --brand-ink-soft: #6E6459;
  --brand-line: #E7E0D4;
  --brand-sidebar: #221C17;
  --brand-sidebar-text: #C9BFB0;
  --brand-sidebar-active: #FAF7F1;
  --brand-amber: #B5601F;
  --brand-amber-soft: #F4E3D1;
  --brand-teal: #1C6B5C;
  --brand-teal-soft: #DCEFE9;
  --brand-slate: #3B5874;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Space Grotesk", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  background: var(--brand-bg);
  color: var(--brand-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* ===== LAYOUT ===== */
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) {
  .app-container { flex-direction: row; }
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 100%;
  background: var(--brand-sidebar);
  color: var(--brand-sidebar-text);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 1px solid var(--brand-line);
}
@media (min-width: 768px) {
  .sidebar { width: 16rem; height: 100vh; position: sticky; top: 0; }
}

.sidebar-brand {
  padding: 1.25rem;
  border-bottom: 1px solid rgba(231,224,212,0.2);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0,0,0,0.1);
}
.brand-icon {
  width: 32px; height: 32px;
  background: var(--brand-amber);
  border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand-sidebar-active);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.brand-subtitle {
  font-size: 0.625rem;
  color: rgba(201,191,176,0.6);
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-top: 0.125rem;
}

.sidebar-nav {
  flex: 1;
  padding: 0.75rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 0; /* flex child içinde overflow'un düzgün çalışması için */
}

.nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--brand-sidebar-text);
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}
.nav-btn:hover {
  background: rgba(181,96,31,0.15);
  color: var(--brand-sidebar-active);
}
.nav-btn.active {
  background: var(--brand-amber);
  color: var(--brand-sidebar-active);
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.nav-btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.nav-btn.active svg { color: var(--brand-sidebar-active); }
.nav-btn svg { color: rgba(201,191,176,0.75); }

/* Sidebar Footer */
.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid rgba(231,224,212,0.2);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(0,0,0,0.2);
}
.sidebar-footer-buttons {
  display: flex;
  gap: 0.5rem;
}
.sidebar-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  background: var(--brand-sidebar);
  border: 1px solid rgba(231,224,212,0.3);
  color: var(--brand-sidebar-text);
  padding: 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s;
}
.sidebar-btn:hover { color: var(--brand-sidebar-active); border-color: var(--brand-line); }
.sidebar-btn-danger { border-color: rgba(153,27,27,0.4); }
.sidebar-btn-danger:hover { background: rgba(153,27,27,0.4); color: #fecaca; }
.sidebar-footer-note {
  font-size: 0.625rem;
  text-align: center;
  color: rgba(201,191,176,0.4);
  font-family: var(--font-mono);
}

/* ===== MOBILE SIDEBAR TOGGLE ===== */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 60;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: var(--brand-sidebar);
  color: var(--brand-sidebar-text);
  border: 1px solid rgba(231,224,212,0.2);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}
.sidebar-toggle:hover {
  background: rgba(181,96,31,0.3);
  color: var(--brand-sidebar-active);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(34,28,23,0.6);
  backdrop-filter: blur(2px);
}

@media (max-width: 767px) {
  .sidebar-toggle { display: flex; }

  .sidebar {
    position: fixed; top: 0; left: 0; z-index: 50;
    width: 280px; height: 100vh; min-height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,0.2);
  }
  .sidebar.mobile-open { transform: translateX(0); }
  .sidebar-overlay.mobile-open { display: block; }

  .main-content {
    max-height: none;
    padding: 4.5rem 0.75rem 1rem;
  }

  .app-container { flex-direction: column; }

  /* Tablo taşma önleme */
  .table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-wrapper table { min-width: 600px; }

  /* iOS zoom engelleme */
  input, select, textarea { font-size: 16px !important; }
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  max-height: 100vh;
}
@media (min-width: 640px) {
  .main-content { padding: 1.5rem; }
}
@media (min-width: 1024px) {
  .main-content { padding: 2rem; }
}
.content-wrapper {
  max-width: 72rem;
  margin: 0 auto;
}

/* ===== COMMON UTILITIES ===== */
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-1_5 > * + * { margin-top: 0.375rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-2_5 > * + * { margin-top: 0.625rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

.gap-1 { gap: 0.25rem; }
.gap-1_5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-center { align-items: center; }
  .sm\:col-span-2 { grid-column: span 2; }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:col-span-2 { grid-column: span 2; }
  .md\:col-span-3 { grid-column: span 3; }
  .md\:col-span-4 { grid-column: span 4; }
  .md\:flex-row { flex-direction: row; }
  .md\:items-center { align-items: center; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-4 { grid-column: span 4; }
  .lg\:col-span-8 { grid-column: span 8; }
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.italic { font-style: italic; }
.leading-relaxed { line-height: 1.625; }
.leading-tight { line-height: 1.25; }

/* ===== FONT HELPERS ===== */
.font-sans { font-family: var(--font-sans); }
.font-display { font-family: var(--font-display); }
.font-mono { font-family: var(--font-mono); }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.uppercase { text-transform: uppercase; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }

.text-brand-ink { color: var(--brand-ink); }
.text-brand-ink-soft { color: var(--brand-ink-soft); }
.text-brand-amber { color: var(--brand-amber); }
.text-brand-teal { color: var(--brand-teal); }
.text-brand-sidebar-text { color: var(--brand-sidebar-text); }
.text-rose-700 { color: #be123c; }
.text-rose-300 { color: #fda4af; }
.text-rose-900 { color: #881337; }
.text-rose-800 { color: #9f1239; }
.text-rose-600 { color: #e11d48; }
.text-white { color: #fff; }
.text-emerald-300 { color: #6ee7b7; }
.text-brand-teal-soft { color: var(--brand-teal-soft); }
.text-brand-sidebar-active { color: var(--brand-sidebar-active); }

/* ===== BACKGROUNDS ===== */
.bg-brand-bg { background: var(--brand-bg); }
.bg-brand-panel { background: var(--brand-panel); }
.bg-brand-sidebar { background: var(--brand-sidebar); }
.bg-brand-amber { background: var(--brand-amber); }
.bg-brand-amber-soft { background: var(--brand-amber-soft); }
.bg-brand-teal { background: var(--brand-teal); }
.bg-brand-teal-soft { background: var(--brand-teal-soft); }
.bg-brand-line { background: var(--brand-line); }
.bg-rose-50 { background: #fff1f2; }
.bg-rose-700 { background: #be123c; }
.bg-white { background: #fff; }
.bg-black\/10 { background: rgba(0,0,0,0.1); }
.bg-black\/20 { background: rgba(0,0,0,0.2); }
.bg-black\/60 { background: rgba(0,0,0,0.6); }
.bg-transparent { background: transparent; }
.bg-amber-900\/30 { background: rgba(120,53,15,0.3); }

/* ===== BORDERS ===== */
.border { border: 1px solid; }
.border-t { border-top: 1px solid; }
.border-b { border-bottom: 1px solid; }
.border-l-2 { border-left: 2px solid; }
.border-l-brand-amber { border-left-color: var(--brand-amber); }
.border-brand-line { border-color: var(--brand-line); }
.border-brand-amber { border-color: var(--brand-amber); }
.border-brand-amber\/20 { border-color: rgba(181,96,31,0.2); }
.border-brand-amber\/40 { border-color: rgba(181,96,31,0.4); }
.border-brand-teal { border-color: var(--brand-teal); }
.border-brand-teal\/20 { border-color: rgba(28,107,92,0.2); }
.border-brand-teal\/25 { border-color: rgba(28,107,92,0.25); }
.border-rose-100 { border-color: #ffe4e6; }
.border-rose-200 { border-color: #fecdd3; }
.border-rose-300 { border-color: #fda4af; }
.border-rose-950\/40 { border-color: rgba(76,5,25,0.4); }
.border-rose-150 { border-color: #ffccd2; }
.border-brand-sidebar { border-color: var(--brand-sidebar); }
.border-brand-line\/20 { border-color: rgba(231,224,212,0.2); }
.border-brand-line\/30 { border-color: rgba(231,224,212,0.3); }
.border-brand-line\/40 { border-color: rgba(231,224,212,0.4); }
.border-brand-line\/55 { border-color: rgba(231,224,212,0.55); }
.border-brand-line\/60 { border-color: rgba(231,224,212,0.6); }
.border-dashed { border-style: dashed; }
.rounded-sm { border-radius: 0.125rem; }
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

/* ===== SHADOWS ===== */
.shadow-xs { box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0,0,0,0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04); }

/* ===== SPACING HELPERS ===== */
.p-1 { padding: 0.25rem; }
.p-1_5 { padding: 0.375rem; }
.p-2 { padding: 0.5rem; }
.p-2_5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-3_5 { padding: 0.875rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.px-1_5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2_5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-3_5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-0_5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1_5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2_5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3_5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pb-4 { padding-bottom: 1rem; }
.pl-9 { padding-left: 2.25rem; }
.pr-1 { padding-right: 0.25rem; }
.pr-2 { padding-right: 0.5rem; }
.pr-4 { padding-right: 1rem; }
.mt-0_5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-1_5 { margin-top: 0.375rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.ml-1 { margin-left: 0.25rem; }
.mr-1 { margin-right: 0.25rem; }

/* ===== WIDTH / HEIGHT ===== */
.w-full { width: 100%; }
.w-3_5 { width: 0.875rem; }
.w-4 { width: 1rem; }
.w-4_5 { width: 1.125rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-20 { width: 5rem; }
.w-24 { width: 6rem; }
.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-6xl { max-width: 72rem; }
.h-3_5 { height: 0.875rem; }
.h-4 { height: 1rem; }
.h-4_5 { height: 1.125rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.min-h-screen { min-height: 100vh; }

/* ===== OVERFLOW ===== */
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.max-h-\[280px\] { max-height: 280px; }
.max-h-\[300px\] { max-height: 300px; }
.max-h-\[450px\] { max-height: 450px; }
.max-h-\[480px\] { max-height: 480px; }
.max-h-\[70vh\] { max-height: 70vh; }

/* ===== FORMS ===== */
input, select, textarea, button { font-family: inherit; }
input:focus, select:focus, textarea:focus { outline: none; }
input[type="text"], input[type="number"], input[type="date"], select, textarea {
  width: 100%;
  padding: 0.625rem;
  font-size: 0.75rem;
  background: var(--brand-bg);
  border: 1px solid var(--brand-line);
  border-radius: 0.5rem;
  color: var(--brand-ink);
  font-weight: 600;
  transition: border-color 0.15s;
}
input[type="text"]:focus, input[type="number"]:focus, input[type="date"]:focus, select:focus, textarea:focus {
  border-color: var(--brand-amber);
}
input::placeholder { color: var(--brand-ink-soft); opacity: 0.6; }

/* ===== TABLES ===== */
table { width: 100%; border-collapse: collapse; font-size: 0.75rem; text-align: left; }
thead tr {
  border-bottom: 1px solid var(--brand-line);
  background: rgba(250,247,241,0.6);
  color: var(--brand-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  font-family: var(--font-mono);
}
th { padding: 0.75rem 1.25rem; }
tbody { font-weight: 500; color: var(--brand-ink); }
tbody tr { border-bottom: 1px solid var(--brand-line); }
tbody tr:hover { background: rgba(250,247,241,0.2); }
td { padding: 1rem 1.25rem; }

/* ===== BUTTONS ===== */
button { cursor: pointer; transition: all 0.15s; }
button:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== BADGES / TAGS ===== */
.badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background: rgba(34,28,23,0.6);
  backdrop-filter: blur(2px);
  padding: 1rem;
}
.modal-content {
  background: var(--brand-panel);
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--brand-line);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2);
  max-width: 28rem;
  width: 100%;
}

/* ===== CARD ===== */
.card {
  background: var(--brand-panel);
  border: 1px solid var(--brand-line);
  border-radius: 0.75rem;
  overflow: hidden;
}
.card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--brand-line);
  background: rgba(250,247,241,0.5);
  display: flex; justify-content: space-between; align-items: center;
}
.card-body { padding: 1.25rem; }

/* ===== ANIMATIONS ===== */
@keyframes spin { to { transform: rotate(360deg); } }
.animate-spin { animation: spin 1s linear infinite; }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.hover\:scale-\[1\.01\]:hover { transform: scale(1.01); }
.group-hover\:scale-105:hover .group-hover\:scale-105 { transform: scale(1.05); }
.transition-all { transition: all 0.15s; }
.transition-colors { transition: color 0.15s, background-color 0.15s, border-color 0.15s; }
.transition-transform { transition: transform 0.15s; }

/* ===== MISC ===== */
.relative { position: relative; }
.fixed { position: fixed; }
.inset-0 { inset: 0; }
.z-50 { z-index: 50; }
.object-cover { object-fit: cover; }
.backdrop-blur-xs { backdrop-filter: blur(2px); }
.cursor-pointer { cursor: pointer; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.hidden { display: none; }
.list-none { list-style: none; }
.antialiased { -webkit-font-smoothing: antialiased; }
.border-collapse { border-collapse: collapse; }

/* ===== RESPONSIVE TABLE WRAPPER ===== */
.table-wrapper { overflow-x: auto; }

/* ===== TEXT CLAMP ===== */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center; padding: 1.5rem 0;
  color: var(--brand-ink-soft); font-size: 0.75rem;
}

/* ===== SIDEBAR NAV ICONS (inline SVG colors) ===== */
.nav-btn svg.nav-icon-active { color: var(--brand-sidebar-active) !important; }

/* ============================================================
   MISSING UTILITY CLASSES (added to match TSX/Tailwind)
   ============================================================ */

/* --- Position --- */
.absolute { position: absolute; }

/* --- Arbitrary text sizes --- */
.text-\[9px\] { font-size: 9px; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-\[13px\] { font-size: 13px; }

/* --- Extra spacing utilities --- */
.gap-0_5 { gap: 0.125rem; }
.gap-2_5 { gap: 0.625rem; }
.mt-2_5 { margin-top: 0.625rem; }
.pb-2_5 { padding-bottom: 0.625rem; }
.pt-1_5 { padding-top: 0.375rem; }
.pb-2_5 { padding-bottom: 0.625rem; }
.mb-1_5 { margin-bottom: 0.375rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-2_5 { margin-bottom: 0.625rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mt-0_5 { margin-top: 0.125rem; }
.mt-1_5 { margin-top: 0.375rem; }
.mt-6 { margin-top: 1.5rem; }
.ml-2 { margin-left: 0.5rem; }

/* --- Tracking --- */
.tracking-tight { letter-spacing: -0.025em; }

/* --- Dividers --- */
.divide-y > * + * { border-top-width: 1px; }
.divide-brand-line > * + * { border-color: var(--brand-line); }

/* --- Border top + bottom --- */
.border-y { border-top-width: 1px; border-bottom-width: 1px; border-style: solid; }

/* --- Extra color utilities --- */
.text-brand-sidebar-text-active { color: var(--brand-sidebar-active); }
.text-brand-sidebar-text\/85 { color: rgba(201,191,176,0.85); }
.text-brand-ink-soft\/80 { color: rgba(110,100,89,0.8); }
.text-brand-teal\/80 { color: rgba(28,107,92,0.8); }
.text-rose-700\/80 { color: rgba(190,18,60,0.8); }
.text-brand-slate { color: var(--brand-slate); }
.text-rose-100 { color: #ffe4e6; }
.text-rose-200 { color: #fecdd3; }
.text-amber-700 { color: #b45309; }
.text-emerald-700 { color: #047857; }

/* --- Opacity backgrounds --- */
.bg-brand-bg\/20 { background: rgba(250,247,241,0.2); }
.bg-brand-bg\/40 { background: rgba(250,247,241,0.4); }
.bg-brand-bg\/50 { background: rgba(250,247,241,0.5); }
.bg-brand-bg\/60 { background: rgba(250,247,241,0.6); }
.bg-brand-line\/15 { background: rgba(231,224,212,0.15); }
.bg-brand-line\/20 { background: rgba(231,224,212,0.2); }
.bg-brand-line\/30 { background: rgba(231,224,212,0.3); }
.bg-brand-line\/40 { background: rgba(231,224,212,0.4); }
.bg-brand-line\/60 { background: rgba(231,224,212,0.6); }
.bg-brand-sidebar\/60 { background: rgba(34,28,23,0.6); }
.bg-brand-sidebar\/90 { background: rgba(34,28,23,0.9); }
.bg-brand-teal-soft\/40 { background: rgba(220,239,233,0.4); }
.bg-brand-amber\/15 { background: rgba(181,96,31,0.15); }
.bg-rose-50\/10 { background: rgba(255,241,242,0.1); }
.bg-amber-900\/30 { background: rgba(120,53,15,0.3); }
.bg-brand-panel\/60 { background: rgba(255,255,255,0.6); }
.bg-brand-amber\/90 { background: rgba(181,96,31,0.9); }
.bg-brand-teal\/90 { background: rgba(28,107,92,0.9); }
.bg-rose-950\/40 { background: rgba(76,5,25,0.4); }

/* --- Opacity borders --- */
.border-brand-line\/15 { border-color: rgba(231,224,212,0.15); }
.border-brand-amber\/40 { border-color: rgba(181,96,31,0.4); }
.border-brand-teal\/40 { border-color: rgba(28,107,92,0.4); }

/* --- Hover backgrounds --- */
.hover\:bg-black:hover { background: #000; }
.hover\:bg-brand-amber\/90:hover { background: rgba(181,96,31,0.9); }
.hover\:bg-brand-amber\/95:hover { background: rgba(181,96,31,0.95); }
.hover\:bg-brand-bg\/20:hover { background: rgba(250,247,241,0.2); }
.hover\:bg-brand-line\/15:hover { background: rgba(231,224,212,0.15); }
.hover\:bg-brand-line\/20:hover { background: rgba(231,224,212,0.2); }
.hover\:bg-brand-line\/30:hover { background: rgba(231,224,212,0.3); }
.hover\:bg-brand-line\/40:hover { background: rgba(231,224,212,0.4); }
.hover\:bg-brand-sidebar\/90:hover { background: rgba(34,28,23,0.9); }
.hover\:bg-brand-teal\/90:hover { background: rgba(28,107,92,0.9); }
.hover\:bg-brand-teal\/95:hover { background: rgba(28,107,92,0.95); }
.hover\:bg-rose-50:hover { background: #fff1f2; }
.hover\:bg-rose-950\/40:hover { background: rgba(76,5,25,0.4); }

/* --- Hover borders --- */
.hover\:border-brand-amber\/40:hover { border-color: rgba(181,96,31,0.4); }
.hover\:border-brand-teal\/40:hover { border-color: rgba(28,107,92,0.4); }

/* --- Hover text --- */
.hover\:text-brand-amber:hover { color: var(--brand-amber); }
.hover\:text-brand-ink:hover { color: var(--brand-ink); }
.hover\:text-rose-200:hover { color: #fecdd3; }

/* --- Disabled states --- */
button:disabled, .disabled\:bg-brand-line\/40:disabled { opacity: 0.5; cursor: not-allowed; }

/* --- Divider class for table rows --- */
tbody.divide-y > tr + tr { border-top: 1px solid var(--brand-line); }
.divide-y.divide-brand-line > * + * { border-top: 1px solid var(--brand-line); }

/* --- Font weight extra --- */
.font-extrabold { font-weight: 800; }

/* --- Backdrop blur variants --- */
.backdrop-blur-sm { backdrop-filter: blur(4px); }

/* --- Brand slate soft --- */
.bg-brand-slate-soft { background: #E4ECF1; }
.text-brand-slate-soft { color: #E4ECF1; }

/* ===== NOTIFICATION BADGE ===== */
.nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 17px; height: 17px; padding: 0 5px; margin-left: auto;
  background: var(--brand-amber); color: #fff;
  border-radius: 9999px; font-size: 9px; font-weight: 700;
  font-family: var(--font-mono); line-height: 1;
  box-shadow: 0 0 0 2px var(--brand-sidebar);
}
.nav-btn.active .nav-badge { background: #fff; color: var(--brand-amber); box-shadow: 0 0 0 2px var(--brand-amber); }
.nav-btn span { display: inline-flex; align-items: center; }

/* ===== PRINT STYLES (PDF / Yazdırma) ===== */
@media print {
  .sidebar, .sidebar-toggle, .sidebar-overlay, .sidebar-footer, #modalOverlay { display: none !important; }
  .main-content { padding: 0 !important; max-height: none !important; overflow: visible !important; }
  body { background: #fff !important; }
  .app-container { flex-direction: column !important; }
  .card { box-shadow: none !important; border: 1px solid #ccc !important; page-break-inside: avoid; }
  table { font-size: 10px !important; }
  thead tr { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a[href]:after { content: ""; }
  .no-print { display: none !important; }
}

