html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  background: #f3f5f9;
  color: #1f2937;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 280px;
  flex-shrink: 0;
  background: #111827;
  color: #f9fafb;
  padding: 24px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-brand {
  margin-bottom: 18px;
}

.sidebar-logo {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
  border-radius: 10px;
  margin-bottom: 10px;
}

.sidebar-brand a {
  color: #f9fafb;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-link {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 500;
}

.sidebar-link:hover {
  background: #1f2937;
  color: #ffffff;
}

.sidebar-link.active {
  background: #2563eb;
  color: #ffffff;
}

.main-content {
  flex: 1;
  padding: 28px;
}

.page-title {
  margin-bottom: 6px;
}

.page-subtitle {
  color: #4b5563;
  margin-bottom: 18px;
}

.dev-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}

.dev-card h2,
.dev-card h3 {
  margin-top: 0;
}

.app-alert {
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.app-alert-danger {
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #9f1239;
}

.app-alert-success {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.app-alert-info {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.table-clean {
  white-space: nowrap;
  font-size: 0.93rem;
}

.table-clean thead th {
  background: #f9fafb;
  border-bottom-width: 1px;
}

.garage-process-modal .modal-title {
  font-size: 1.45rem;
  font-weight: 700;
}

.garage-process-modal .modal-body {
  font-size: 1.12rem;
}

.garage-process-modal #garage-process-vehicle {
  font-size: 1.2rem;
  font-weight: 700;
}

.garage-process-modal #garage-process-steps li {
  font-weight: 600;
  line-height: 1.5;
}

.garage-process-modal #garage-process-live {
  font-size: 1.08rem;
  font-weight: 700;
}

.workorder-focus-link-highlight {
  font-size: 1.08rem;
  font-weight: 800 !important;
  color: #b91c1c !important;
  animation: workorderFlash 1s ease-in-out infinite;
}

@keyframes workorderFlash {
  0% {
    opacity: 1;
    text-shadow: 0 0 0 transparent;
  }
  50% {
    opacity: 0.55;
    text-shadow: 0 0 10px rgba(185, 28, 28, 0.45);
  }
  100% {
    opacity: 1;
    text-shadow: 0 0 0 transparent;
  }
}

@media (max-width: 992px) {
  .app-shell {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    position: static;
    height: auto;
  }

  .main-content {
    padding: 16px;
  }
}