/* ==========================================================
   MODÜLER YÖNETİM SİSTEMİ - GLOBAL DESIGN SYSTEM
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color Palette - Premium Dark */
  --bg-main: #090d16;
  --bg-card: rgba(19, 26, 43, 0.75);
  --bg-card-hover: rgba(28, 38, 62, 0.85);
  --bg-surface: #111827;
  --bg-surface-light: #1f2937;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  /* Module Theme Colors */
  --garanti-from: #0284c7;
  --garanti-to: #0369a1;
  --garanti-glow: rgba(14, 165, 233, 0.35);
  
  --muhasebe-from: #10b981;
  --muhasebe-to: #047857;
  --muhasebe-glow: rgba(16, 185, 129, 0.35);
  
  --siparis-from: #f59e0b;
  --siparis-to: #d97706;
  --siparis-glow: rgba(245, 158, 11, 0.35);
  
  --stok-from: #8b5cf6;
  --stok-to: #6d28d9;
  --stok-glow: rgba(139, 92, 246, 0.35);

  /* Functional Colors */
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #0ea5e9;

  /* Typography & Geometry */
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-subtle: 0 4px 20px -2px rgba(0, 0, 0, 0.35);
  --shadow-elevated: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px -5px;
  
  --transition-fast: 0.18s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(139, 92, 246, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.04) 0%, transparent 50%);
  background-attachment: fixed;
}

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

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

/* ==========================================================
   TOPBAR NAVIGATION & SUBBAR
   ========================================================== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.brand-back-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateX(-3px);
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 40%, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text span {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.module-nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mod-nav-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.mod-nav-item:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-color);
}

.mod-nav-item.active {
  color: #38bdf8;
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.3);
}

.topbar-center {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  max-width: 420px;
  margin: 0 2rem;
}

.search-box {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
}

.search-box svg {
  position: absolute;
  left: 1rem;
  color: var(--text-dim);
  pointer-events: none;
  transition: var(--transition-fast);
}

.search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.6rem 1rem 0.6rem 2.75rem;
  font-size: 0.875rem;
  transition: var(--transition-smooth);
  color: var(--text-main);
}

.search-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.search-input:focus + svg {
  color: var(--primary);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.system-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0.6rem 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
}

.user-badge:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.825rem;
  color: white;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.1;
}

.user-role {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: capitalize;
}

.btn-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
  transition: var(--transition-fast);
  cursor: pointer;
}

.btn-logout:hover {
  background: #ef4444;
  color: #fff;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

/* ==========================================================
   GLOBAL FORM SYSTEM & INPUT CONTROLS
   ========================================================== */
.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.01em;
}

.form-label span[style*="color: #ef4444"],
.form-label span.req {
  color: #f87171 !important;
  font-weight: bold;
}

.form-control {
  width: 100%;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.925rem;
  font-family: inherit;
  color: #f8fafc;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  display: block;
  outline: none;
}

.form-control::placeholder {
  color: #64748b;
  opacity: 0.8;
}

.form-control:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(15, 23, 42, 0.9);
}

.form-control:focus {
  border-color: #0ea5e9;
  background: #0f172a;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #0f172a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.1em;
  padding-right: 2.75rem;
  cursor: pointer;
  color: #f8fafc;
}

select.form-control option {
  background-color: #0f172a;
  color: #f8fafc;
  padding: 0.6rem;
}

input[type="date"].form-control {
  color-scheme: dark;
}

textarea.form-control {
  min-height: 85px;
  line-height: 1.5;
  resize: vertical;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .form-grid-2, .form-grid-3 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ==========================================================
   BUTTONS (GLOBAL)
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1, #075985);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-hover);
}

.btn-accent {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================
   STAT WIDGETS (GLOBAL)
   ========================================================== */
.stat-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-widget:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
}

.stat-widget-info span {
  font-size: 0.775rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 0.25rem;
}

.stat-widget-info h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.stat-widget-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-blue { background: rgba(14, 165, 233, 0.15); color: #38bdf8; }
.icon-green { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.icon-purple { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }
.icon-amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.icon-red { background: rgba(239, 68, 68, 0.15); color: #f87171; }

/* ==========================================================
   FILTER & ACTION TOOLBAR (GLOBAL)
   ========================================================== */
.table-toolbar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.toolbar-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.search-filter-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  max-width: 650px;
}

.filter-input {
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  color: var(--text-main);
  transition: all 0.2s ease;
  outline: none;
  font-family: inherit;
}

.filter-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.select-filter {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1em;
  padding-right: 2.25rem;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Category & Platform Chips */
.chip {
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-block;
}

.chip:hover {
  color: var(--text-main);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.08);
}

.chip.active {
  background: #0ea5e9;
  color: #fff;
  border-color: #0ea5e9;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.4);
}

/* ==========================================================
   DATA TABLE DESIGN (GLOBAL)
   ========================================================== */
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  margin-bottom: 2rem;
  width: 100%;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

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

.data-table th {
  background: rgba(15, 23, 42, 0.95);
  padding: 0.75rem 0.65rem;
  font-weight: 700;
  font-size: 0.725rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.data-table td {
  padding: 0.75rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
  color: var(--text-main);
  transition: background-color 0.15s ease;
}

.data-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

/* Label & Platform Badges */
.badge-etiket {
  display: inline-block;
  font-family: monospace;
  font-weight: 700;
  font-size: 0.8rem;
  color: #38bdf8;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.35);
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.03em;
}

.badge-platform {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.platform-elden { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.platform-trendyol { background: rgba(249, 115, 22, 0.15); color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.3); }
.platform-n11 { background: rgba(139, 92, 246, 0.15); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.3); }
.platform-hepsiburada { background: rgba(234, 88, 12, 0.15); color: #fdba74; border: 1px solid rgba(234, 88, 12, 0.3); }
.platform-ciceksepeti { background: rgba(236, 72, 153, 0.15); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.3); }
.platform-diger { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.3); }

/* Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* Table Action Buttons */
.table-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.action-btn-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  transition: all 0.15s ease;
  cursor: pointer;
}

.action-btn-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateY(-1px);
}

.action-btn-icon.btn-delete:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

/* ==========================================================
   PAGINATION (GLOBAL)
   ========================================================== */
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: rgba(15, 23, 42, 0.4);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.page-link {
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 600;
  transition: all 0.15s ease;
}

.page-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.page-link.active {
  background: #0ea5e9;
  border-color: #0ea5e9;
  color: #fff;
}

/* ==========================================================
   FORM CARDS (GLOBAL)
   ========================================================== */
.form-card {
  background: rgba(19, 26, 43, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.25rem;
  max-width: 960px;
  margin: 0 auto 3rem;
  box-shadow: var(--shadow-elevated);
}

.form-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.form-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

/* ==========================================================
   BATCH ENTRY TABLE & INPUTS (GLOBAL - TOPLU GİRİŞ)
   ========================================================== */
.batch-table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: rgba(15, 23, 42, 0.7);
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.batch-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.batch-table th {
  background: rgba(15, 23, 42, 0.95);
  padding: 0.85rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.batch-table td {
  padding: 0.45rem 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.batch-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.batch-input {
  width: 100%;
  background: #1e293b !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.55rem 0.7rem !important;
  font-size: 0.825rem !important;
  color: #f8fafc !important;
  outline: none !important;
  transition: all 0.2s ease !important;
  font-family: inherit !important;
  box-sizing: border-box !important;
}

.batch-input::placeholder {
  color: #64748b !important;
}

.batch-input:focus {
  background: #0f172a !important;
  border-color: #0ea5e9 !important;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25) !important;
  color: #ffffff !important;
}

select.batch-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2394a3b8' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.65rem center !important;
  padding-right: 1.75rem !important;
  cursor: pointer;
}

select.batch-input option {
  background: #0f172a;
  color: #f8fafc;
}

input[type="date"].batch-input {
  color-scheme: dark;
}

/* ==========================================================
   SMART PRODUCT AUTOCOMPLETE DROPDOWN (GLOBAL)
   ========================================================== */
.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  background: #0f172a !important;
  border: 1px solid rgba(14, 165, 233, 0.4) !important;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7) !important;
  z-index: 99999;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.autocomplete-item {
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.15s ease;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover {
  background: rgba(14, 165, 233, 0.18) !important;
}

.autocomplete-item-name {
  font-weight: 700;
  color: #f8fafc;
  font-size: 0.875rem;
  line-height: 1.3;
}

.autocomplete-item-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.autocomplete-stock-tag {
  font-size: 0.725rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  white-space: nowrap;
}

.autocomplete-price-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(14, 165, 233, 0.18);
  border: 1px solid rgba(14, 165, 233, 0.35);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  white-space: nowrap;
}

/* ==========================================================
   MODULE FOOTER BAR (GLOBAL)
   ========================================================== */
.module-footer-bar {
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 2rem;
  background: rgba(15, 23, 42, 0.5);
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1600px;
  width: 96%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ==========================================================
   MAIN DASHBOARD WRAPPER
   ========================================================== */
.main-wrapper {
  max-width: 1600px;
  width: 96%;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

/* Welcome Hero Section */
.welcome-hero {
  margin-bottom: 2.5rem;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.75rem;
}

.welcome-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}

.welcome-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.quick-stats-strip {
  display: flex;
  gap: 1.5rem;
}

.quick-stat-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
}

.quick-stat-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.quick-stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ==========================================================
   MODULE GRID (KARELER / CARDS)
   ========================================================== */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-bottom: 3rem;
}

.module-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 270px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-subtle);
  cursor: pointer;
  text-decoration: none;
}

.module-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.module-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.module-card:hover {
  transform: translateY(-7px) scale(1.015);
  box-shadow: var(--shadow-elevated);
}

.module-card:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* Individual Module Theming */
.module-garanti:hover {
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 15px 35px -10px var(--garanti-glow);
}
.module-garanti .module-icon-wrap {
  background: linear-gradient(135deg, var(--garanti-from), var(--garanti-to));
  box-shadow: 0 8px 20px var(--garanti-glow);
}

.module-muhasebe:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 15px 35px -10px var(--muhasebe-glow);
}
.module-muhasebe .module-icon-wrap {
  background: linear-gradient(135deg, var(--muhasebe-from), var(--muhasebe-to));
  box-shadow: 0 8px 20px var(--muhasebe-glow);
}

.module-siparis:hover {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 15px 35px -10px var(--siparis-glow);
}
.module-siparis .module-icon-wrap {
  background: linear-gradient(135deg, var(--siparis-from), var(--siparis-to));
  box-shadow: 0 8px 20px var(--siparis-glow);
}

.module-stok:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 15px 35px -10px var(--stok-glow);
}
.module-stok .module-icon-wrap {
  background: linear-gradient(135deg, var(--stok-from), var(--stok-to));
  box-shadow: 0 8px 20px var(--stok-glow);
}

/* Card Header */
.module-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.module-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: transform 0.3s ease;
}

.module-card:hover .module-icon-wrap {
  transform: scale(1.08) rotate(3deg);
}

.module-badge {
  font-size: 0.725rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* Card Body */
.module-body {
  margin-bottom: 1.5rem;
}

.module-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.module-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Card Footer */
.module-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.module-count {
  display: flex;
  flex-direction: column;
}

.count-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.count-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.module-action-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.module-card:hover .module-action-btn {
  background: var(--text-main);
  color: var(--bg-main);
  border-color: transparent;
}

.module-action-btn svg {
  transition: transform 0.2s ease;
}

.module-card:hover .module-action-btn svg {
  transform: translateX(4px);
}

/* ==========================================================
   ALERT & FLASH MESSAGES
   ========================================================== */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
  animation: slideDown 0.3s ease;
}

.alert-success {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.alert-info {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.3);
  color: #38bdf8;
}

/* ==========================================================
   QUICK OVERVIEW & SYSTEM INFO CARDS
   ========================================================== */
.info-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

.info-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-subtle);
}

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

.panel-title {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
}

.activity-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

.activity-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.active { background: #10b981; box-shadow: 0 0 8px #10b981; }
.status-dot.pending { background: #f59e0b; }

.sys-info-item {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.825rem;
}

.sys-info-item:last-child {
  border-bottom: none;
}

.sys-label {
  color: var(--text-dim);
}

.sys-value {
  font-weight: 600;
  color: var(--text-muted);
}

/* Animations */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* Responsive */
@media (max-width: 900px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
  .welcome-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .topbar-center {
    display: none;
  }
  .topbar {
    padding: 1rem;
  }
}
