:root {
  --ink: #0b1220;
  --brand: #38bdf8;
  --brand-strong: #0ea5e9;
  --glass: rgba(15, 23, 42, 0.6);
  --border: rgba(148, 163, 184, 0.2);
}

* {
  box-sizing: border-box;
}

.page-shell {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(14, 165, 233, 0.18), transparent 40%),
    linear-gradient(160deg, #0b1220 0%, #0f172a 55%, #0b1120 100%);
}

.page-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(14, 165, 233, 0.25), transparent 40%),
    radial-gradient(circle at 30% 70%, rgba(45, 212, 191, 0.2), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.page-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 90px 90px;
  opacity: 0.3;
  pointer-events: none;
}

.glass-panel {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(18px);
  animation: floatIn 0.9s ease both;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.2);
  color: #e0f2fe;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.badge-secondary {
  background: rgba(94, 234, 212, 0.2);
  color: #ccfbf1;
}

.label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(226, 232, 240, 0.7);
  margin-bottom: 8px;
}

.input {
  width: 100%;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  padding: 12px 14px;
  color: #e2e8f0;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
}

.btn-primary {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(120deg, var(--brand-strong), #22d3ee);
  color: #0b1120;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 20px 35px rgba(14, 165, 233, 0.3);
  position: relative;
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-primary:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  box-shadow: none;
  transform: none;
}

.btn-primary.is-loading {
  opacity: 0.75;
}

.btn-primary.is-loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(15, 23, 42, 0.4);
  border-top-color: rgba(15, 23, 42, 0.9);
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.signature-waiting {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #cbd5f5;
  font-weight: 600;
}

.signature-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(148, 163, 184, 0.4);
  border-top-color: #22d3ee;
  animation: spin 0.8s linear infinite;
}

.btn-fit {
  width: auto;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-ghost {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(148, 163, 184, 0.12);
  color: #e2e8f0;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 600;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  font-weight: 700;
}

.divider {
  position: relative;
  text-align: center;
  margin: 24px 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(226, 232, 240, 0.6);
}

.divider::before,
.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: rgba(148, 163, 184, 0.25);
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

.link-soft {
  display: inline-flex;
  color: #bae6fd;
  font-size: 14px;
  gap: 6px;
  align-items: center;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: transparent;
  color: #cbd5f5;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.btn-link:hover {
  color: #e0f2fe;
  border-color: rgba(56, 189, 248, 0.6);
}

.logo-progress {
  margin-top: 12px;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.35);
  overflow: hidden;
}

.logo-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(120deg, var(--brand-strong), #22d3ee);
  transition: width 0.15s ease;
}

.register-panel {
  animation: floatIn 0.6s ease both;
}

.app-layout {
  min-height: 100vh;
  height: 100vh;
  display: flex;
  overflow: hidden;
}

.main-column {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-width: 0;
  overflow: hidden;
}

.sidebar {
  width: 260px;
  background: rgba(15, 23, 42, 0.85);
  border-right: 1px solid rgba(148, 163, 184, 0.2);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  top: auto;
  height: 100vh;
  overflow-y: auto;
  align-self: stretch;
  backdrop-filter: blur(18px);
  transition: width 0.3s ease;
  z-index: 1;
}

.sidebar::-webkit-scrollbar,
.content::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-track,
.content::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.4);
}

.sidebar::-webkit-scrollbar-thumb,
.content::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.35);
  border-radius: 999px;
  border: 2px solid rgba(15, 23, 42, 0.4);
}

.sidebar,
.content {
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.35) rgba(15, 23, 42, 0.4);
}

[data-notification-list]::-webkit-scrollbar {
  width: 6px;
}

[data-notification-list]::-webkit-scrollbar-track {
  background: transparent;
}

[data-notification-list]::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.6);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

[data-notification-list]:hover::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.7);
  background-clip: content-box;
}

[data-notification-list] {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.6) transparent;
}

.sidebar.collapsed {
  width: 90px;
}

.sidebar.collapsed .sidebar-brand div:last-child,
.sidebar.collapsed .nav-item span:last-child {
  display: none;
}

.sidebar.collapsed .nav-group-title span:nth-child(2) {
  display: none;
}

.sidebar.collapsed .nav-group-caret {
  display: none;
}

.sidebar.collapsed .nav-item-child span:last-child {
  display: none;
}

.sidebar-brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: linear-gradient(120deg, #38bdf8, #a5b4fc);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #0b1120;
  font-size: 20px;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-toggle .icon-close,
.mobile-nav-item .icon-close {
  display: none;
}

.sidebar-toggle.is-open .icon-hamburger,
.mobile-nav-item.is-open .icon-hamburger {
  display: none;
}

.sidebar-toggle.is-open .icon-close,
.mobile-nav-item.is-open .icon-close {
  display: block;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  color: rgba(226, 232, 240, 0.7);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-item svg {
  width: 18px;
  height: 18px;
}

.nav-group-title .nav-icon {
  display: inline-flex;
  align-items: center;
}

.nav-group-title .nav-icon svg {
  width: 18px;
  height: 18px;
}

.nav-item-active {
  background: rgba(56, 189, 248, 0.2);
  color: #e0f2fe;
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.25);
}

.nav-item:hover {
  background: rgba(148, 163, 184, 0.15);
  color: #fff;
}

.nav-item-logout {
  color: #fecaca;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.nav-group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  color: rgba(226, 232, 240, 0.7);
  font-weight: 700;
  background: rgba(148, 163, 184, 0.08);
  border: 0;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.nav-group-caret {
  margin-left: auto;
  display: inline-flex;
  color: rgba(226, 232, 240, 0.7);
  transition: transform 0.2s ease;
}

.nav-group-caret svg {
  width: 16px;
  height: 16px;
}

.nav-group-items {
  display: none;
  gap: 6px;
  padding-left: 22px;
}

.nav-item-child {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  background: rgba(15, 23, 42, 0.35);
  gap: 10px;
}

.nav-item-child .nav-icon {
  display: inline-flex;
  align-items: center;
}

.nav-item-child .nav-icon svg {
  width: 16px;
  height: 16px;
}

.nav-group.is-open .nav-group-items {
  display: grid;
}

.nav-group.is-open .nav-group-caret {
  transform: rotate(180deg);
}

.header {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(18px);
  background: rgba(15, 23, 42, 0.7);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.icon-button {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.15);
  display: grid;
  place-items: center;
  color: #e2e8f0;
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(56, 189, 248, 0.2);
  font-weight: 700;
  color: #e0f2fe;
}

.user-menu {
  position: relative;
}

.user-menu-panel {
  position: absolute;
  top: 54px;
  right: 0;
  min-width: 140px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.4);
  display: none;
  z-index: 10;
}

.user-menu.is-open .user-menu-panel {
  display: block;
}

.user-menu-item {
  width: 100%;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
  color: #fecaca;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.2);
  font-weight: 600;
}

.content {
  padding: 3px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  height: calc(100vh - 64px);
}

.content>section {
  width: 100%;
}


.card {
  background: rgba(15, 23, 42, 0.75);
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.plan-card .card-header h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plan-card .card-header p {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plan-card .card-header i,
.plan-card .card-header svg {
  flex: 0 0 auto;
}

.plan-card .card-header [data-lucide] {
  width: 18px;
  height: 18px;
}

.plan-card .card-header [data-lucide] svg {
  width: 100%;
  height: 100%;
}

.card-body {
  padding: 24px 28px 28px;
}

.plan-grid {
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.plan-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.plan-card .card-body {
  flex: 1;
  display: block;
}

.plan-grid .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.plan-grid .card-body {
  flex: 1;
  display: block;
}

.plan-card-footer {
  padding: 0 28px 28px;
}

.plan-card>.card-header {
  padding: 10px 16px;
}

.period-option {
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.period-option:hover {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.1);
}

.period-selected,
.period-option:has(input:checked) {
  border-color: #6366f1 !important;
  background: rgba(99, 102, 241, 0.2) !important;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.3);
}


.btn-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.15);
  color: #e2e8f0;
  font-weight: 600;
}

.stat-card {
  background: rgba(15, 23, 42, 0.75);
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  padding: 20px 22px;
  display: flex;
  gap: 16px;
  align-items: center;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.3);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.stat-icon svg {
  width: 22px;
  height: 22px;
}

.stat-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(226, 232, 240, 0.6);
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

.table {
  display: grid;
  gap: 6px;
}

.table-recent {
  width: 100%;
  overflow-x: auto;
}

.table-recent table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table-recent thead {
  background: rgba(148, 163, 184, 0.08);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  color: rgba(226, 232, 240, 0.6);
}

.table-recent th,
.table-recent td {
  padding: 14px 18px;
  text-align: left;
}

.table-recent th {
  white-space: nowrap;
}

.table-recent th [data-sort-indicator] {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
}

.table-recent tbody tr {
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  color: rgba(226, 232, 240, 0.8);
}

.table-recent tbody tr:hover {
  background: rgba(148, 163, 184, 0.06);
}

.table-vehicle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-vehicle-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.18);
  display: grid;
  place-items: center;
  color: #e0f2fe;
}

.table-vehicle-icon svg {
  width: 16px;
  height: 16px;
}

.table-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7dd3fc;
  font-weight: 600;
  font-size: 13px;
}

.table-action svg {
  width: 14px;
  height: 14px;
}

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 20px;
}

@media (max-width: 1200px) {
  .fleet-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }
}

@media (max-width: 900px) {
  .fleet-grid {
    grid-template-columns: 1fr;
  }
}

.fleet-filters {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}

.fleet-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.fleet-search {
  position: relative;
}

.fleet-filter-row .fleet-search {
  flex: 1;
  min-width: 240px;
}

.fleet-search-compact {
  flex: 0 0 220px;
  min-width: 220px;
}

.fleet-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fleet-filter-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: rgba(226, 232, 240, 0.7);
}

.fleet-filter-btn.is-active {
  background: rgba(56, 189, 248, 0.2);
  color: #e0f2fe;
  border-color: rgba(56, 189, 248, 0.4);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 20000;
  overflow-y: auto;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  z-index: 20000;
}

.modal-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  padding: 24px;
  z-index: 20001;
  display: flex;
  flex-direction: column;
}

.modal-panel-large {
  width: min(1024px, 100%);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.modal-close {
  font-size: 24px;
  color: rgba(226, 232, 240, 0.7);
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.6);
  color: rgba(226, 232, 240, 0.7);
  transition: all 0.2s ease;
  cursor: pointer;
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.7);
  border-color: rgba(239, 68, 68, 0.8);
  color: #fff;
  transform: scale(1.05);
}

.modal-close-btn svg {
  width: 18px;
  height: 18px;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: auto;
}

#rentalDetailsModal .modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

#rentalDetailsModal .contract-template-content {
  max-height: 100%;
  overflow-y: auto;
}

#contractTemplateDetailsModal .modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

#contractTemplateDetailsModal .contract-template-content {
  max-height: 100%;
  overflow-y: auto;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

#service-modal,
#delete-modal {
  z-index: 30000;
}

.team-table {
  display: grid;
  gap: 8px;
  min-width: 980px;
}

.team-table-scroll {
  width: 100%;
  overflow-x: auto;
}

.team-table[data-customers-table] {
  min-width: 1400px;
}

.team-table .team-head span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-row {
  display: grid;
  grid-template-columns: 1.4fr 1.4fr 1fr 0.8fr 0.6fr;
  column-gap: 16px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  color: rgba(226, 232, 240, 0.7);
  font-size: 14px;
}

.team-row>span {
  text-align: left;
  justify-self: start;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-row>span.text-right {
  text-align: left;
  justify-self: start;
}

.customer-row {
  grid-template-columns: minmax(160px, 0.9fr) minmax(200px, 1.4fr) minmax(140px, 1fr) minmax(240px, 1.4fr) minmax(160px, 1fr) minmax(120px, 0.7fr) minmax(160px, 0.9fr) minmax(140px, 0.8fr) minmax(140px, 0.8fr);
}

.team-head {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(226, 232, 240, 0.5);
}

.customer-head {
  background: rgba(148, 163, 184, 0.08);
  padding: 12px 16px;
  border-radius: 14px;
  border-bottom: none;
}

.team-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-avatar {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #0f172a;
}

.team-avatar-admin {
  background: rgba(129, 140, 248, 0.8);
  color: #0f172a;
}

.team-avatar-financial {
  background: rgba(52, 211, 153, 0.8);
  color: #052e1b;
}

.team-avatar-operator {
  background: rgba(148, 163, 184, 0.6);
  color: #0f172a;
}

.team-role {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.team-role-admin {
  background: rgba(129, 140, 248, 0.2);
  color: #c7d2fe;
}

.team-role-financial {
  background: rgba(52, 211, 153, 0.2);
  color: #bbf7d0;
}

.team-role-operator {
  background: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
}

.team-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.team-action {
  padding: 6px 10px;
  border-radius: 10px;
  color: #fecaca;
  background: rgba(248, 113, 113, 0.15);
  font-size: 12px;
  font-weight: 600;
}

.team-password {
  display: flex;
  gap: 8px;
}

.team-password-input {
  flex: 1;
}

.team-role-picker {
  display: flex;
  gap: 8px;
}

.team-role-btn {
  flex: 1;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: rgba(226, 232, 240, 0.7);
  font-size: 12px;
  font-weight: 600;
}

.team-role-btn.is-active {
  background: rgba(56, 189, 248, 0.2);
  color: #e0f2fe;
  border-color: rgba(56, 189, 248, 0.4);
}

.logo-preview {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.15);
  display: grid;
  place-items: center;
  color: rgba(226, 232, 240, 0.7);
  font-size: 11px;
  text-align: center;
}

.logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}

.signature-preview {
  min-height: 96px;
  border-radius: 16px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.4);
  display: grid;
  place-items: center;
  color: rgba(226, 232, 240, 0.7);
  font-size: 12px;
  padding: 14px;
}

.signature-preview img {
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
}

.contract-signature-image {
  display: inline-block;
  max-height: 70px;
  max-width: 220px;
  object-fit: contain;
  vertical-align: middle;
}

.contract-signature-line {
  display: inline-block;
  width: 220px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.5);
  transform: translateY(-4px);
}

@media (max-width: 900px) {
  .team-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .team-head {
    display: none;
  }

  .team-table[data-customers-table] .team-row {
    grid-template-columns: minmax(180px, 1.4fr) minmax(130px, 1fr) minmax(220px, 1.4fr) minmax(140px, 1fr) minmax(120px, 0.7fr) minmax(160px, 0.9fr) minmax(220px, 0.9fr) minmax(140px, 0.8fr) minmax(140px, 0.8fr);
    gap: 8px 16px;
  }

  .team-table[data-customers-table] .team-head {
    display: grid;
  }
}

.fleet-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.35);
}

.fleet-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fleet-photo-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.1);
  color: #7dd3fc;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fleet-photo-btn svg {
  width: 16px;
  height: 16px;
}

.fleet-photo-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: rgba(56, 189, 248, 0.5);
  color: #fff;
  transform: scale(1.05);
}

.fleet-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
}

.fleet-icon svg {
  width: 22px;
  height: 22px;
}

.fleet-icon-moto {
  background: rgba(99, 102, 241, 0.18);
  color: #c7d2fe;
}

.fleet-icon-carro {
  background: rgba(251, 146, 60, 0.2);
  color: #fed7aa;
}

.fleet-status {
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.fleet-status-available {
  background: rgba(16, 185, 129, 0.2);
  color: #a7f3d0;
}

.fleet-status-rented {
  background: rgba(59, 130, 246, 0.2);
  color: #bfdbfe;
}

.fleet-status-maintenance {
  background: rgba(248, 113, 113, 0.2);
  color: #fecaca;
}

.fleet-status-neutral {
  background: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
}

.fleet-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.fleet-body p {
  color: rgba(226, 232, 240, 0.6);
  font-size: 13px;
  margin-top: 4px;
}

.fleet-price {
  margin-top: 10px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.fleet-price span {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.fleet-price small {
  color: rgba(226, 232, 240, 0.6);
  font-size: 12px;
}

.fleet-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  color: rgba(226, 232, 240, 0.6);
  font-size: 11px;
}

.fleet-meta span {
  background: rgba(148, 163, 184, 0.12);
  padding: 8px;
  border-radius: 10px;
}

.fleet-actions {
  display: flex;
  gap: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding-top: 12px;
}

.fleet-action-primary,
.fleet-action-secondary,
.fleet-action-danger {
  font-size: 12px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
  border: none;
}

.fleet-action-primary {
  background: rgba(56, 189, 248, 0.2);
  color: #e0f2fe;
}

.fleet-action-secondary {
  background: rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
}

.fleet-action-danger {
  background: rgba(248, 113, 113, 0.2);
  color: #fecaca;
}

.wizard {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 12px;
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(226, 232, 240, 0.75);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.wizard-step span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  position: relative;
  background: rgba(148, 163, 184, 0.2);
  color: rgba(226, 232, 240, 0.7);
  font-weight: 700;
}

.wizard-step.is-active span {
  background: rgba(239, 68, 68, 0.95);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.35);
}

.wizard-step.is-active span::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 2px solid rgba(239, 68, 68, 0.55);
  animation: wizardPulse 1.6s ease-in-out infinite;
}

.wizard-step.is-complete span {
  background: #a3e635;
  color: #1a2e05;
}

@keyframes wizardPulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.2;
  }

  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

.wizard-content {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 20px;
  padding: 24px;
}

.wizard-panel {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.wizard-panel.is-active {
  display: flex;
}

.wizard-panel h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.wizard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.wizard-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contract-template-editor {
  position: relative;
  z-index: 1;
}

.contract-template-editor .ql-container {
  min-height: 200px;
}

.contract-template-status {
  position: relative;
  z-index: 2;
}

.input.input-error {
  border-color: rgba(248, 113, 113, 0.9);
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.25);
}

.wizard-toggle {
  display: flex;
  gap: 8px;
  background: rgba(148, 163, 184, 0.15);
  border-radius: 12px;
  padding: 6px;
}

.wizard-toggle-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.7);
}

.wizard-toggle-btn.is-active {
  background: rgba(226, 232, 240, 0.15);
  color: #fff;
}

.wizard-list {
  display: grid;
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}

.wizard-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(15, 23, 42, 0.5);
}

.wizard-card.is-selected {
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
  background: rgba(56, 189, 248, 0.12);
}

.wizard-card strong {
  color: #fff;
}

.wizard-card span {
  display: block;
  color: rgba(226, 232, 240, 0.6);
  font-size: 12px;
  margin-top: 4px;
}

.wizard-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  background: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
}

.wizard-preview {
  border-radius: 16px;
  border: 1px dashed rgba(148, 163, 184, 0.4);
  padding: 24px;
  color: rgba(226, 232, 240, 0.7);
  background: rgba(15, 23, 42, 0.4);
}

.wizard-preview.contract-pdf {
  background: #fff;
  border-color: #e5e7eb;
  color: #111827;
}

.contract-document {
  color: #e2e8f0;
  font-size: 13px;
  line-height: 1.65;
  position: relative;
}

.contract-pdf .contract-document {
  color: #111827;
}

.contract-document h4 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 12px;
}

.contract-pdf .contract-document h4 {
  color: #111827;
}

.contract-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.contract-separator {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  margin: 16px 0;
}

.contract-signature-placeholder {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: rgba(226, 232, 240, 0.7);
}

.contract-pdf .contract-separator {
  border-top-color: #e5e7eb;
}

.contract-muted {
  color: rgba(226, 232, 240, 0.6);
  font-size: 12px;
}

.contract-pdf .contract-muted {
  color: #374151;
}

.contract-template-content {
  margin-top: 16px;
  white-space: pre-wrap;
  color: rgba(226, 232, 240, 0.8);
  font-size: 13px;
  line-height: 1.7;
  max-height: 60vh;
  overflow: hidden;
  padding-right: 0;
}

#docViewerModal .modal-body,
#signedPdfModal .modal-body {
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

#docViewerModal .modal-panel,
#signedPdfModal .modal-panel {
  width: min(1200px, 100%);
  height: calc(100vh - 48px);
}

#docViewerModal [data-doc-viewer-content],
#signedPdfModal [data-signed-pdf-content] {
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

#docViewerModal .doc-viewer-content,
#signedPdfModal .doc-viewer-content {
  flex: 1;
  min-height: 0;
}

.doc-viewer-frame {
  width: 100%;
  height: 100%;
  border: 0;
}

.doc-viewer-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: contain;
}

.contract-details-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.wizard-actions-right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.wizard-warning {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(248, 113, 113, 0.18);
  color: #fecaca;
  font-size: 13px;
}

.ajax-message {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
}

.ajax-message-success {
  background: rgba(16, 185, 129, 0.18);
  color: #d1fae5;
}

.ajax-message-error {
  background: rgba(248, 113, 113, 0.18);
  color: #fecaca;
}

.table-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  color: rgba(226, 232, 240, 0.7);
}

.table-row:last-child {
  border-bottom: none;
}

.table-head {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(226, 232, 240, 0.5);
}

.contract-templates-table td {
  vertical-align: middle;
}

.contract-templates-table th,
.contract-templates-table td {
  white-space: nowrap;
}

.contract-templates-table table {
  min-width: 900px;
}

.contract-templates-table .contract-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 8px;
}

.contract-templates-table .link-soft {
  font-size: 12px;
}

.customer-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 8px;
  white-space: nowrap;
}

.customer-row>span:nth-child(5) {
  white-space: nowrap;
}

.upload-progress {
  position: relative;
  flex: 1;
  min-width: 120px;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

.upload-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(120deg, var(--brand-strong), #22d3ee);
  transition: width 0.2s ease;
}

#fleetPhotoModal .modal-panel {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  padding: 16px 20px 20px;
}

#fleetPhotoFullscreenModal .modal-panel {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  padding: 16px 20px 20px;
}

#fleetPhotoFullscreenModal .modal-body {
  overflow: hidden;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#fleetPhotoFullscreenModal .doc-viewer-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

#fleetPhotoModal .modal-body {
  overflow: hidden;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#fleetPhotoModal .doc-viewer-content {
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

#fleetPhotoModal .doc-viewer-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
  pointer-events: auto;
}

.fleet-photo-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  flex: 1;
  min-height: 0;
}

.fleet-photo-carousel .carousel-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fleet-photo-carousel .carousel-nav {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.6);
  color: #e2e8f0;
  font-size: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.fleet-photo-carousel .carousel-nav:hover {
  transform: translateY(-1px);
  background: rgba(14, 165, 233, 0.2);
}

.fleet-photo-carousel .carousel-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 4px;
  padding-bottom: 6px;
}

.carousel-indicators .carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
  border: none;
  padding: 0;
}

.carousel-indicators .carousel-dot.is-active {
  background: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
}

/* Fullscreen Carousel Overlay */
.fleet-fullscreen-carousel {
  position: fixed;
  inset: 0;
  z-index: 50000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.95);
}

.fleet-fullscreen-carousel.is-open {
  display: flex;
}

.fullscreen-carousel-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 10;
}

.fullscreen-carousel-close:hover {
  background: rgba(239, 68, 68, 0.7);
  transform: scale(1.05);
}

.fullscreen-carousel-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  padding: 60px 80px 20px;
  overflow: hidden;
}

.fullscreen-carousel-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.fullscreen-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 10;
}

.fullscreen-carousel-prev {
  left: 24px;
}

.fullscreen-carousel-next {
  right: 24px;
}

.fullscreen-carousel-nav:hover {
  background: rgba(56, 189, 248, 0.3);
  transform: translateY(-50%) scale(1.05);
}

.fullscreen-carousel-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: translateY(-50%);
}

.fullscreen-carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 16px 0 24px;
}

.fullscreen-carousel-indicators .carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.fullscreen-carousel-indicators .carousel-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.fullscreen-carousel-indicators .carousel-dot.is-active {
  background: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.25);
  transform: scale(1.1);
}

@media (max-width: 1024px) {
  .sidebar {
    position: fixed;
    z-index: 40;
    left: 0;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .content {
    padding: 24px;
    padding-bottom: 110px;
  }

  .table-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .contract-templates-table table {
    min-width: 720px;
  }
}

.modal-open .header,
.modal-open .sidebar {
  z-index: 1;
}

.mobile-nav {
  display: none;
}

.mobile-nav {
  gap: 6px;
  flex-wrap: nowrap;
  justify-content: space-between;
}

.mobile-nav-item {
  flex: 1 1 0;
  min-width: 0;
}

.mobile-nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 16px;
  color: rgba(226, 232, 240, 0.7);
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: background 0.2s ease, color 0.2s ease;
}

.mobile-nav-item svg {
  width: 18px;
  height: 18px;
}

.mobile-nav-item.is-active {
  color: #e0f2fe;
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.3);
}

@media (max-width: 1024px) {
  .mobile-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 18px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 4px;
    align-items: center;
    padding: 8px;
    background: rgba(12, 18, 32, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 22px;
    backdrop-filter: blur(14px);
    z-index: 80;
  }

  .mobile-nav-item {
    flex: 1 1 0;
    width: auto;
    height: 40px;
    padding: 0;
    flex-direction: column;
    gap: 2px;
    font-size: 9px;
    border-radius: 12px;
  }

  .mobile-nav-item span:last-child {
    display: none;
  }

  .mobile-nav-toggle {
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .content-dashboard .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-card {
    flex-direction: row;
    align-items: center;
    padding: 14px;
    gap: 12px;
  }

  .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .stat-icon svg {
    width: 18px;
    height: 18px;
  }

  .stat-label {
    font-size: 9px;
    letter-spacing: 0.18em;
  }

  .stat-value {
    font-size: 20px;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: floatIn 0.8s ease both;
}

/* Quill Editor Overrides */
.ql-editor {
  white-space: pre-wrap !important;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
}

/* Utilities */
.h-full {
  height: 100%;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-1 {
  flex: 1 1 0%;
}

.mt-auto {
  margin-top: auto;
}

.grid {
  display: grid;
}

.gap-4 {
  gap: 1rem;
}

.space-y-2> :not([hidden])~ :not([hidden]) {
  margin-top: 0.5rem;
}

.space-y-4> :not([hidden])~ :not([hidden]) {
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .xl\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ============================================================
   Vehicle Multi-Photo Upload Component
   ============================================================ */

/* Container row for photos grid and add button */
.vehicle-photo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}

/* Add photo button (camera icon) */
.vehicle-photo-add {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8 0%, #06b6d4 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.35);
  text-align: center;
  line-height: 36px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  flex-shrink: 0;
}

.vehicle-photo-add:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.5);
}

.vehicle-photo-add svg {
  width: 18px;
  height: 18px;
}

/* Limit message */
.vehicle-photo-limit-msg {
  color: #f87171;
  font-size: 12px;
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
}

/* Individual photo slot */
.vehicle-photo-slot {
  position: relative;
  width: 90px;
  flex-shrink: 0;
}

/* Preview box - square with background image */
.vehicle-photo-preview {
  width: 100%;
  padding-top: 100%;
  background-color: rgba(15, 23, 42, 0.8);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 10px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  position: relative;
  transition: border-color 0.2s ease;
}

.vehicle-photo-preview.has-image {
  border-style: solid;
  border-color: rgba(56, 189, 248, 0.4);
}

/* Select button (under preview) */
.vehicle-photo-select {
  display: block;
  margin-top: -4px;
  padding: 6px 8px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.7) 0%, rgba(6, 182, 212, 0.7) 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease;
  border: none;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.vehicle-photo-select:hover {
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.9) 0%, rgba(6, 182, 212, 0.9) 100%);
}

.vehicle-photo-select svg {
  width: 12px;
  height: 12px;
  margin-right: 4px;
  vertical-align: -1px;
}

/* Hidden file input */
.vehicle-photo-input {
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  position: absolute;
}

/* Delete button (X) */
.vehicle-photo-del {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  text-align: center;
  line-height: 20px;
  background: rgba(239, 68, 68, 0.92);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s ease, background 0.2s ease;
  font-size: 12px;
  font-weight: bold;
  border: 2px solid rgba(15, 23, 42, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vehicle-photo-del:hover {
  background: rgba(220, 38, 38, 1);
  transform: scale(1.15);
}

.vehicle-photo-del svg {
  width: 10px;
  height: 10px;
}

/* Existing photo thumbnail (from server) */
.vehicle-photo-existing {
  position: relative;
  width: 90px;
  flex-shrink: 0;
}

.vehicle-photo-existing-img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.vehicle-photo-existing-img:hover {
  transform: scale(1.03);
}

/* Photo upload container full width */
.vehicle-photo-container {
  grid-column: 1 / -1;
}

.vehicle-photo-container .label {
  margin-bottom: 10px;
}