/* ============================================================
   K-DESIGN Stok Yönetim Sistemi - Tüm Stiller
   ============================================================ */

/* ===== CSS VARIABLES ===== */
:root {
  --primary: #b58d3d;
  --primary-dark: #9a7630;
  --primary-light: #e5c158;
  --bg-dark: #0f0f1a;
  --bg-darker: #0a0a14;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --bg-sidebar: #12121f;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --text-muted: #6b6b7b;
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.12);
  --success: #22c55e;
  --success-dark: #16a34a;
  --danger: #ef4444;
  --danger-dark: #dc2626;
  --warning: #f59e0b;
  --warning-dark: #d97706;
  --info: #3b82f6;
  --info-dark: #2563eb;
  --sidebar-width: 260px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
  --glow-primary: 0 0 20px rgba(181, 141, 61, 0.3);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Selection */
::selection {
  background: var(--primary);
  color: white;
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
}

/* ============================================================
   LOGIN SAYFASI
   ============================================================ */
#login-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
  background: #050508;
  overflow: hidden;
}

#login-section::before {
  content: '';
  position: absolute;
  width: 150vw;
  height: 150vw;
  background: radial-gradient(circle, rgba(181, 141, 61, 0.08) 0%, rgba(0,0,0,0) 60%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulseBg 10s ease-in-out infinite alternate;
}

@keyframes pulseBg {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.login-bg-decoration {
  display: none;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: rgba(20, 20, 25, 0.6);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(181, 141, 61, 0.2);
  border-radius: 24px;
  padding: 50px 40px;
  position: relative;
  z-index: 10;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFade {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

.login-logo {
  text-align: center;
  margin-bottom: 36px;
}

.sidebar-logo-icon {
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  padding: 6px 12px;
  border-radius: 8px;
}

.login-logo-icon {
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  padding: 12px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.login-title {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 4px;
  background: linear-gradient(135deg, #e5c158, #b58d3d, #9a7630);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.login-subtitle {
  font-size: 0.95rem;
  color: #8b8b9e;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.login-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 16px;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  opacity: 0.9;
  z-index: 10;
  transition: var(--transition);
}

.password-toggle:hover {
  opacity: 1;
  color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

/* ============================================================
   FORM ELEMANLARI
   ============================================================ */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.form-input, .form-select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

/* Tarayıcı Autofill (Otomatik Doldurma) Beyaz Kutu Sorununu Çözme */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #0f0f1a inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    transition: background-color 5000s ease-in-out 0s;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus, .form-select:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(181, 141, 61, 0.15), inset 0 2px 4px rgba(0,0,0,0.2);
}

.form-input-lg, .form-select-lg {
  padding: 16px 20px;
  font-size: 1.15rem;
  font-weight: 500;
}

.form-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a0a0b0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.form-select option {
  background: #1a1a2e;
  color: var(--text-primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
}

textarea.form-input {
  min-height: 80px;
  resize: vertical;
}

/* ============================================================
   BUTONLAR
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.4;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 2px 10px rgba(181, 141, 61, 0.25);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(181, 141, 61, 0.35);
}

.btn-success {
  background: linear-gradient(135deg, var(--success), var(--success-dark));
  color: white;
  box-shadow: 0 2px 10px rgba(34, 197, 94, 0.25);
}

.btn-success:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.35);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), var(--danger-dark));
  color: white;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
}

.btn-warning {
  background: linear-gradient(135deg, var(--warning), var(--warning-dark));
  color: #1a1a2e;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.25);
}

.btn-warning:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.btn-info {
  background: linear-gradient(135deg, var(--info), var(--info-dark));
  color: white;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.btn-outline:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 16px 28px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  padding: 8px;
  min-width: 36px;
  min-height: 36px;
}

.btn-text { display: inline; }
.btn-spinner { display: none; }
.btn.loading .btn-text { display: none; }
.btn.loading .btn-spinner { display: inline; }

/* QR Scan Button */
.btn-qr-scan {
  background: linear-gradient(135deg, #2d2d4a, #1e1e35);
  border: 2px dashed var(--primary);
  color: var(--primary-light);
  padding: 24px;
  font-size: 1.1rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.btn-qr-scan:hover {
  background: linear-gradient(135deg, #353560, #252545);
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--glow-primary);
}

.qr-scan-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
}

.qr-scan-text {
  display: block;
  font-weight: 600;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo-icon {
  flex-shrink: 0;
}

.sidebar-logo-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-logo-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: 4px;
  position: relative;
  cursor: pointer;
}

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

.nav-item.active {
  background: rgba(181, 141, 61, 0.12);
  color: var(--primary-light);
  border-left: 3px solid var(--primary);
  padding-left: 13px;
}

.nav-item.hidden {
  display: none;
}

.nav-icon {
  font-size: 1.15rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.sidebar-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.sidebar-user-name {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.sidebar-user-role {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Sidebar Toggle Button (Mobil) */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 200;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(18, 18, 31, 0.95);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.sidebar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.sidebar-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.sidebar-toggle.active span:nth-child(2) {
  opacity: 0;
}

.sidebar-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 90;
  backdrop-filter: blur(4px);
}

.sidebar-overlay.active {
  display: block;
}

/* ============================================================
   İÇERİK ALANI
   ============================================================ */
.content {
  margin-left: var(--sidebar-width);
  padding: 32px;
  min-height: 100vh;
}

.page {
  display: none;
  animation: fadeIn 0.3s ease;
}

.page.active {
  display: block;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.page-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
}

.page-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================================
   KARTLAR
   ============================================================ */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-light);
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
}

/* ============================================================
   İSTATİSTİK KARTLARI
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--border-light);
}

.stat-card-danger {
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.05);
}

.stat-card-danger:hover {
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 4px 24px rgba(239, 68, 68, 0.15);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-icon-primary { background: rgba(181, 141, 61, 0.15); }
.stat-icon-success { background: rgba(34, 197, 94, 0.15); }
.stat-icon-info { background: rgba(59, 130, 246, 0.15); }
.stat-icon-danger { background: rgba(239, 68, 68, 0.15); }
.stat-icon-warning { background: rgba(245, 158, 11, 0.15); }

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.stat-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.1;
}

/* ============================================================
   GRAFİKLER
   ============================================================ */
.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.chart-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.chart-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.chart-container {
  position: relative;
  height: 280px;
}

/* ============================================================
   TABLOLAR
   ============================================================ */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.table thead th {
  padding: 14px 18px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.table tbody td {
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

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

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

.table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

.table tbody tr:nth-child(even):hover {
  background: rgba(255, 255, 255, 0.04);
}

.table-empty {
  text-align: center !important;
  padding: 40px 20px !important;
  color: var(--text-muted) !important;
  font-style: italic;
}

.table-actions {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
}

/* Reversed row (geri alınan işlem) */
.table tbody tr.row-reversed td {
  opacity: 0.5;
  text-decoration: line-through;
}

/* ============================================================
   BADGE'LER
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-success {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.badge-info {
  background: rgba(59, 130, 246, 0.15);
  color: var(--info);
}

.badge-muted {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

/* Pulse animasyonu (kritik stok) */
.badge-danger.pulse {
  animation: pulse 2s infinite;
}

/* ============================================================
   FİLTRELER
   ============================================================ */
.filters-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.filters-bar-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.filter-group {
  flex: 1;
  min-width: 160px;
}

.filter-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.filter-actions {
  display: flex;
  gap: 8px;
  flex: none;
  min-width: auto;
  align-items: flex-end;
  padding-bottom: 0;
}

/* ============================================================
   MODALLER
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: #1a1a2e;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: scaleIn 0.3s ease;
}

.modal-sm {
  max-width: 420px;
}

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

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
}

.modal-body-center {
  text-align: center;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-footer-center {
  justify-content: center;
}

/* Onay Modal */
.confirm-message {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  text-align: center;
  padding: 12px 0;
}

/* ============================================================
   STOK FORM ALANI
   ============================================================ */
.stock-form-layout {
  max-width: 560px;
}

.stock-form-card {
  padding: 28px;
}

.product-info-card {
  background: rgba(181, 141, 61, 0.08);
  border: 1px solid rgba(181, 141, 61, 0.2);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 20px;
  animation: fadeIn 0.3s ease;
}

.product-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.product-info-row + .product-info-row {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.product-info-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.product-info-value {
  font-weight: 600;
  color: var(--text-primary);
}

.product-info-stock {
  font-size: 1.2rem;
  color: var(--primary-light);
}

/* Miktar Kontrol */
.quantity-control {
  display: flex;
  align-items: center;
  gap: 0;
}

.quantity-btn {
  width: 56px;
  height: 56px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.quantity-minus {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  border-right: none;
}

.quantity-plus {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  border-left: none;
}

.quantity-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.quantity-input {
  border-radius: 0;
  text-align: center;
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  width: 120px;
  -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Stock Divider */
.stock-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  gap: 16px;
}

.stock-divider::before,
.stock-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.stock-divider span {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

/* ============================================================
   QR KOD
   ============================================================ */
.qr-reader-wrapper {
  margin-bottom: 20px;
  animation: fadeIn 0.3s ease;
  text-align: center;
}

.qr-reader {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--primary);
  animation: qrPulse 2s infinite;
}

@keyframes qrPulse {
  0%, 100% { border-color: var(--primary); box-shadow: 0 0 0 0 rgba(181, 141, 61, 0.3); }
  50% { border-color: var(--primary-light); box-shadow: 0 0 20px 4px rgba(181, 141, 61, 0.15); }
}

.qr-preview {
  margin-top: 16px;
  text-align: center;
}

.qr-preview label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.qr-preview-image {
  background: white;
  border-radius: var(--radius-sm);
  padding: 16px;
  display: inline-block;
  margin-bottom: 12px;
}

.qr-preview-image img {
  width: 150px;
  height: 150px;
}

.qr-display {
  margin-bottom: 16px;
}

.qr-display-img {
  width: 220px;
  height: 220px;
  background: white;
  padding: 16px;
  border-radius: var(--radius);
}

.qr-product-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.qr-product-code {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ============================================================
   ALERT/BİLDİRİMLER
   ============================================================ */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-top: 16px;
  animation: fadeIn 0.3s ease;
}

.alert-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: var(--success);
}

.alert-danger {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: var(--danger);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--warning);
}

/* ============================================================
   TOAST BİLDİRİMLERİ
   ============================================================ */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: #1e1e35;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  min-width: 300px;
  max-width: 420px;
  pointer-events: all;
  animation: slideInRight 0.3s ease;
  transition: var(--transition);
}

.toast.removing {
  animation: slideOutRight 0.3s ease forwards;
}

.toast-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.toast-message {
  flex: 1;
  font-size: 0.88rem;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  transition: color 0.2s;
}

.toast-close:hover {
  color: var(--text-primary);
}

.toast-success {
  border-left: 3px solid var(--success);
}

.toast-danger {
  border-left: 3px solid var(--danger);
}

.toast-warning {
  border-left: 3px solid var(--warning);
}

.toast-info {
  border-left: 3px solid var(--info);
}

/* ============================================================
   KRİTİK STOK UYARILARI
   ============================================================ */
.critical-list {
  padding: 16px 24px;
}

.critical-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  transition: var(--transition);
}

.critical-item:hover {
  background: rgba(239, 68, 68, 0.1);
}

.critical-item:last-child {
  margin-bottom: 0;
}

.critical-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.critical-item-icon {
  font-size: 1.2rem;
  animation: pulse 2s infinite;
}

.critical-item-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.critical-item-code {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.critical-item-stock {
  font-weight: 700;
  color: var(--danger);
  font-size: 1.1rem;
}

/* ============================================================
   SAYFALAMA
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
}

.pagination-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.pagination-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
  color: var(--primary);
}

.pagination-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ============================================================
   LOADING
   ============================================================ */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 26, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   ANİMASYONLAR
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOutRight {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(100%); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ============================================================
   RESPONSİVE - TABLET (768px)
   ============================================================ */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-toggle {
    display: flex;
  }

  .content {
    margin-left: 0;
    padding: 20px;
    padding-top: 72px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .charts-grid {
    grid-template-columns: 1fr;
  }

  .page-header {
    flex-direction: column;
    gap: 12px;
  }

  .page-header .btn {
    width: 100%;
  }

  .filters-bar {
    flex-direction: column;
    gap: 12px;
  }

  .filter-group {
    min-width: 100%;
  }

  .filter-actions {
    flex-direction: row;
    width: 100%;
  }

  .filter-actions .btn {
    flex: 1;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .modal {
    max-width: 100%;
    margin: 10px;
    max-height: 95vh;
  }

  .login-card {
    padding: 32px 24px;
  }

  .toast {
    min-width: auto;
    max-width: calc(100vw - 40px);
  }

  .toast-container {
    right: 10px;
    left: 10px;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .stat-value {
    font-size: 1.4rem;
  }

  .stock-form-layout {
    max-width: 100%;
  }

  /* Tablo responsive */
  .table thead th,
  .table tbody td {
    padding: 10px 12px;
    font-size: 0.82rem;
  }
}

/* ============================================================
   RESPONSİVE - TELEFON (480px)
   ============================================================ */
@media (max-width: 480px) {
  .content {
    padding: 14px;
    padding-top: 68px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stat-card {
    padding: 14px;
  }

  .stat-value {
    font-size: 1.3rem;
  }

  .page-title {
    font-size: 1.3rem;
  }

  .chart-container {
    height: 220px;
  }

  .login-title {
    font-size: 1.6rem;
  }

  .btn-lg {
    padding: 14px 20px;
    font-size: 1rem;
  }

  .quantity-btn {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }

  .quantity-input {
    width: 90px;
    font-size: 1.2rem !important;
  }

  .btn-qr-scan {
    padding: 20px;
  }

  .qr-scan-icon {
    font-size: 1.6rem;
  }

  .modal-body {
    padding: 16px;
  }

  .modal-footer {
    padding: 12px 16px;
    flex-direction: column-reverse;
  }

  .modal-footer .btn {
    width: 100%;
  }
}

/* ============================================================
   YAZDIRMA
   ============================================================ */
@media print {
  body {
    background: white;
    color: black;
  }

  .sidebar,
  .sidebar-toggle,
  .sidebar-overlay,
  .toast-container,
  .btn,
  .filters-bar,
  .page-header .btn,
  #logout-btn {
    display: none !important;
  }

  .content {
    margin-left: 0 !important;
    padding: 0 !important;
  }

  .card {
    background: white;
    border: 1px solid #ddd;
    box-shadow: none;
    backdrop-filter: none;
  }

  .table thead th {
    background: #f5f5f5;
    color: #333;
  }

  .table tbody td {
    color: #333;
    border-color: #ddd;
  }

  .stat-card {
    border: 1px solid #ddd;
    background: white;
  }

  .page-title {
    color: #333;
  }

  /* QR Yazdırma */
  .qr-print-container {
    text-align: center;
    padding: 20px;
  }

  .qr-print-container img {
    width: 200px;
    height: 200px;
  }
}
