:root {
  --indigo-primary: #4f46e5;
  --indigo-hover: #4338ca;
  --dark-blue: #0f172a;
  --sidebar-bg: #1e293b;
  --sidebar-active: #334155;
  --bg-light-gray: #f8fafc;
  --card-border: rgba(226, 232, 240, 0.8);
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html, body {
  min-height: 100vh;
  background-color: var(--bg-light-gray);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Custom styling */
.text-indigo {
  color: var(--indigo-primary) !important;
}

.bg-indigo {
  background-color: var(--indigo-primary) !important;
}

.btn-indigo {
  background-color: var(--indigo-primary);
  color: white;
  border: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-indigo:hover {
  background-color: var(--indigo-hover);
  color: white;
  transform: translateY(-1px);
}

/* Sidebar structure */
#wrapper {
  overflow-x: hidden;
  display: flex;
  min-height: 100vh;
}

#sidebar-wrapper {
  min-height: 100vh;
  width: 260px;
  margin-left: -260px;
  transition: margin 0.25s ease-out;
  background-color: #0b0f19 !important; /* Koyu lacivert */
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}

#sidebar-wrapper .sidebar-heading {
  background-color: #070a12;
  color: white;
  font-size: 1.1rem;
}

#sidebar-wrapper .list-group-item {
  color: #94a3b8;
  font-weight: 500;
  transition: all 0.2s ease;
  border: none;
  border-radius: 8px;
  margin: 3px 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

#sidebar-wrapper .list-group-item i {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #64748b;
  transition: color 0.2s ease;
  text-align: center;
}

#sidebar-wrapper .list-group-item:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.04) !important;
}

#sidebar-wrapper .list-group-item:hover i {
  color: #3b82f6;
}

/* Sidebar Active Menu Item Vurgusu (Mavi) */
#sidebar-wrapper .list-group-item.active {
  color: #3b82f6 !important;
  background-color: rgba(59, 130, 246, 0.08) !important;
  border-left: 4px solid #3b82f6 !important;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  font-weight: 600;
}

#sidebar-wrapper .list-group-item.active i {
  color: #3b82f6 !important;
}

#page-content-wrapper {
  min-width: 100vw;
  flex: 1;
}

/* Responsive transitions */
#wrapper.toggled #sidebar-wrapper {
  margin-left: 0;
}

@media (min-width: 992px) {
  #sidebar-wrapper {
    margin-left: 0;
  }
  #page-content-wrapper {
    min-width: 0;
    width: 100%;
  }
  #wrapper.toggled #sidebar-wrapper {
    margin-left: -260px;
  }
}

/* Premium Card Aesthetics */
.stat-card {
  border-radius: 16px;
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: white;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Table refinements */
.custom-table {
  border-collapse: separate;
  border-spacing: 0 8px;
}

.custom-table tr {
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.custom-table td, .custom-table th {
  border: none;
  background: white;
}

.custom-table tr td:first-child, .custom-table tr th:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.custom-table tr td:last-child, .custom-table tr th:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.custom-table-container {
  background: transparent;
}

/* Form floating focus styling */
.form-control:focus {
  border-color: var(--indigo-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* Theme customizations */
#sidebar-wrapper.theme-personnel .list-group-item.active {
  color: #f59e0b !important;
  background-color: rgba(245, 158, 11, 0.08) !important;
  border-left: 4px solid #f59e0b !important;
}
#sidebar-wrapper.theme-personnel .list-group-item.active i {
  color: #f59e0b !important;
}

#sidebar-wrapper.theme-admin .list-group-item.active {
  color: #10b981 !important;
  background-color: rgba(16, 185, 129, 0.08) !important;
  border-left: 4px solid #10b981 !important;
}
#sidebar-wrapper.theme-admin .list-group-item.active i {
  color: #10b981 !important;
}

.bg-amber {
  background-color: #f59e0b !important;
}

.text-amber {
  color: #f59e0b !important;
}

.bg-emerald {
  background-color: #10b981 !important;
}

.text-emerald {
  color: #10b981 !important;
}

/* Glassmorphism styling */
.glass-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.08);
}

/* Custom interactive steps */
.step-check-item {
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.step-check-item:hover {
  background-color: rgba(245, 158, 11, 0.05) !important;
}

/* --- YENİ EKLENEN TASARIM ARAYÜZ STİLLERİ --- */

/* Sidebar Çıkış Yap butonu altta belirgin stil */
#sidebar-wrapper .logout-btn {
  border: 1px dashed rgba(239, 68, 68, 0.25) !important;
  background-color: rgba(239, 68, 68, 0.03) !important;
  color: #ef4444 !important;
  margin-top: 15px;
  margin-bottom: 25px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

#sidebar-wrapper .logout-btn:hover {
  background-color: rgba(239, 68, 68, 0.1) !important;
  border-color: rgba(239, 68, 68, 0.45) !important;
  color: #dc2626 !important;
}

#sidebar-wrapper .logout-btn i {
  color: #ef4444 !important;
}

/* Dashboard Welcome Banner */
.welcome-banner {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border: 1px solid #bae6fd;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.05);
  border-radius: 16px;
  transition: transform 0.2s ease;
}
.welcome-banner:hover {
  transform: translateY(-1px);
}
.welcome-banner .welcome-text h2 {
  color: #0369a1 !important;
}
.welcome-banner .welcome-text p {
  color: #0369a1 !important;
  opacity: 0.85;
}
.welcome-banner .welcome-icon {
  background-color: rgba(3, 105, 161, 0.1) !important;
  color: #0369a1 !important;
}

/* Dashboard KPI Kartları Renkleri */
.stat-card.kpi-blue {
  border-left: 4px solid #3b82f6;
}
.stat-card.kpi-blue .stat-icon {
  background-color: rgba(59, 130, 246, 0.1) !important;
  color: #3b82f6 !important;
}
.stat-card.kpi-blue a {
  color: #3b82f6 !important;
}

.stat-card.kpi-green {
  border-left: 4px solid #10b981;
}
.stat-card.kpi-green .stat-icon {
  background-color: rgba(16, 185, 129, 0.1) !important;
  color: #10b981 !important;
}
.stat-card.kpi-green a {
  color: #10b981 !important;
}

.stat-card.kpi-yellow {
  border-left: 4px solid #f59e0b;
}
.stat-card.kpi-yellow .stat-icon {
  background-color: rgba(245, 158, 11, 0.1) !important;
  color: #f59e0b !important;
}
.stat-card.kpi-yellow a {
  color: #f59e0b !important;
}

.stat-card.kpi-purple-red {
  border-left: 4px solid #8b5cf6;
}
.stat-card.kpi-purple-red .stat-icon {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(239, 68, 68, 0.15) 100%) !important;
  color: #8b5cf6 !important;
}
.stat-card.kpi-purple-red a {
  color: #8b5cf6 !important;
}
.kpi-purple-red-text {
  color: #7c3aed !important;
}

/* Login ve Register Split Layout */
.login-container, .register-container {
  display: flex;
  width: 100%;
  max-width: 950px;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05), 0 20px 48px rgba(102, 126, 234, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-card, .register-card {
  flex: 1;
  padding: 40px !important;
  width: 100% !important;
  max-width: 100% !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

.login-illustration-section, .register-illustration-section {
  flex: 1;
  background: var(--primary-gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
  color: white;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  transition: background 0.3s ease;
}

.login-illustration-section::before, .register-illustration-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.illustration-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 380px;
}

.illustration-title {
  font-weight: 700;
  font-size: 1.8rem;
  margin-top: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.illustration-text {
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 1.5;
}

/* Floating İllüstrasyon Kartları */
.floating-elements {
  position: relative;
  height: 200px;
  width: 100%;
  margin-bottom: 20px;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  color: white;
}

.floating-card span {
  font-size: 0.85rem;
  font-weight: 600;
}

.floating-card i {
  font-size: 1.2rem;
}

.card-car {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation: float 6s ease-in-out infinite;
}

.card-check {
  bottom: 20px;
  left: 10px;
  animation: float 5s ease-in-out infinite;
  animation-delay: 1s;
}

.card-alert {
  bottom: 30px;
  right: 10px;
  animation: float 7s ease-in-out infinite;
  animation-delay: 2s;
}

@keyframes float {
  0% {
    transform: translateY(0px) translateX(var(--tx, 0));
  }
  50% {
    transform: translateY(-10px) translateX(var(--tx, 0));
  }
  100% {
    transform: translateY(0px) translateX(var(--tx, 0));
  }
}

.card-car {
  --tx: -50%;
}

.animate-bell {
  display: inline-block;
  animation: ring 2s ease infinite;
}

@keyframes ring {
  0%, 100% { transform: rotate(0); }
  10%, 30%, 50%, 70%, 90% { transform: rotate(10deg); }
  20%, 40%, 60%, 80% { transform: rotate(-10deg); }
}