html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #f3f6fb;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.25rem #4f46e5;
}

/* App shell (Akkhor-style) */
.app-body {
  min-height: 100vh;
}

.app-shell {
  min-height: 100vh;
  background: linear-gradient(135deg, #eef2ff 0%, #f9fafb 40%, #f3f4ff 100%);
}

.app-sidebar {
  width: 250px;
  background: linear-gradient(180deg, #4f46e5 0%, #312e81 100%);
  color: #fff;
}

@media (max-width: 767.98px) {
  .app-sidebar {
    width: 100%;
  }
}

.app-brand {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-menu {
  overflow-y: auto;
  padding-bottom: 1rem;
}

.app-menu-link {
  color: rgba(255, 255, 255, 0.8);
  padding: 0.55rem 0.75rem;
  border-radius: 0.55rem;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.05s ease;
}

.app-menu-link i {
  width: 1.25rem;
  text-align: center;
}

.app-menu-link:hover,
.app-menu-link:focus {
  color: #ffffff;
  text-decoration: none;
  background-color: rgba(129, 140, 248, 0.35);
  transform: translateX(1px);
}

.sidebar-collapsed .app-sidebar {
  width: 70px;
}

.sidebar-collapsed .app-menu-link span {
  display: none;
}

.sidebar-collapsed .app-menu-link {
  justify-content: center;
}

.app-sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
}

.app-main {
  min-height: 100vh;
}

.app-header {
  min-height: 56px;
  background: linear-gradient(90deg, #4f46e5 0%, #6366f1 40%, #8b5cf6 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.app-header h6 {
  font-weight: 600;
}

.app-content {
  flex: 1 1 auto;
}

/* Card look tweaks */
.card {
  border: none;
  border-radius: 0.75rem;
}

.card-shadow-sm {
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.table thead th {
  border-bottom: none;
}

.dataTables_wrapper .dataTables_filter input {
  border-radius: 999px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #fff !important;
}

/* Auth layout background */
.auth-wrapper {
  background: radial-gradient(circle at top left, #4f46e5 0%, transparent 50%),
              radial-gradient(circle at bottom right, #22c55e 0%, transparent 50%),
              #0f172a;
}

.auth-card {
  border-radius: 1.25rem;
}