/**
 * Modern shadcn/ui Tasarım Sistemi (CSS)
 * Temiz, hafif, hızlı ve mobil öncelikli arayüz stilleri
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --primary: #0f172a;
  --primary-hover: #1e293b;
  --primary-fg: #ffffff;
  
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-info: #3b82f6;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 70px; /* Mobilde alt navigasyon payı */
}

@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

/* Layout Yapısı */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Desktop Sidebar */
.app-sidebar {
  display: none;
  width: 260px;
  background: #ffffff;
  border-right: 1px solid var(--border-color);
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
}

@media (min-width: 1024px) {
  .app-sidebar {
    display: flex;
  }
  .app-main {
    margin-left: 260px;
  }
}

.sidebar-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-nav {
  padding: 1rem 0.75rem;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.nav-item:hover {
  background-color: #f1f5f9;
  color: var(--text-main);
}

.nav-item.active {
  background-color: #0f172a;
  color: #ffffff;
}

.nav-item.active i {
  color: #ffffff;
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Ana İçerik Alanı */
.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Topbar */
.app-topbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .app-topbar {
    padding: 1rem 2rem;
  }
}

.page-body {
  padding: 1rem;
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .page-body {
    padding: 1.5rem 2rem;
  }
}

/* Mobil Alt Navigasyon (Bottom Navigation Bar) */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0.25rem;
  z-index: 50;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

@media (min-width: 1024px) {
  .mobile-bottom-nav {
    display: none;
  }
}

.mobile-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  flex: 1;
  text-align: center;
}

.mobile-nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

/* Kartlar ve Konteynerler */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Butonlar */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-fg);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-secondary {
  background-color: #f1f5f9;
  color: #334155;
  border-color: #e2e8f0;
}
.btn-secondary:hover {
  background-color: #e2e8f0;
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
}
.btn-outline:hover {
  background-color: #f8fafc;
}

.btn-danger {
  background-color: #ef4444;
  color: #ffffff;
}
.btn-danger:hover {
  background-color: #dc2626;
}

.btn-success {
  background-color: #10b981;
  color: #ffffff;
}
.btn-success:hover {
  background-color: #059669;
}

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.775rem;
  border-radius: var(--radius-sm);
}

.btn-icon {
  padding: 0.55rem;
  border-radius: var(--radius-md);
}

/* Form Elemanları */
.form-group {
  margin-bottom: 1.1rem;
}

.form-label {
  display: block;
  font-size: 0.825rem;
  font-weight: 500;
  color: #334155;
  margin-bottom: 0.4rem;
}

.form-control, .form-select, .form-textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text-main);
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* Badgeler (Durum Etiketleri) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.badge-success {
  background-color: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.badge-danger {
  background-color: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.badge-warning {
  background-color: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}

.badge-info {
  background-color: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}

.badge-secondary {
  background-color: #f1f5f9;
  color: #475569;
  border-color: #e2e8f0;
}

/* Tablolar */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: #ffffff;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.table th {
  background-color: #f8fafc;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: #475569;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  vertical-align: middle;
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover td {
  background-color: #f8fafc;
}

/* Modallar */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  transform: translateY(12px) scale(0.98);
  transition: all 0.2s ease;
}

.modal-backdrop.active .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background-color: #f8fafc;
  border-bottom-left-radius: var(--radius-xl);
  border-bottom-right-radius: var(--radius-xl);
}

/* Sekmeler (Tabs) */
.tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1px;
}

.tab-btn {
  background: none;
  border: none;
  padding: 0.65rem 1rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}

.empty-state-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem auto;
  background-color: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}

.empty-state-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.empty-state-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 360px;
  margin: 0 auto 1.5rem auto;
}

/* Grid Yardımcıları */
.grid {
  display: grid;
  gap: 1.25rem;
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 768px) {
  .md-grid-cols-1 { grid-template-columns: 1fr !important; }
}

/* Flex Yardımcıları */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }

/* Margin / Padding */
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }

/* Tipografi */
.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-3xl { font-size: 1.875rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-muted { color: var(--text-muted); }
.text-danger { color: var(--color-danger); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }

/* Progress Bar */
.progress-bar-bg {
  width: 100%;
  height: 8px;
  background-color: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background-color: #0f172a;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

/* Floating Action Button (Mobilde hızlı ekleme butonu) */
.fab {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 80px;
  right: 1.25rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
  z-index: 45;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.fab:hover {
  transform: scale(1.05);
}

@media (min-width: 1024px) {
  .fab {
    display: none;
  }
}

/* ================================================================
   DARK NEON THEME OVERRIDES
   ================================================================ */
:root { --bg-main:#070b17; --bg-card:#0d1426; --text-main:#e6f7ff; --text-muted:#8da4bb; --border-color:#203452; --primary:#00e5ff; --primary-hover:#00b8d4; --primary-fg:#04101b; --color-success:#19f5a5; --color-warning:#ffd166; --color-danger:#ff4d7d; --color-info:#64a8ff; --shadow-sm:0 0 0 1px rgba(32,52,82,.75),0 0 18px rgba(0,229,255,.06); --shadow-md:0 0 0 1px rgba(32,52,82,.8),0 0 24px rgba(0,229,255,.08); --shadow-lg:0 0 0 1px rgba(0,229,255,.24),0 0 32px rgba(0,229,255,.16); }
body { background:radial-gradient(circle at 80% -10%,#112b4c 0,transparent 35%),var(--bg-main); color:var(--text-main); }
.app-sidebar { background:rgba(8,14,29,.96); border-color:var(--border-color); }
.sidebar-header,.sidebar-footer { border-color:var(--border-color); }
.sidebar-header>div:first-child { background:linear-gradient(135deg,#00e5ff,#8b5cf6)!important; color:#03111e!important; box-shadow:0 0 18px rgba(0,229,255,.35); }
.sidebar-header div[style*="color: #0f172a"] { color:#e6f7ff!important; } .sidebar-header div[style*="color: #64748b"] { color:#8da4bb!important; }
.nav-item { color:#8da4bb; } .nav-item:hover { background:rgba(0,229,255,.08); color:#e6f7ff; }
.nav-item.active { background:linear-gradient(90deg,rgba(0,229,255,.18),rgba(139,92,246,.14)); color:#00e5ff; box-shadow:inset 3px 0 0 #00e5ff,0 0 16px rgba(0,229,255,.08); }
.nav-item.active i { color:#00e5ff; }
.app-topbar { background:rgba(7,11,23,.86); border-color:var(--border-color); }
.app-topbar h1,h1[style*="color: #0f172a"],h2[style*="color: #0f172a"],h3[style*="color: #0f172a"],h4[style*="color: #0f172a"] { color:#e6f7ff!important; }
.card { background:linear-gradient(145deg,rgba(15,24,45,.96),rgba(10,17,34,.96)); border-color:var(--border-color); box-shadow:var(--shadow-sm); }
.card:hover { border-color:rgba(0,229,255,.35); } .card-title,.empty-state-title { color:#e6f7ff; }
.btn-primary { background:linear-gradient(135deg,#00d9f5,#7c5cff); color:#03111e; box-shadow:0 0 16px rgba(0,229,255,.18); }
.btn-primary:hover { background:linear-gradient(135deg,#48efff,#9b85ff); box-shadow:0 0 24px rgba(0,229,255,.32); }
.btn-outline { border-color:#2c4c70; color:#c5e7f5; } .btn-outline:hover { background:rgba(0,229,255,.1); border-color:#00e5ff; color:#fff; }
.btn-secondary { background:#17243b; color:#c5e7f5; border-color:#2c4c70; } .btn-secondary:hover { background:#203452; }
.btn-danger { background:linear-gradient(135deg,#ff416c,#c02666); } .btn-success { background:linear-gradient(135deg,#00c896,#00a6a6); color:#031b1b; }
.form-label { color:#b7d3e3; } .form-control,.form-select,.form-textarea { background:#091326; color:#e6f7ff; border-color:#294665; }
.form-control::placeholder,.form-textarea::placeholder { color:#607995; } .form-control:focus,.form-select:focus,.form-textarea:focus { border-color:#00e5ff; box-shadow:0 0 0 3px rgba(0,229,255,.14),0 0 14px rgba(0,229,255,.12); }
.table-responsive { background:#0b1324; border-color:var(--border-color); } .table th { background:#111e35; color:#a9c4d7; border-color:var(--border-color); } .table td { color:#dceefa; border-color:#1d304d; } .table tr:hover td { background:rgba(0,229,255,.055); }
.badge-success { background:rgba(25,245,165,.12); color:#52ffc3; border-color:rgba(25,245,165,.35); } .badge-danger { background:rgba(255,77,125,.13); color:#ff86a5; border-color:rgba(255,77,125,.35); } .badge-warning { background:rgba(255,209,102,.13); color:#ffe09a; border-color:rgba(255,209,102,.35); } .badge-info { background:rgba(100,168,255,.13); color:#9bc7ff; border-color:rgba(100,168,255,.35); } .badge-secondary { background:rgba(141,164,187,.13); color:#b4c7d7; border-color:rgba(141,164,187,.3); }
.modal-backdrop { background:rgba(2,6,18,.78); } .modal-dialog { background:#0e182c; border-color:#2a496b; } .modal-header,.modal-footer { border-color:var(--border-color); } .modal-footer { background:#0a1324; }
.empty-state-icon { background:rgba(0,229,255,.1); color:#00e5ff; box-shadow:0 0 20px rgba(0,229,255,.1); } .progress-bar-bg { background:#1a2a43; } .progress-bar-fill { background:linear-gradient(90deg,#00e5ff,#8b5cf6); box-shadow:0 0 10px rgba(0,229,255,.4); }
.tab-btn { color:#8da4bb; } .tab-btn:hover,.tab-btn.active { color:#00e5ff; } .tab-btn.active { border-bottom-color:#00e5ff; text-shadow:0 0 10px rgba(0,229,255,.35); }
.mobile-bottom-nav { background:rgba(8,14,29,.97); border-color:var(--border-color); box-shadow:0 -2px 18px rgba(0,229,255,.1); } .mobile-nav-link { color:#8da4bb; } .mobile-nav-link.active { color:#00e5ff; }
.quick-add-dropdown { display:none; } .quick-add-dropdown.active { display:block!important; animation:neonDrop .16s ease-out; } .quick-add-dropdown .nav-item { color:#c5e7f5; } .quick-add-dropdown .nav-item:hover { background:rgba(0,229,255,.12); }
[style*="background: #f8fafc"],[style*="background:#f8fafc"],[style*="background: #ffffff"],[style*="background:#ffffff"] { background:#101d34!important; border-color:#294665!important; } [style*="background: #f1f5f9"],[style*="background:#f1f5f9"] { background:#17243b!important; } [style*="color: #334155"],[style*="color:#334155"],[style*="color: #475569"] { color:#c5e7f5!important; } [style*="color: #64748b"],[style*="color:#64748b"] { color:#8da4bb!important; }
code { background:#17243b!important; color:#9feaff; } select option { background:#0e182c; color:#e6f7ff; }
@keyframes neonDrop { from { opacity:0; transform:translateY(-5px); } to { opacity:1; transform:translateY(0); } }
@media (max-width:640px) { .app-topbar { padding:.65rem .75rem; } .app-topbar .btn span { display:none; } .quick-add-dropdown { right:-50px!important; } }
