/* ==============================================
   ATLAS POLİÇE TAKİP — Kurumsal Minimalizm Teması
   Renkler: Beyaz, Gri Tonları, Kurumsal Mavi #0f4c81
   Tipografi: Inter (Google Fonts)
   ============================================== */

/* ========== CSS CUSTOM PROPERTIES ========== */
:root {
  color-scheme: light;

  /* Ana Renkler */
  --primary-color: #0f4c81;
  --primary-light: #1a6bb5;
  --primary-dark: #0a3560;
  --primary-bg: #e8f0f8;

  /* Durum Renkleri */
  --success-color: #2e7d51;
  --success-bg: #e6f4ec;
  --warning-color: #c07d1a;
  --warning-bg: #fef5e7;
  --danger-color: #c0392b;
  --danger-bg: #fce8e6;
  --info-color: #2980b9;
  --info-bg: #e8f4fd;

  /* Nötr Renkler */
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;

  /* Layout */
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 0px;
  --header-height: 64px;

  /* Tipografi */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Gölgeler */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.1);

  /* Kenar Yuvarlaklığı */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Geçiş */
  --transition: all 0.2s ease;
}

/* ========== GENEL RESET ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--gray-100);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-light);
}

/* ========== APP WRAPPER ========== */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

.app-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}

/* ========== SIDEBAR ========== */
.app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--white);
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  z-index: 1040;
  transition: transform 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Sidebar Scrollbar */
.app-sidebar::-webkit-scrollbar {
  width: 4px;
}

.app-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.app-sidebar::-webkit-scrollbar-thumb {
  background-color: var(--gray-300);
  border-radius: 4px;
}

/* Logo / Brand */
.sidebar-brand {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200);
  flex-shrink: 0;
}

.sidebar-brand a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
}

.sidebar-brand a:hover {
  color: var(--primary-color);
}

.brand-icon {
  font-size: 24px;
  color: var(--primary-color);
}

.brand-text {
  font-weight: 300;
  letter-spacing: -0.3px;
}

.brand-text strong {
  font-weight: 700;
}

/* Navigation */
.sidebar-nav {
  flex: 1;
  padding: 12px 0;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin: 2px 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--gray-700);
  font-size: 13.5px;
  font-weight: 450;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.nav-link:hover {
  background-color: var(--gray-100);
  color: var(--primary-color);
}

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

.nav-link.active .nav-icon {
  color: var(--primary-color);
}

.nav-icon {
  width: 20px;
  text-align: center;
  font-size: 15px;
  color: var(--gray-500);
  flex-shrink: 0;
  transition: var(--transition);
}

.nav-text {
  flex: 1;
}

.nav-arrow {
  font-size: 10px;
  color: var(--gray-400);
  transition: transform 0.2s ease;
}

/* Highlight Button (Hızlı Poliçe Ekle) */
.nav-link-highlight {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--white) !important;
  font-weight: 600;
  margin-top: 4px;
  margin-bottom: 4px;
}

.nav-link-highlight .nav-icon {
  color: rgba(255, 255, 255, 0.85) !important;
}

.nav-link-highlight:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 76, 129, 0.3);
}

.nav-link-highlight.active {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  color: var(--white) !important;
}

/* Submenu */
.has-submenu .nav-link-toggle.active .nav-arrow {
  transform: rotate(180deg);
}

.submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.submenu.open {
  max-height: 200px;
}

.submenu li {
  margin: 0;
}

.submenu .nav-link {
  padding: 8px 14px 8px 46px;
  font-size: 13px;
  color: var(--gray-600);
}

.submenu .nav-link:hover {
  color: var(--primary-color);
}

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

/* Divider */
.nav-divider {
  height: 1px;
  background-color: var(--gray-200);
  margin: 8px 16px;
}

/* Sidebar Footer — User */
.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--gray-200);
  flex-shrink: 0;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  font-size: 32px;
  color: var(--gray-400);
  line-height: 1;
}

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

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
}

.user-role {
  font-size: 11px;
  color: var(--gray-500);
}

/* ========== HEADER ========== */
.app-header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1030;
  flex-shrink: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.page-title {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  color: var(--gray-800);
}

.sidebar-toggle {
  color: var(--gray-600);
  font-size: 18px;
  padding: 6px;
}

/* Header Search */
.header-search .input-group {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--gray-50);
  transition: var(--transition);
}

.header-search .input-group:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.1);
  background: var(--white);
}

.header-search .input-group-text {
  background: transparent;
  border: none;
  color: var(--gray-400);
  padding: 6px 10px 6px 14px;
}

.header-search .form-control {
  border: none;
  background: transparent;
  font-size: 13px;
  padding: 8px 14px 8px 4px;
  box-shadow: none;
  min-width: 220px;
}

.header-search .form-control::placeholder {
  color: var(--gray-400);
}

/* Header Buttons */
.btn-icon {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--gray-600);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon:hover {
  background-color: var(--gray-100);
  color: var(--primary-color);
}

.notification-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  background-color: var(--danger-color);
  color: var(--white);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Notifications Dropdown */
.notification-dropdown {
  width: 320px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.notification-dropdown .dropdown-header {
  padding: 12px 16px;
}

.notification-item {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 16px !important;
}

.notification-item i {
  margin-top: 2px;
}

.notification-text {
  font-size: 13px;
  display: block;
}

/* User Button */
.user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
  padding: 4px 12px;
}

.user-avatar-sm {
  font-size: 24px;
  color: var(--gray-400);
  line-height: 1;
}

.user-name-header {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
}

/* ========== MAIN CONTENT ========== */
.app-content {
  padding: 24px;
  flex: 1;
}

/* ========== CARDS ========== */
.card-custom {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-custom .card-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 16px 20px;
  font-weight: 600;
}

.card-custom .card-body {
  padding: 20px;
}

.card-custom .card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
}

/* ========== STAT CARDS ========== */
.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-card-body {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.stat-card-primary .stat-icon {
  background-color: var(--primary-bg);
  color: var(--primary-color);
}

.stat-card-warning .stat-icon {
  background-color: var(--warning-bg);
  color: var(--warning-color);
}

.stat-card-success .stat-icon {
  background-color: var(--success-bg);
  color: var(--success-color);
}

.stat-card-info .stat-icon {
  background-color: var(--info-bg);
  color: var(--info-color);
}

.stat-info {
  flex: 1;
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--gray-800);
  margin: 2px 0 0;
  line-height: 1.2;
}

.stat-card-footer {
  padding: 10px 20px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}

.stat-card-footer a {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
}

.stat-card-footer a:hover {
  color: var(--primary-color);
}

/* ========== EMPTY STATE ========== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
}

.empty-icon {
  font-size: 48px;
  color: var(--gray-300);
  margin-bottom: 16px;
}

.empty-text {
  color: var(--gray-500);
  font-size: 15px;
  margin-bottom: 16px;
}

/* ========== QUICK ACTIONS ========== */
.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.quick-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 12px;
  text-decoration: none;
  color: var(--gray-700);
  border-right: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
}

.quick-action-item:nth-child(2n) {
  border-right: none;
}

.quick-action-item:nth-last-child(-n+2) {
  border-bottom: none;
}

.quick-action-item:hover {
  background-color: var(--primary-bg);
  color: var(--primary-color);
}

.quick-action-item i {
  font-size: 22px;
  color: var(--primary-color);
}

.quick-action-item span {
  font-size: 12px;
  font-weight: 500;
}

/* ========== WELCOME BANNER ========== */
.welcome-banner {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}

.welcome-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-800);
  margin: 0 0 4px;
}

.welcome-text {
  font-size: 14px;
}

.welcome-date {
  font-size: 13px;
  color: var(--gray-500);
}

/* ========== BUTTONS ========== */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 13px;
  padding: 8px 16px;
}

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

.btn-primary:focus,
.btn-primary:active {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.15);
}

/* ========== TABLES ========== */
.table {
  font-size: 13px;
}

.table thead th {
  background-color: var(--gray-50);
  border-bottom: 2px solid var(--gray-200);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-600);
  padding: 12px 16px;
}

.table tbody td {
  padding: 12px 16px;
  vertical-align: middle;
  border-color: var(--gray-200);
}

.table tbody tr:hover {
  background-color: var(--gray-50);
}

/* ========== BADGES ========== */
.badge-status {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.badge-active {
  background-color: var(--success-bg);
  color: var(--success-color);
}

.badge-expired {
  background-color: var(--danger-bg);
  color: var(--danger-color);
}

.badge-pending {
  background-color: var(--warning-bg);
  color: var(--warning-color);
}

/* ========== FLASH MESSAGES ========== */
.alert-flash {
  border-radius: var(--radius-md);
  border: none;
  font-size: 13px;
  font-weight: 500;
}

/* ========== SIDEBAR OVERLAY (mobile) ========== */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1035;
  transition: opacity 0.3s ease;
}

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

/* ========== RESPONSIVE ========== */
@media (max-width: 991.98px) {
  .app-sidebar {
    transform: translateX(-100%);
  }

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

  .app-main {
    margin-left: 0;
  }

  .app-content {
    padding: 16px;
  }

  .header-search .form-control {
    min-width: 160px;
  }
}

@media (max-width: 575.98px) {
  .stat-card-body {
    padding: 14px;
  }

  .stat-value {
    font-size: 22px;
  }

  .welcome-banner {
    padding: 16px;
  }

  .welcome-title {
    font-size: 17px;
  }

  .app-content {
    padding: 12px;
  }
}

/* ========== HTMX LOADİNG ANİMASYONU ========== */
.htmx-indicator {
  display: none;
}

.htmx-request .htmx-indicator {
  display: inline-block;
}

.htmx-request.htmx-indicator {
  display: inline-block;
}

/* İçerik yüklenirken yumuşak geçiş */
#main-content {
  transition: opacity 0.15s ease;
}

.htmx-swapping #main-content {
  opacity: 0.5;
}

/* ========== SCROLLBAR GENEL ========== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background-color: var(--gray-300);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--gray-400);
}

/* ========== POLICY WIZARD ========== */
.page-policy-wizard .wizard-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-800);
}

.wizard-step-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wizard-block .card-header {
  background: var(--gray-50);
}

/* Search Results */
.search-result {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
}

.search-result-found {
  background-color: var(--success-bg);
  border-color: rgba(46, 125, 81, 0.2);
}

.search-result-new {
  background-color: var(--warning-bg);
  border-color: rgba(192, 125, 26, 0.2);
}

.search-result-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

/* Slide-down animation */
.animate-slide-down {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* HTMX Spinner for search inputs */
.htmx-request .spinner-border {
  display: inline-block !important;
}

/* Form labels in wizard */
.page-policy-wizard .form-label {
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--gray-700);
}

/* Readonly fields styling */
.page-policy-wizard input[readonly] {
  background-color: var(--gray-50);
  border-color: var(--gray-200);
  color: var(--gray-700);
  cursor: default;
}

/* Uppercase plate input */
.text-uppercase {
  text-transform: uppercase;
}

/* Submit button */
.page-policy-wizard .btn-lg {
  font-size: 15px;
  padding: 10px 28px;
}

/* ========== LISTING PAGES ========== */
.listing-toolbar h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-800);
}

.listing-search {
  min-width: 280px;
}

.listing-search .form-control {
  font-size: 13px;
}

.listing-search .input-group-text {
  background: var(--gray-50);
  border-right: none;
  color: var(--gray-400);
}

.listing-search .form-control {
  border-left: none;
}

.listing-search .form-control:focus {
  box-shadow: none;
  border-color: var(--primary-color);
}

/* Plate Badge */
.plate-badge {
  display: inline-block;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  padding: 2px 8px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-800);
  letter-spacing: 0.5px;
}

/* Branch Type Badge */
.badge-branch {
  background-color: var(--info-bg);
  color: var(--info-color);
  font-weight: 500;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-action {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  padding: 0;
  font-size: 13px;
  transition: var(--transition);
}

.btn-whatsapp {
  background-color: #e8f5e9;
  color: #25d366;
  border: 1px solid #c8e6c9;
}

.btn-whatsapp:hover {
  background-color: #25d366;
  color: #fff;
  border-color: #25d366;
}

.btn-delete {
  background-color: var(--danger-bg);
  color: var(--danger-color);
  border: 1px solid rgba(220, 53, 69, 0.2);
}

.btn-delete:hover {
  background-color: var(--danger-color);
  color: #fff;
  border-color: var(--danger-color);
}

/* Empty State Small */
.empty-state-sm {
  padding: 12px;
}

/* Pagination */
.pagination .page-link {
/* Sayfalama Stilleri */
.pagination {
  margin-bottom: 0;
  gap: 3px; /* Butonlar arası boşluk */
}

.page-item .page-link {
  color: #0f4c81;
  border-radius: 4px;
  border: 1px solid #dee2e6;
  margin: 0 1px;
  min-width: 32px;
  text-align: center;
}

.page-item.active .page-link {
  background-color: #007bff !important;
  color: white !important;
  border-color: #007bff !important;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0,123,255,0.25);
}

.page-item.disabled .page-link {
  background-color: #f8f9fa;
  color: #6c757d;
}

  background-color: #e9ecef;
  color: #0d3d66;
}

.pagination .page-item.disabled .page-link {
  color: var(--gray-400);
}

/* Table row fade out on HTMX delete */
tr.htmx-swapping {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Responsive listing search */
@media (max-width: 767.98px) {
  .listing-search {
    min-width: 100%;
  }
  .listing-toolbar .d-flex {
    flex-direction: column;
    align-items: stretch !important;
  }
}

/* ========== DEMO BANNER ========== */
.demo-banner {
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid transparent;
  font-size: 0.875rem;
}

.demo-banner-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.demo-banner-icon { font-size: 1.1rem; flex-shrink: 0; }
.demo-banner-text { flex: 1; min-width: 200px; }
.demo-banner-text strong { margin-right: 0.5rem; }
.demo-banner-date { font-size: 0.8rem; opacity: 0.85; white-space: nowrap; }

.demo-banner-info {
  background: var(--info-bg);
  color: var(--info-color);
  border-bottom-color: rgba(41, 128, 185, 0.2);
}

.demo-banner-warning {
  background: var(--warning-bg);
  color: var(--warning-color);
  border-bottom-color: rgba(192, 125, 26, 0.25);
}

.demo-banner-critical {
  background: var(--danger-bg);
  color: var(--danger-color);
  border-bottom-color: rgba(192, 57, 43, 0.25);
}

.demo-banner-critical .demo-banner-icon {
  animation: demoPulse 1.5s ease-in-out infinite;
}

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

/* ========== ADMIN MODAL (Kurumsal) ========== */
.admin-modal .modal-content {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.admin-modal .modal-header {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem 1.5rem;
}

.admin-modal .modal-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gray-800);
}

.admin-modal .modal-body {
  padding: 1.25rem 1.5rem;
}

.admin-modal .modal-footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: 0.875rem 1.5rem;
}

.admin-modal .form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.35rem;
}

.admin-modal .form-control {
  border-color: var(--gray-300);
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
}

.admin-modal .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.12);
}

.admin-modal .form-text {
  font-size: 0.75rem;
  color: var(--gray-600);
  margin-top: 0.35rem;
}

.admin-modal-section {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.admin-modal-demo-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1rem 1.125rem;
}

.admin-modal-demo-box.is-active {
  background: var(--info-bg);
  border-color: rgba(41, 128, 185, 0.25);
}

.admin-modal-demo-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-modal-demo-toggle .toggle-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
}

.admin-modal-demo-toggle .toggle-desc {
  font-size: 0.75rem;
  color: var(--gray-600);
  margin-top: 0.15rem;
}

.demo-duration-pills {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.demo-duration-pills input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.demo-duration-pills label {
  flex: 1;
  text-align: center;
  padding: 0.5rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-700);
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
  margin: 0;
}

.demo-duration-pills input:checked + label {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

.demo-duration-pills label:hover {
  border-color: var(--primary-light);
}

.admin-modal-info-note {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-top: 0.75rem;
  padding: 0.625rem 0.75rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  font-size: 0.75rem;
  color: var(--gray-600);
  line-height: 1.45;
}

.admin-modal-info-note i {
  color: var(--info-color);
  margin-top: 0.1rem;
  flex-shrink: 0;
}

/* ========== LOGIN PAGE (Kurumsal) ========== */
.login-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-family);
  background: var(--gray-100);
  color: var(--gray-800);
}

.login-shell {
  display: flex;
  min-height: 100vh;
}

.login-brand-panel {
  flex: 1;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary-color) 45%, var(--primary-light) 100%);
  color: var(--white);
}

@media (min-width: 992px) {
  .login-brand-panel {
    display: flex;
    max-width: 480px;
  }
}

.login-brand-inner {
  max-width: 360px;
}

.login-brand-logo {
  margin-bottom: 1.5rem;
}

.login-logo-img {
  max-width: 200px;
  height: auto;
  filter: brightness(0) invert(1);
}

.login-logo-fallback {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.15);
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.login-brand-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.login-brand-tagline {
  font-size: 0.9375rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.login-brand-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.login-brand-features li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  padding: 0.5rem 0;
  opacity: 0.95;
}

.login-brand-features i {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 0.625rem;
}

.login-brand-copy {
  font-size: 0.75rem;
  opacity: 0.65;
  margin: 0;
}

.login-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: var(--gray-50);
}

.login-form-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem 2rem 1.75rem;
}

.login-form-header {
  margin-bottom: 1.75rem;
}

.login-form-header h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.35rem;
}

.login-form-header p {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin: 0;
}

.login-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  background: var(--danger-bg);
  border: 1px solid rgba(192, 57, 43, 0.2);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  color: var(--danger-color);
  line-height: 1.45;
}

.login-alert i {
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.login-field {
  margin-bottom: 1.125rem;
}

.login-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.4rem;
}

.login-input-wrap {
  position: relative;
}

.login-input-wrap > i {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  font-size: 0.875rem;
  pointer-events: none;
}

.login-input-wrap input {
  width: 100%;
  padding: 0.625rem 0.875rem 0.625rem 2.5rem;
  font-size: 0.875rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--gray-900);
  transition: var(--transition);
}

.login-input-wrap input::placeholder {
  color: var(--gray-400);
}

.login-input-wrap input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.12);
}

.login-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
  background: var(--primary-color);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.login-submit-btn:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.login-submit-btn:active {
  transform: scale(0.99);
}

.login-form-footer {
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 0;
  font-size: 0.75rem;
  color: var(--gray-500);
}

.login-mobile-brand {
  display: none;
}

@media (max-width: 991.98px) {
  .login-form-card {
    box-shadow: var(--shadow-sm);
  }

  .login-mobile-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--gray-200);
  }

  .login-mobile-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-bg);
    color: var(--primary-color);
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    margin-bottom: 0.625rem;
  }

  .login-mobile-brand span {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
  }
}

/* ========== TOAST BİLDİRİMLERİ ========== */
.app-toast-container {
  z-index: 1090;
  pointer-events: none;
}

.app-toast-container .toast {
  pointer-events: auto;
  min-width: 320px;
  max-width: 380px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.app-toast-container .toast-header {
  font-size: 0.9rem;
  padding: 0.75rem 0.875rem 0.25rem;
}

.app-toast-container .toast-body {
  font-size: 0.85rem;
  color: var(--gray-700);
  padding: 0.25rem 0.875rem 0.875rem;
}

.app-toast-container .toast-action-btn {
  font-size: 0.8rem;
}

.app-toast-container .toast.toast-success {
  border-left: 4px solid var(--success-color, #198754);
}

.app-toast-container .toast.toast-warning {
  border-left: 4px solid var(--warning-color, #ffc107);
}

.app-toast-container .toast.toast-error {
  border-left: 4px solid var(--danger-color, #dc3545);
}

.app-toast-container .toast.toast-info {
  border-left: 4px solid var(--primary-color, #0f4c81);
}

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

.app-toast-container .toast.showing,
.app-toast-container .toast.show {
  animation: toastSlideIn 0.35s ease-out;
}
