@import url('/vendor/vazirmatn/Vazirmatn-font-face.css');

html, body {
  background-color: #050816;
  color: #e2e8f0;
}

body {
  font-family: Vazirmatn, Tahoma, Arial, sans-serif;
  background-color: #050816;
  color: #e2e8f0;
}

html[data-bs-theme="dark"], body[data-bs-theme="dark"] {
  background-color: #050816;
  color: #e2e8f0;
}

html[data-bs-theme="dark"] .page,
html[data-bs-theme="dark"] .page-wrapper,
html[data-bs-theme="dark"] .page-body,
html[data-bs-theme="dark"] .page-center,
html[data-bs-theme="dark"] .login-shell,
html[data-bs-theme="dark"] .register-shell {
  background-color: #050816;
}

html[data-bs-theme="dark"] .card,
body[data-bs-theme="dark"] .card {
  background-color: #0f172a;
  border-color: rgba(148, 163, 184, 0.16);
  color: #e2e8f0;
}

html[data-bs-theme="dark"] .card .card-body,
body[data-bs-theme="dark"] .card .card-body {
  background-color: transparent;
}

html[data-bs-theme="dark"] .navbar,
body[data-bs-theme="dark"] .navbar,
html[data-bs-theme="dark"] .navbar.navbar-vertical .navbar-nav .nav-link,
body[data-bs-theme="dark"] .navbar.navbar-vertical .navbar-nav .nav-link,
html[data-bs-theme="dark"] .navbar .navbar-brand,
body[data-bs-theme="dark"] .navbar .navbar-brand {
  background-color: #0f172a;
  color: #e2e8f0;
}

html[data-bs-theme="dark"] .navbar .navbar-brand a,
body[data-bs-theme="dark"] .navbar .navbar-brand a {
  color: inherit;
}

html[data-bs-theme="dark"] .nav-link,
body[data-bs-theme="dark"] .nav-link,
html[data-bs-theme="dark"] .nav-link.active,
body[data-bs-theme="dark"] .nav-link.active {
  color: #cbd5e1;
}

html[data-bs-theme="dark"] .form-control,
body[data-bs-theme="dark"] .form-control,
html[data-bs-theme="dark"] .form-select,
body[data-bs-theme="dark"] .form-select,
html[data-bs-theme="dark"] textarea.form-control,
body[data-bs-theme="dark"] textarea.form-control {
  background-color: #0f172a;
  border-color: rgba(148, 163, 184, 0.24);
  color: #e2e8f0;
  box-shadow: none;
}

html[data-bs-theme="dark"] .form-control::placeholder,
body[data-bs-theme="dark"] .form-control::placeholder,
html[data-bs-theme="dark"] .form-select::placeholder,
body[data-bs-theme="dark"] .form-select::placeholder {
  color: #94a3b8;
}

html[data-bs-theme="dark"] .btn-primary,
body[data-bs-theme="dark"] .btn-primary {
  background-color: #2563eb;
  border-color: #2563eb;
}

html[data-bs-theme="dark"] .btn-outline-primary,
body[data-bs-theme="dark"] .btn-outline-primary {
  color: #93c5fd;
  border-color: rgba(147, 197, 253, 0.35);
}

html[data-bs-theme="dark"] .btn-outline-secondary,
body[data-bs-theme="dark"] .btn-outline-secondary {
  color: #cbd5e1;
  border-color: rgba(203, 213, 225, 0.2);
}

html[data-bs-theme="dark"] .text-secondary,
body[data-bs-theme="dark"] .text-secondary {
  color: #94a3b8 !important;
}

html[data-bs-theme="dark"] .text-white-50,
body[data-bs-theme="dark"] .text-white-50 {
  color: rgba(248, 250, 252, 0.72) !important;
}

html[data-bs-theme="dark"] .alert,
body[data-bs-theme="dark"] .alert {
  background-color: #111827;
  border-color: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
}

html[data-bs-theme="dark"] .table,
body[data-bs-theme="dark"] .table {
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.16);
}

html[data-bs-theme="dark"] .table th,
body[data-bs-theme="dark"] .table th,
html[data-bs-theme="dark"] .table td,
body[data-bs-theme="dark"] .table td {
  border-color: rgba(148, 163, 184, 0.12);
}

html[data-bs-theme="dark"] .report-output,
body[data-bs-theme="dark"] .report-output {
  background: #0f172a;
  color: #d1fae5;
}

html[data-bs-theme="dark"] .login-hero,
body[data-bs-theme="dark"] .login-hero,
html[data-bs-theme="dark"] .register-hero,
body[data-bs-theme="dark"] .register-hero {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(37, 99, 235, 0.8));
}

html[data-bs-theme="dark"] .login-panel,
body[data-bs-theme="dark"] .login-panel,
html[data-bs-theme="dark"] .register-panel,
body[data-bs-theme="dark"] .register-panel {
  background-color: rgba(15, 23, 42, 0.92);
}

html[data-bs-theme="dark"] #map,
body[data-bs-theme="dark"] #map,
html[data-bs-theme="dark"] #playbackMap,
body[data-bs-theme="dark"] #playbackMap {
  background-color: #0f172a;
}

html[data-bs-theme="dark"] .page,
body[data-bs-theme="dark"] .page,
html[data-bs-theme="dark"] .page-center,
body[data-bs-theme="dark"] .page-center {
  min-height: 100vh;
}

.login-logo {
  height: 180px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}

.login-intro-image {
  max-height: 220px;
  width: auto;
}

.page-body .container-xl {
  padding-left: 1rem;
  padding-right: 1rem;
}

.apk-hint {
  min-height: 1.25rem;
}

#map,
#playbackMap {
  height: calc(100vh - 235px);
  min-height: 460px;
}

.navbar-brand a {
  color: inherit;
  text-decoration: none;
}

.nav-link-icon {
  margin-left: .5rem;
  margin-right: 0;
}

.admin-nav-label {
  cursor: default;
  opacity: .9;
}

.admin-nav-child .nav-link {
  padding-right: 2.25rem;
}

.profile-subnav .nav-pills .nav-link {
  border: 1px solid rgba(148, 163, 184, .25);
}

.profile-subnav .nav-pills .nav-link.active {
  background-color: #2563eb;
  border-color: #2563eb;
}

select.device-map-icon-select {
  min-width: 7.5rem;
  max-width: 11rem;
  font-size: 0.875rem;
}

.playback-stop-marker {
  border: none;
  background: transparent;
}

.playback-stop-marker span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.92);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.datepicker-plot-area {
  z-index: 1200 !important;
}

.report-output {
  direction: ltr;
  text-align: left;
  min-height: 300px;
  max-height: 520px;
  overflow: auto;
  padding: 16px;
  background: #111827;
  color: #d1fae5;
  border-radius: 6px;
}

@media (max-width: 991.98px) {
  #map,
  #playbackMap {
    height: 60vh;
    min-height: 360px;
  }
}

@media (max-width: 767.98px) {
  .page-body .container-xl {
    padding-left: .75rem;
    padding-right: .75rem;
  }

  #map,
  #playbackMap {
    height: 52vh;
    min-height: 280px;
  }

  .card .card-body {
    padding: .85rem;
  }

  #logoutBtn,
  #playBtn {
    width: 100%;
  }

  .table-responsive {
    font-size: .92rem;
  }

  .report-output {
    min-height: 220px;
    max-height: 45vh;
    font-size: 12px;
  }
}

body.has-trial-ribbon {
  padding-top: 2.75rem;
}

.trial-platform-ribbon {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1090;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 0;
  background: linear-gradient(135deg, #066fd1 0%, #4299e1 100%);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(6, 111, 209, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.trial-platform-ribbon:hover,
.trial-platform-ribbon:focus {
  color: #fff;
  background: linear-gradient(135deg, #0559a8 0%, #3182ce 100%);
  box-shadow: 0 6px 20px rgba(6, 111, 209, 0.45);
}

.trial-platform-ribbon:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: -2px;
}

@media (max-width: 767.98px) {
  body.has-trial-ribbon {
    padding-top: 2.5rem;
  }

  .trial-platform-ribbon {
    font-size: 0.78rem;
    padding: 0.5rem 0.75rem;
  }
}
