/* DCP overrides on NiceAdmin theme */

.header .search-bar,
.header .search-bar-toggle {
  display: none !important;
}

.logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo .logo-title {
  color: #012970;
  font-family: "Nunito", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.logo .logo-subtitle {
  color: #899bbd;
  font-family: "Poppins", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.header-nav .nav-profile .nav-profile-icon {
  font-size: 2rem;
  color: #4154f1;
}

.sidebar {
  display: flex;
  flex-direction: column;
}

.sidebar-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: calc(100vh - 60px);
}

.sidebar-nav .portal-current-tenant {
  margin-bottom: 10px;
}

.sidebar-nav .portal-current-tenant-badge {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  background: #f6f9ff;
  border: 1px solid #e0e6f6;
  border-radius: 6px;
}

.sidebar-nav .portal-current-tenant-badge > i {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 16px;
  color: #4154f1;
}

.sidebar-nav .portal-current-tenant-text {
  min-width: 0;
  flex: 1;
}

.sidebar-nav .portal-current-tenant-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #899bbd;
}

.sidebar-nav .portal-current-tenant-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #012970;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-nav .switch-tenant-item {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-logo .logo-title {
  font-size: 1.75rem;
}

.auth-page .logo a:hover .logo-title,
.marketing-header .logo a:hover .logo-title {
  color: #4154f1;
}

body.auth-page {
  min-height: 100vh;
}

.auth-page .section.register .row > [class*="col"] {
  min-width: 0;
  max-width: 100%;
}

.auth-page .card {
  border: none;
  box-shadow: 0 0 30px rgba(1, 41, 112, 0.1);
  align-self: stretch;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.plan-comparison {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.plan-comparison-card dt {
  font-weight: 600;
  color: #012970;
}

.plan-comparison-table-wrap {
  -webkit-overflow-scrolling: touch;
}

.plan-comparison-table {
  min-width: 52rem;
}

.plan-comparison-table > thead > tr > th:first-child,
.plan-comparison-table > tbody > tr > th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 11rem;
  background-color: var(--bs-table-bg, #fff);
  box-shadow: 1px 0 0 #dee2e6;
}

.plan-comparison-table > thead > tr > th:first-child {
  z-index: 2;
  background-color: var(--bs-table-bg, #f8f9fa);
}

.auth-page .credits {
  padding-top: 5px;
  text-align: center;
  font-size: 13px;
  color: #012970;
}

.dashboard-kpi-link {
  color: inherit;
  display: block;
  text-decoration: none;
}

.dashboard-kpi-link:hover {
  color: inherit;
}

.dashboard-kpi-link .card,
.plugin-service-card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.plugin-service-card .card-body,
.maintenance-service-card .card-body {
  padding: 20px;
}

.plugin-service-card .card-title {
  padding-top: 12px;
  padding-bottom: 8px;
}

.dashboard-kpi-link:hover .card,
.plugin-service-card:hover {
  box-shadow: 0 0 24px rgba(1, 41, 112, 0.12);
  transform: translateY(-2px);
}

.plugin-service-card.plugin-service-card-static:hover {
  box-shadow: none;
  transform: none;
}

.vehicle-maintenance-header {
  padding-top: 20px;
}

.vehicle-maintenance-header .card-title {
  padding-top: 0;
  padding-bottom: 8px;
}

.dashboard-kpi-link .card-title,
.dashboard-kpi-link h6 {
  color: #012970;
}

.sidebar-nav .nav-badge {
  font-size: 11px;
  font-weight: 600;
  min-width: 1.25rem;
  margin-left: 6px;
}

.sidebar-nav .nav-content .nav-badge {
  margin-left: 4px;
}

#compliance-alerts {
  scroll-margin-top: 80px;
}

.notification-item-body {
  flex: 1 1 auto;
  min-width: 0;
}

.notification-item-actions {
  flex: 0 0 auto;
  align-self: flex-start;
}

.notification-item-actions .btn {
  white-space: nowrap;
  width: auto;
  height: auto;
}

.legal-document {
  min-width: 0;
  max-width: 100%;
}

.legal-document .card-body {
  min-width: 0;
}

.legal-document h1 {
  color: #012970;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.legal-document h2 {
  color: #012970;
  font-size: 1.15rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.legal-document h3 {
  font-size: 1rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.legal-document p,
.legal-document li {
  color: #444;
  line-height: 1.65;
}

.legal-document ul {
  padding-left: 1.25rem;
}

.legal-document .legal-meta {
  color: #6c757d;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.footer-copyright {
  color: #012970;
  font-size: 14px;
}

.footer .legal-footer {
  margin-bottom: 0;
}

.sortable-th {
  white-space: nowrap;
}

.sortable-th-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.sortable-th-link:hover {
  color: #4154f1;
}

.sortable-th-link .bi-chevron-expand {
  opacity: 0.35;
  font-size: 0.85em;
}

.sortable-th-link:hover .bi-chevron-expand {
  opacity: 0.7;
}

.sortable-th-link .bi-caret-up-fill,
.sortable-th-link .bi-caret-down-fill {
  color: #4154f1;
  font-size: 0.85em;
}

/* Public product intro (web home at /) */
body.marketing-page {
  background: #f6f9ff;
}

.marketing-header {
  height: auto;
  min-height: 60px;
  padding-left: 0;
  padding-right: 0;
}

.marketing-header .navbar-brand {
  font-size: inherit;
  white-space: normal;
}

.marketing-header .logo,
.marketing-header .logo.justify-content-center {
  justify-content: flex-start;
}

@media (min-width: 1200px) {
  .marketing-header .logo {
    width: auto;
  }
}

.marketing-header .logo-text {
  display: flex !important;
}

.marketing-header .nav-link {
  color: #012970;
  font-weight: 600;
  font-size: 0.95rem;
}

.marketing-header .nav-link:hover,
.marketing-header .nav-link:focus {
  color: #4154f1;
}

.marketing-header .navbar-toggler {
  border-color: #e0e6f6;
}

.marketing-hero {
  padding: 3.5rem 0 3rem;
  background: linear-gradient(165deg, #dce4fb 0%, #f6f9ff 48%, #f6f9ff 100%);
}

@keyframes marketing-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.marketing-hero-copy {
  animation: marketing-fade-up 0.45s ease-out;
}

.marketing-hero-visual {
  animation: marketing-fade-up 0.55s ease-out 0.12s both;
}

.marketing-kicker {
  color: #4154f1;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.marketing-hero-title {
  color: #012970;
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.marketing-hero-lead,
.marketing-section-lead {
  color: #444;
  font-size: 1.05rem;
  line-height: 1.65;
}

.marketing-text-link {
  font-weight: 600;
}

.marketing-hero-panel {
  background: #fff;
  border: 1px solid #e0e6f6;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 0 30px rgba(1, 41, 112, 0.08);
}

.marketing-kpi {
  background: #f6f9ff;
  border-radius: 8px;
  padding: 1rem;
  min-height: 100%;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.marketing-kpi:hover {
  box-shadow: 0 0 24px rgba(1, 41, 112, 0.12);
  transform: translateY(-2px);
}

.marketing-kpi > i {
  display: block;
  font-size: 1.5rem;
  color: #4154f1;
  margin-bottom: 0.5rem;
}

.marketing-kpi-label {
  display: block;
  color: #012970;
  font-weight: 700;
  font-size: 0.95rem;
}

.marketing-kpi-hint {
  display: block;
  color: #899bbd;
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

.marketing-section {
  padding: 3rem 0;
}

.marketing-section-alt {
  background: #fff;
}

.marketing-section-title {
  color: #012970;
  font-weight: 700;
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.marketing-feature-card,
.marketing-plan-card,
.marketing-persona-card {
  background: #fff;
  border: 1px solid #e0e6f6;
  border-radius: 10px;
  padding: 1.35rem 1.25rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.marketing-feature-card:hover,
.marketing-plan-card:hover,
.marketing-persona-card:hover {
  box-shadow: 0 0 24px rgba(1, 41, 112, 0.12);
  transform: translateY(-2px);
}

.marketing-section-alt .marketing-feature-card,
.marketing-section-alt .marketing-plan-card {
  background: #f6f9ff;
}

.marketing-feature-card > i {
  font-size: 1.5rem;
  color: #4154f1;
}

.marketing-feature-card h3,
.marketing-step h3,
.marketing-plan-card h3,
.marketing-persona-card h3 {
  color: #012970;
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

.marketing-feature-card p,
.marketing-step p,
.marketing-persona-card p {
  color: #444;
  margin-bottom: 0;
  line-height: 1.55;
}

.marketing-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #4154f1;
  color: #fff;
  font-weight: 700;
}

.marketing-plan-card-featured {
  border-color: #4154f1;
  box-shadow: 0 0 0 1px #4154f1;
}

.marketing-plan-card-featured:hover {
  box-shadow: 0 0 24px rgba(1, 41, 112, 0.12), 0 0 0 1px #4154f1;
}

.marketing-plan-price {
  color: #012970;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.marketing-persona-card p {
  margin-bottom: 1rem;
}

.marketing-mobile-note {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e0e6f6;
  border-radius: 10px;
  padding: 1.25rem;
}

.marketing-mobile-note > i {
  font-size: 1.75rem;
  color: #4154f1;
}

.marketing-cta {
  background: #012970;
  color: #fff;
  padding: 3rem 0;
}

.marketing-cta .marketing-section-title {
  color: #fff;
}

.marketing-cta .marketing-section-lead {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.25rem;
}

.marketing-page .btn-primary {
  transition: box-shadow 0.2s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.marketing-page .btn-primary:hover {
  box-shadow: 0 4px 14px rgba(65, 84, 241, 0.35);
}

.marketing-trust {
  padding: 1.75rem 0 0.5rem;
  font-size: 0.85rem;
  color: #6c757d;
}

.marketing-faq-item {
  margin-bottom: 1.25rem;
}

.marketing-faq-item h3 {
  color: #012970;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.marketing-faq-item p {
  color: #444;
  line-height: 1.55;
  margin-bottom: 0;
}

.marketing-footer .legal-footer {
  margin-top: 0;
}

#features,
#how-it-works,
#pricing,
#who,
#mobile,
#problem,
#faq {
  scroll-margin-top: 80px;
}

@media (prefers-reduced-motion: reduce) {
  .marketing-hero-copy,
  .marketing-hero-visual {
    animation: none;
  }

  .marketing-kpi,
  .marketing-feature-card,
  .marketing-plan-card,
  .marketing-persona-card,
  .marketing-page .btn-primary {
    transition: none;
  }

  .marketing-kpi:hover,
  .marketing-feature-card:hover,
  .marketing-plan-card:hover,
  .marketing-persona-card:hover {
    transform: none;
    box-shadow: none;
  }

  .marketing-plan-card-featured:hover {
    box-shadow: 0 0 0 1px #4154f1;
  }
}
