: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);
}

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

.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);
}

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

.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: sticky;
  top: 0;
  height: 100vh;
  backdrop-filter: blur(18px);
  transition: width 0.3s ease;
}

.sidebar.collapsed {
  width: 90px;
}

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

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

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

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

.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-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;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 24px 32px;
  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;
}

.content {
  padding: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: rgba(15, 23, 42, 0.75);
  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);
}

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

.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: 16px;
  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 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(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

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

.fleet-search {
  position: relative;
}

.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: 9999;
}

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

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

.modal-panel {
  position: relative;
  width: min(720px, 100%);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  padding: 24px;
  z-index: 1;
}

.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-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

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

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

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

.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);
}

@media (max-width: 900px) {
  .team-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .team-head {
    display: none;
  }
}
.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;
}

.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;
  flex: 1;
}

.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.5);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

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

.wizard-step.is-active span {
  background: rgba(56, 189, 248, 0.3);
  color: #e0f2fe;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2);
}

.wizard-step.is-complete span {
  background: rgba(16, 185, 129, 0.3);
  color: #d1fae5;
}

.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;
}

.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-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);
}

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

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

  .content {
    padding: 24px;
  }

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

@media (max-width: 640px) {
  .stat-card {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

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