:root {
  /* Renk Paleti - Lüks Peyzaj & Mimari Zümrüt */
  --bg-main: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-sidebar: #ffffff;
  --bg-input: #ffffff;
  --bg-hover: #f1f5f9;
  
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --border-focus: #059669;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  /* Zümrüt & Orman Yeşili */
  --primary: #059669;
  --primary-gradient: linear-gradient(135deg, #059669 0%, #047857 100%);
  --primary-hover: #047857;
  --primary-light: #ecfdf5;
  --primary-text: #065f46;

  --success: #10b981;
  --success-light: #ecfdf5;
  --success-text: #047857;

  --danger: #ef4444;
  --danger-light: #fef2f2;
  --danger-text: #b91c1c;

  --warning: #f59e0b;
  --warning-light: #fffbeb;
  --warning-text: #b45309;

  --purple: #8b5cf6;
  --purple-light: #f5f3ff;
  --purple-text: #6d28d9;

  --gold: #d97706;
  --gold-light: #fef3c7;

  /* Modern Çok Katmanlı Gölgeler */
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 14px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 24px 48px -12px rgba(15, 23, 42, 0.16);
  --shadow-glow: 0 4px 18px rgba(5, 150, 105, 0.28);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 0% 0%, rgba(5, 150, 105, 0.03) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(217, 119, 6, 0.02) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Layout */
.app-container {
  display: flex;
  width: 100vw;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 2px 0 16px rgba(15, 23, 42, 0.02);
}

.brand {
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}
.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
  border: 2px solid #ecfdf5;
  overflow: hidden;
  background: #ffffff;
  transition: transform 0.25s ease;
}
.brand-icon:hover {
  transform: scale(1.05);
}
.brand-text h1 {
  font-size: 16px;
  font-weight: 800;
  color: #064e3b;
  line-height: 1.15;
  letter-spacing: -0.3px;
}
.brand-text span {
  font-size: 11px;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.nav-menu {
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.nav-item i {
  font-size: 18px;
  width: 22px;
  text-align: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

.nav-item:hover {
  background-color: #f1f5f9;
  color: var(--primary);
  transform: translateX(3px);
}
.nav-item:hover i {
  color: var(--primary);
  transform: scale(1.1);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(5, 150, 105, 0.12) 0%, rgba(5, 150, 105, 0.04) 100%);
  color: var(--primary-text);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--primary);
}
.nav-item.active i {
  color: var(--primary);
}

/* User Box */
.user-box {
  padding: 16px 18px;
  border-top: 1px solid var(--border-color);
  background: linear-gradient(180deg, #fafbfc 0%, #f1f5f9 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
  border: 2px solid #ffffff;
}
.user-details {
  line-height: 1.25;
  overflow: hidden;
}
.user-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-role {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
}
.btn-logout {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  padding: 7px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-logout:hover {
  color: var(--danger);
  border-color: var(--danger);
  background: var(--danger-light);
  transform: scale(1.05);
}

/* Main Content Area */
.main-content {
  margin-left: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: calc(100vw - 260px);
  padding-bottom: 30px;
}

/* Top Header */
.top-header {
  min-height: 74px;
  height: auto;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 32px;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.02);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-secondary);
  cursor: pointer;
}

/* Segment Pill Switcher (Kategori & Sektör) */
.segment-switcher, .sektor-switcher {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: var(--radius-full);
  gap: 4px;
  border: 1px solid var(--border-color);
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.04);
}
.segment-btn, .sektor-btn {
  border: none;
  background: none;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.segment-btn:hover, .sektor-btn:hover {
  color: var(--text-primary);
}
.segment-btn.active, .sektor-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.15), 0 1px 2px rgba(0, 0, 0, 0.06);
}
.segment-badge, .sektor-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 800;
  background: #e2e8f0;
  color: var(--text-secondary);
}
.segment-btn.active .segment-badge, .sektor-btn.active .sektor-badge {
  background: var(--primary-light);
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Page Body */
.page-body {
  padding: 28px 32px;
  flex: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary { 
  background: var(--primary-gradient); 
  color: #fff; 
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}
.btn-primary:hover { 
  background: linear-gradient(135deg, #047857 0%, #065f46 100%); 
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.35); 
  transform: translateY(-1px);
}
.btn-success { 
  background: linear-gradient(135deg, #10b981 0%, #059669 100%); 
  color: #fff; 
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}
.btn-success:hover { 
  background: #059669; 
  transform: translateY(-1px);
}
.btn-danger { 
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); 
  color: #fff; 
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}
.btn-danger:hover { 
  background: #dc2626; 
  transform: translateY(-1px);
}
.btn-outline { 
  background-color: #ffffff; 
  border-color: #cbd5e1; 
  color: var(--text-secondary); 
}
.btn-outline:hover { 
  background-color: #f8fafc; 
  border-color: var(--primary);
  color: var(--primary);
}

/* Bento Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.25s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(5, 150, 105, 0.3);
}
.stat-card:hover::after {
  background: var(--primary-gradient);
}

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stat-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}
.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: transform 0.2s ease;
}
.stat-card:hover .stat-icon {
  transform: scale(1.08);
}
.stat-icon.blue { 
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%); 
  color: #059669; 
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.15);
}
.stat-icon.green { 
  background: linear-gradient(135deg, #ecfdf5 0%, #a7f3d0 100%); 
  color: #047857; 
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}
.stat-icon.red { 
  background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%); 
  color: #dc2626; 
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15);
}
.stat-icon.purple { 
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); 
  color: #b45309; 
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.6px;
}
.stat-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Card Container */
.card {
  background: var(--bg-card);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}
.card:hover {
  box-shadow: var(--shadow-md);
}
.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.card-title {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-title i {
  color: var(--primary);
  font-size: 20px;
}
.card-body {
  padding: 22px 24px;
}

/* Table Responsive */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  background-color: #f8fafc;
  padding: 13px 16px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}
td {
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-primary);
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  transition: background-color 0.15s ease;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background-color: rgba(236, 253, 245, 0.45); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-kurumsal { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-ozel { background: #fdf2f8; color: #be185d; border: 1px solid #fbcfe8; }
.badge-satis { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.badge-alis { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.badge-alacak { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.badge-borc { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.badge-notr { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }

/* ================= MOBILE NATIVE APP VIEW ================= */
.mobile-app-list {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.app-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease;
}
.app-card:active {
  transform: scale(0.99);
}
.app-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-card-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}
.app-card-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}
.app-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px dashed var(--border-color);
  border-bottom: 1px dashed var(--border-color);
}
.app-card-stat label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}
.app-card-stat span {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}
.app-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* MOBILE BOTTOM BAR */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
  z-index: 999;
  justify-content: space-around;
  align-items: center;
  padding: 0 4px;
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  flex: 1;
  height: 100%;
  cursor: pointer;
  transition: all 0.2s;
}
.bottom-nav-item i {
  font-size: 20px;
}
.bottom-nav-item.active {
  color: var(--primary);
}
.bottom-nav-item.action-btn {
  position: relative;
  top: -12px;
  background: var(--primary-gradient);
  color: #ffffff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex: none;
  box-shadow: var(--shadow-glow);
}
.bottom-nav-item.action-btn i {
  font-size: 24px;
}

.modal-mobile-list {
  display: none;
}
.modal-table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-dialog {
  background: #ffffff;
  border-radius: 20px !important;
  -webkit-border-radius: 20px !important;
  overflow: hidden !important;
  isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  width: 100%;
  max-width: 660px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(226, 232, 240, 0.95);
  animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin: auto;
}
.modal-dialog.modal-lg { max-width: 960px; }
.modal-dialog.modal-xl { max-width: 1100px; width: 95%; }
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  background: #ffffff;
  border-top-left-radius: 20px !important;
  border-top-right-radius: 20px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 { font-size: 16.5px; font-weight: 800; color: var(--text-primary); }
.btn-close {
  background: #f1f5f9;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.btn-close:hover {
  background: #fee2e2;
  color: var(--danger);
}
.modal-content { padding: 22px 24px; overflow-y: auto; flex: 1; }
.modal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: #f8fafc;
  border-bottom-left-radius: 20px !important;
  border-bottom-right-radius: 20px !important;
}

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  color: var(--text-primary);
  background: var(--bg-input);
  outline: none;
  transition: all 0.2s ease;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}
.item-kdv {
  min-width: 85px !important;
  text-align: center;
  font-weight: 600;
  padding: 8px 6px !important;
  cursor: pointer;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

/* Radio Cards (Kurumsal vs Özel) */
.radio-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.radio-card {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}
.radio-card:hover {
  border-color: #cbd5e1;
}
.radio-card input { accent-color: var(--primary); transform: scale(1.2); }
.radio-card.selected { 
  border-color: var(--primary); 
  background: var(--primary-light); 
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.1);
}
.radio-card-title { font-weight: 800; font-size: 14px; color: var(--text-primary); }
.radio-card-desc { font-size: 11px; color: var(--text-muted); }

/* Permissions Grid */
.permissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}
.permission-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease;
}
.permission-item:hover {
  border-color: #cbd5e1;
}
.permission-item input { margin-top: 3px; accent-color: var(--primary); transform: scale(1.15); }
.permission-label { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.permission-desc { font-size: 11px; color: var(--text-muted); line-height: 1.3; }

/* Filter Bar in Reports */
.filter-bar {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
  box-shadow: var(--shadow-sm);
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2000;
}
.toast {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 290px;
  animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }

/* ================= LOGIN SCREEN LÜKS PEYZAJ DÖNÜŞÜMÜ ================= */
#loginOverlay {
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: 
    linear-gradient(135deg, rgba(6, 78, 59, 0.82) 0%, rgba(15, 23, 42, 0.88) 100%),
    url('/login_bg.jpg') center/cover no-repeat;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
#loginOverlay .modal-dialog {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.35) !important;
  border-radius: 28px !important;
  -webkit-border-radius: 28px !important;
  overflow: hidden !important;
  isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  margin: auto !important;
  max-width: 420px !important;
  width: 92% !important;
}
#loginOverlay .modal-header {
  background: transparent !important;
  border-top-left-radius: 28px !important;
  border-top-right-radius: 28px !important;
  border-bottom: none !important;
  padding-top: 32px;
}
#loginOverlay .modal-content {
  background: transparent !important;
  border-bottom-left-radius: 28px !important;
  border-bottom-right-radius: 28px !important;
  padding: 10px 24px 24px;
}
#loginOverlay .brand-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.25);
  border: 3px solid #ecfdf5;
  border-radius: 50%;
  overflow: hidden;
}
#loginOverlay .brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
#loginOverlay h2 {
  font-size: 22px !important;
  color: #064e3b !important;
  letter-spacing: -0.5px;
}

/* ================= RESPONSIVE TELEFON TASARIMI (MOBILE FIRST) ================= */
@media (max-width: 768px) {
  body {
    padding-bottom: 64px;
  }

  .sidebar {
    transform: translateX(-100%);
    box-shadow: 2px 0 24px rgba(0,0,0,0.25);
    z-index: 1100;
    width: 280px;
    max-width: 85vw;
    display: flex;
    flex-direction: column;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar .user-box {
    margin-bottom: 70px;
    padding: 14px 16px;
    background: #f1f5f9;
  }
  .sidebar-close-btn {
    display: flex !important;
  }

  .main-content {
    margin-left: 0;
    width: 100vw;
  }

  .mobile-toggle {
    display: block;
  }

  .top-header {
    min-height: 64px;
    height: auto;
    padding: 6px 12px;
  }
  .header-actions {
    display: none !important;
  }
  .header-actions button {
    display: none !important;
  }
  .btn-mobile-logout {
    display: inline-flex !important;
  }

  .segment-switcher, .sektor-switcher {
    padding: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .segment-btn, .sektor-btn {
    padding: 4px 8px;
    font-size: 11px;
    gap: 4px;
  }
  .segment-badge, .sektor-badge {
    display: none;
  }

  .page-body {
    padding: 16px 12px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
  }
  .stat-card {
    padding: 14px;
    gap: 6px;
  }
  .stat-title {
    font-size: 11px;
  }
  .stat-icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  .stat-value {
    font-size: 18px;
  }
  .stat-sub {
    font-size: 10px;
  }

  .modal-table-responsive {
    display: none !important;
  }
  .modal-mobile-list {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    padding: 4px 0;
  }

  .items-table thead {
    display: none;
  }
  .items-table, .items-table tbody, .items-table tr, .items-table td {
    display: block;
    width: 100% !important;
  }
  .items-table tr {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .items-table td {
    padding: 2px 0 !important;
    border-bottom: none !important;
  }

  .table-responsive {
    display: none;
  }
  .mobile-app-list {
    display: flex;
  }

  .card-header {
    padding: 14px 16px;
  }
  .card-body {
    padding: 14px 16px;
  }

  .mobile-bottom-nav {
    display: flex;
  }

  .modal-overlay:not(#loginOverlay) {
    padding: 0;
    align-items: flex-end;
  }
  .modal-dialog:not(#loginOverlay .modal-dialog) {
    max-height: 92vh;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-top-left-radius: 20px !important;
    border-top-right-radius: 20px !important;
    animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
  .modal-content {
    padding: 16px;
  }
  .modal-footer {
    padding: 12px 16px;
  }

  .radio-cards {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .toast-container {
    bottom: 74px;
    right: 12px;
    left: 12px;
  }
  .toast {
    min-width: unset;
    width: 100%;
  }
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(3px);
  z-index: 1050;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.sidebar-backdrop.active {
  display: block;
  opacity: 1;
}
