@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root {
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Manrope', 'Inter', sans-serif;

  font-family: var(--font-body);
  line-height: 1.6;
  font-weight: 400;

  /* Official 60-30-10 Color Tokens */
  --bg-60: #f8fafc;
  --surface-60: #ffffff;
  --text-30-main: #0f172a;
  --text-30-muted: #475569;
  --accent-10: #3742fa;
  --accent-10-hover: #2c35c9;
  --accent-10-soft: #eef0ff;

  --success: #059669;
  --error: #dc2626;
  --border-light: #e2e8f0;

  color-scheme: light;
  color: var(--text-30-main);
  background-color: var(--bg-60);

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

a {
  font-weight: 600;
  color: #3742fa;
  text-decoration: inherit;
  transition: color 0.2s ease;
}

a:hover {
  color: #2c35c9;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background-color: #f8fafc;
  color: #0f172a;
}

h1, h2, h3, h4, .brand-name-text, .wizard-title h2, .footer-col-title {
  font-family: var(--font-heading);
}

h1 {
  font-size: 3rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-30-main);
}

button {
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 600;
  font-family: var(--font-body);
  background-color: var(--accent-10);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

button:hover {
  background-color: var(--accent-10-hover);
}

button:focus,
button:focus-visible {
  outline: 3px solid rgba(55, 66, 250, 0.3);
}

/* Responsive Utilities */

.cash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

@media (max-width: 640px) {
  .cash-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .mobile-font-reduce {
    font-size: 1.8rem !important;
  }
}

html,
body {
  margin: 0;
  padding: 0;
  min-width: 320px;
  min-height: 100vh;
  background-color: var(--bg-60);
  color: var(--text-30-main);
  overflow-x: hidden;
}

/* Seção 1 — Barra Superior de Confiança (Fundo Branco + Full-bleed) */

.top-trust-bar {
  width: 100%;
  background: var(--surface-60);
  border-bottom: 1px solid var(--border-light);
  padding: 22px 32px;
  box-sizing: border-box;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.04);
}

.top-trust-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.top-trust-left {
  display: flex;
  align-items: center;
}

/* 1. "Master Viagem": Fonte Manrope (Headings), Peso 700, Tamanho 24px (1.5rem), Cor Principal #3742fa como Acento */

.brand-name-text {
  font-size: 1.5rem; /* 24px em desktop */
  font-weight: 700;
  color: var(--accent-10);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.top-trust-right {
  max-width: 540px;
  text-align: right;
}

/* 2. Frase de apoio: Peso normal (400), Tamanho 15px (0.9375rem), Line-height 1.6, Cor 30% Neutra Escura #475569 */

.brand-tagline-text {
  font-size: 0.9375rem; /* 15px em desktop */
  font-weight: 400;
  color: var(--text-30-muted);
  margin: 0;
  line-height: 1.6;
}

/* Seção 2 — Hero Apenas com Foto de Marajó (Tag <img> Real) */

.hero-container {
  width: 100%;
  height: 520px;
  overflow: hidden;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-60);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Responsividade para Telas Médias e Mobile */

@media (max-width: 868px) {
  .top-trust-bar {
    padding: 16px 20px;
  }

  .top-trust-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .top-trust-left {
    flex-direction: column;
    gap: 6px;
    align-items: center;
  }

  .brand-name-text {
    font-size: 1.25rem; /* 20px em mobile */
  }

  .top-trust-right {
    text-align: center;
    max-width: 100%;
  }

  .brand-tagline-text {
    font-size: 0.85rem; /* 13.6px em mobile */
    line-height: 1.5;
  }

  .hero-container {
    height: 280px;
    margin-bottom: 20px;
  }
}

/* Trust Badges Strip */

.trust-strip-container {
  width: 100%;
  margin: 0 auto 28px auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.trust-card {
  background: var(--surface-60);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.trust-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-10);
  box-shadow: 0 8px 24px rgba(55, 66, 250, 0.1);
}

.trust-card-icon-lucide {
  color: var(--accent-10);
  flex-shrink: 0;
}

.trust-card-text {
  font-size: 0.9rem;
  font-weight: 500; /* Peso médio moderado */
  color: var(--text-30-main);
  line-height: 1.5;
}

@media (max-width: 1023px) {
  .trust-strip-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .trust-strip-container {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
  }

  .trust-card {
    padding: 14px 16px;
  }
}

/* Refined Professional Footer Styling (60-30-10: Neutral Slate Dark #0f172a, sem fundo azul expansivo) */

.site-footer {
  width: 100%;
  background: #0f172a; /* Slate 900 neutro escuro profissional */
  color: #ffffff;
  padding: 60px 32px 0 32px;
  margin-top: 56px;
  box-sizing: border-box;
}

.footer-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  padding-bottom: 56px;
}

/* 1. Títulos de Coluna: Manrope (Headings), Pequenos (13px), Peso Médio (600), Espaçados (0.5px) */

.footer-col-title {
  font-size: 0.8125rem; /* 13px */
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 20px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0.95;
}

/* 2. Conteúdo dos Itens: Inter (Body), Peso Normal (400), Line-height 1.7 */

.footer-info-list,
.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-info-list li {
  font-size: 0.9rem;
  font-weight: 400;
  color: #94a3b8; /* Slate 400 suave para leitura */
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.7;
}

/* 3. Ícones Sutis Outline */

.footer-icon-lucide {
  color: #64748b; /* Slate 500 sutil */
  flex-shrink: 0;
}

.footer-company-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: 0.02em;
}

.footer-cnpj-text {
  font-size: 0.88rem;
  font-weight: 400;
  color: #94a3b8;
  margin: 0 0 18px 0;
}

.footer-marinha-outline-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #94a3b8;
  font-weight: 400;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  line-height: 1.7;
}

.instagram-link:hover {
  color: #ffffff;
}

.instagram-link:hover .footer-icon-lucide {
  color: var(--accent-10);
}

/* 4. Linha Divisória & Copyright (12px, 0.5 opacity) */

.footer-bottom-bar {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 24px;
  text-align: center;
  font-size: 0.75rem; /* 12px */
  color: #64748b;
  box-sizing: border-box;
}

.footer-bottom-bar p {
  margin: 0;
  font-weight: 400;
  line-height: 1.5;
}

/* Responsividade Mobile */

@media (max-width: 868px) {
  .site-footer {
    padding: 44px 20px 0 20px;
    margin-top: 36px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 36px;
  }

  .footer-col-title {
    margin-bottom: 14px;
  }
}.form-container {
    width: 100%;
    max-width: 600px;
    background: #ffffff;
    padding: 0;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(55, 66, 250, 0.08), 0 2px 10px rgba(15, 23, 42, 0.04);
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 500px;
    transition: max-width 0.3s ease;
    border: 1px solid #e2e8f0;
}

/* 2-Column Split Layout for Desktop & Tablet */
@media (min-width: 768px) {
    .form-container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .form-container {
        max-width: 1120px;
    }
}

.wizard-layout-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
}

@media (min-width: 768px) {
    .wizard-layout-wrapper {
        display: grid;
        grid-template-columns: 1fr 340px;
    }
}

@media (min-width: 1200px) {
    .wizard-layout-wrapper {
        grid-template-columns: 1fr 380px;
    }
}

.wizard-main-column {
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e2e8f0;
}

.wizard-sidebar-column {
    display: none;
    background: #f8fafc;
    padding: 24px;
    border-left: 1px solid #e2e8f0;
}

@media (min-width: 768px) {
    .wizard-sidebar-column {
        display: block;
    }
}

/* Sidebar Card Styling */
.desktop-summary-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(55, 66, 250, 0.06);
    position: sticky;
    top: 20px;
}

.summary-header-badge {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
    letter-spacing: -0.01em;
}

.summary-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 0.9rem;
}

.detail-label {
    color: #475569;
    font-weight: 500;
}

.detail-value {
    color: #0f172a;
    font-weight: 600;
    text-align: right;
}

.detail-value.highlight-blue {
    color: #3742fa;
    font-weight: 700;
}

.detail-value.highlight-green {
    color: #059669;
    font-weight: 700;
}

.detail-value.truncate {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.summary-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 18px 0;
}

.summary-total-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    background: #eef0ff;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid #d0d7ff;
}

.total-price {
    font-size: 1.35rem;
    color: #3742fa;
    font-weight: 800;
}

.security-notice {
    margin-top: 18px;
    text-align: center;
    font-size: 0.8rem;
    color: #475569;
    font-weight: 600;
    background: #f8fafc;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

/* Wizard Header */
.wizard-header {
    background: #ffffff;
    padding: 24px 28px;
    border-bottom: 1px solid #e2e8f0;
}

.wizard-title-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.btn-back-wizard {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 1.1rem;
    color: #475569;
    cursor: pointer;
    margin-right: 16px;
    padding: 8px 12px;
    border-radius: 10px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-back-wizard:hover {
    background: #eef0ff;
    color: #3742fa;
    border-color: #3742fa;
}

.wizard-title h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.wizard-title span {
    font-size: 0.875rem;
    color: #475569;
    font-weight: 500;
}

/* Progress Bar */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 0 10px;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.step-indicator {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.step-indicator.active .step-number {
    background: #3742fa;
    border-color: #3742fa;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(55, 66, 250, 0.18);
}

.step-indicator.completed .step-number {
    background: #059669;
    border-color: #059669;
    color: #ffffff;
}

.step-label {
    font-size: 0.875rem; /* 14px */
    color: #475569;
    font-weight: 600;
}

.step-indicator.active .step-label {
    color: #3742fa;
    font-weight: 700;
}

.step-description-text {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #3742fa;
    background: #eef0ff;
    border: 1px solid #d0d7ff;
    padding: 10px 18px;
    border-radius: 10px;
    margin-top: 18px;
}

/* Inline Error Alert Box */
.inline-error-alert {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #dc2626;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 500;
    animation: fadeIn 0.2s ease-in;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.06);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Trust & Security Banner */
.trust-security-banner {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-icon {
    font-size: 1.5rem;
}

.trust-badge-item strong {
    color: #166534;
    font-size: 0.95rem;
    display: block;
}

.trust-badge-item p {
    margin: 2px 0 0 0;
    color: #15803d;
    font-size: 0.82rem;
}

/* Boarding & Support Info Box */
.boarding-support-box {
    margin-top: 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.boarding-info {
    font-size: 0.88rem;
    color: #0f172a;
    line-height: 1.45;
}

.support-info {
    font-size: 0.84rem;
    color: #475569;
    border-top: 1px solid #e2e8f0;
    padding-top: 10px;
}

/* Wizard Body */
.wizard-body {
    padding: 32px;
    flex: 1;
    overflow-y: auto;
}

/* Cards for Trip Selection */
.trip-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trip-card:hover {
    border-color: #3742fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(55, 66, 250, 0.08);
}

.trip-card.selected {
    border-color: #3742fa;
    background: #eef0ff;
    box-shadow: 0 4px 16px rgba(55, 66, 250, 0.12);
}

.trip-time {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
}

.trip-vessel {
    font-size: 0.875rem;
    color: #475569;
    margin-top: 2px;
}

.trip-status {
    text-align: right;
}

.trip-seats {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #059669;
}

.trip-seats.low {
    color: #d97706;
}

.trip-seats.empty {
    color: #dc2626;
}

/* Form Group */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    margin-left: 2px;
}

/* Inputs & Selects */
.input-field {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #f8fafc;
    color: #0f172a;
    -webkit-appearance: none;
    appearance: none;
}

.input-field:focus {
    outline: none;
    border-color: #3742fa;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(55, 66, 250, 0.12);
}

.plate-input {
    font-family: monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
}

/* Payment Summary */
.summary-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #475569;
    font-size: 0.92rem;
}

.summary-total {
    border-top: 1px solid #e2e8f0;
    padding-top: 14px;
    margin-top: 14px;
    font-weight: 700;
    color: #0f172a;
    font-size: 1.25rem;
    display: flex;
    justify-content: space-between;
}

/* Button text responsive controls */
.btn-text-desktop {
    display: inline;
}

.btn-text-mobile {
    display: none;
}

@media (max-width: 640px) {
    .btn-text-desktop {
        display: none;
    }
    .btn-text-mobile {
        display: inline;
    }
}

/* Footer Actions */
.wizard-footer {
    padding: 24px 32px;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Responsive */
@media (max-width: 767px) {
    .form-container {
        min-height: 100vh;
        height: auto;
        max-height: none;
        border-radius: 0;
        overflow: visible;
        border: none;
    }

    .wizard-body {
        padding: 20px 16px;
        overflow-y: visible;
    }

    .wizard-footer {
        padding: 16px;
        position: relative;
        bottom: auto;
        z-index: 1;
        box-shadow: none;
        border-top: 2px solid #e2e8f0;
        margin-top: 20px;
    }

    .btn-next {
        width: 100%;
        justify-content: center;
        padding: 16px 20px;
        font-size: 1.05rem;
    }
}

.btn-next {
    background: #3742fa;
    color: #ffffff;
    border: none;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(55, 66, 250, 0.25);
}

.btn-next:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-next:hover:not(:disabled) {
    background: #2c35c9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 53, 201, 0.35);
}

.btn-next:active:not(:disabled) {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 640px) {
    .form-container {
        min-height: 100vh;
        height: auto;
        max-height: none;
        border-radius: 0;
    }

    .wizard-body {
        padding: 16px;
        overflow-y: visible;
    }
}

/* Responsive Form Grids */
.user-data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}
.user-data-grid label {
    grid-column: 1 / -1;
    margin-bottom: -4px;
}

.vehicle-data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: center;
}

@media (max-width: 640px) {
    .user-data-grid,
    .vehicle-data-grid {
        grid-template-columns: 1fr;
    }
}

/* Botões de direção (Ida/Volta) */
.direction-btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.direction-btn {
    flex: 1;
    padding: 10px 18px;
    font-size: 0.92rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    background: #f8fafc;
    color: #475569;
    transition: all 0.2s ease;
    min-width: 80px;
}

.direction-btn:hover {
    background: #eef0ff;
    color: #3742fa;
    border-color: #3742fa;
}

.direction-btn.active {
    background: #3742fa;
    color: #ffffff;
    border-color: #3742fa;
    box-shadow: 0 4px 12px rgba(55, 66, 250, 0.2);
}

/* Breakpoint para telas muito pequenas (iPhone SE, < 480px) */
@media (max-width: 480px) {
    .wizard-header {
        padding: 18px 16px;
    }

    .wizard-body {
        padding: 16px;
    }

    .direction-btn {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .user-data-grid,
    .vehicle-data-grid {
        gap: 10px;
    }

    .btn-next {
        width: 100%;
        justify-content: center;
    }
}/* Admin Premium Theme (Horizonte Light) */
/* Global Responsive Utilities */
.desktop-hidden {
    display: none !important;
}

.mobile-hidden {
    display: block !important;
}

.admin-container {
    display: flex;
    height: 100vh;
    background-color: #f8fafc;
    /* Slate 50 */
    font-family: 'Inter', sans-serif;
    color: #1e293b;
}

/* Sidebar - White Glass Style */
.admin-sidebar {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    color: #475569;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.02);
    z-index: 20;
}

.admin-brand {
    padding: 24px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    border-bottom: 1px solid #f1f5f9;
    letter-spacing: -0.02em;
}

.admin-sidebar nav {
    padding: 16px;
}

.admin-sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-sidebar nav a {
    display: block;
    padding: 12px 16px;
    color: #64748b;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.admin-sidebar nav a:hover {
    background-color: #f1f5f9;
    color: #0ea5e9;
    /* Sky Blue */
    transform: translateX(4px);
}

.admin-sidebar nav a.active {
    background-color: #e0f2fe;
    color: #0284c7;
}

/* Content Area */
.admin-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f8fafc;
}

.admin-header {
    height: 70px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.admin-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: -0.02em;
}

.user-profile {
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.admin-page {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

/* Dashboard Cards (Premium) */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: #ffffff;
    padding: 32px;
    border-radius: 24px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
}

.stat-card h3 {
    margin: 0 0 16px 0;
    color: #64748b;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.stat-card .value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.03em;
}

/* Tables */
.occupancy-table {
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

.occupancy-table th,
.occupancy-table td {
    padding: 20px 24px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

.occupancy-table th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.occupancy-table tr:last-child td {
    border-bottom: none;
}

/* Mobile Responsive */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #1e293b;
    padding: 8px;
    border-radius: 8px;
}

.mobile-toggle:hover {
    background: #f1f5f9;
}

.sidebar-overlay {
    display: none;
}

@media (max-width: 768px) {
    .admin-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        z-index: 1000;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .admin-sidebar.open {
        left: 0;
    }

    .mobile-toggle {
        display: block;
    }

    .sidebar-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.2);
        backdrop-filter: blur(4px);
        z-index: 900;
    }

    /* Fix Header Overflow */
    .admin-header {
        padding: 0 15px;
        height: 60px;
    }

    .admin-header h2 {
        font-size: 1.1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 180px;
        /* Prevent title from pushing layout */
    }

    .admin-page {
        padding: 15px;
        /* Reduce padding on mobile */
    }

    .stat-card {
        padding: 20px;
        /* Compact cards */
    }

    .stat-card .value {
        font-size: 2rem;
    }

    /* Make table scrollable horizontally without breaking layout - Legacy Support */
    .occupancy-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Modern Mobile Card Views (Replaces Tables) */
    .mobile-card-view {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .desktop-hidden {
        display: block !important;
        /* Show on mobile */
    }

    .mobile-hidden {
        display: none !important;
        /* Hide desktop elements on mobile */
    }

    .mobile-card {
        background: white;
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        border: 1px solid #f1f5f9;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .mobile-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #f1f5f9;
        padding-bottom: 10px;
        margin-bottom: 5px;
        font-weight: 700;
        color: #1e293b;
    }

    .mobile-card-row {
        display: flex;
        justify-content: space-between;
        font-size: 0.9rem;
    }

    .mobile-card-label {
        color: #64748b;
    }

    .mobile-card-value {
        font-weight: 500;
        color: #334155;
        text-align: right;
    }

    .mobile-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 10px;
    }

    .mobile-actions button {
        padding: 12px;
        font-size: 1rem;
        justify-content: center;
    }

    /* POS Mobile Adjustments */
    .pos-grid {
        grid-template-columns: 1fr !important;
    }

    .pos-modal {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        display: flex;
        flex-direction: column;
    }

    .pos-modal-content {
        flex: 1;
        overflow-y: auto;
    }

    /* Trip Management Mobile Adjustments */
    .trip-controls-bar {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        /* Reset desktop's flex-end */
        gap: 15px;
        padding: 15px;
        /* Reduce padding for more space */
    }

    .trip-actions {
        display: flex;
        flex-wrap: wrap;
        /* Allow buttons to wrap if needed */
        gap: 10px;
        margin-top: 10px;
        margin-left: 0 !important;
        /* Override desktop margin-left: auto */
        width: 100%;
    }

    .trip-actions>* {
        flex: 1;
        /* Buttons grow to fill space */
        min-width: 100px;
        /* Prevent being too small */
    }

    /* Further adjust header for iPhone overlap issue */
    .admin-header {
        padding: 0 10px;
        /* Tighter padding */
        gap: 5px;
        /* Reduce gap between elements */
    }

    .user-profile {
        padding: 4px 8px;
        /* Smaller badge */
        font-size: 0.75rem;
        max-width: 90px;
        /* Force truncate earlier */
    }
}

/* Desktop styles for Trip Management controls (Default) */
.trip-controls-bar {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    align-items: flex-end;
}

.trip-actions {
    margin-left: auto;
    display: flex;
    gap: 10px;
}
.closing-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    backdrop-filter: blur(6px);
    padding: 20px;
}

.closing-modal-content {
    background: #ffffff;
    border-radius: 20px;
    width: 90vw;
    max-width: 1400px;
    height: 88vh;
    max-height: 900px;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
}

.closing-modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8fafc;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.closing-modal-header h3 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 12px;
}

.closing-modal-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.closing-summary-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 28px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
}

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

.closing-stat-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 16px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.closing-stat-label {
    font-size: 0.85rem;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.closing-stat-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    margin-top: 6px;
}

.closing-table {
    width: 100%;
    min-width: 550px;
    border-collapse: collapse;
    font-size: 1.05rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .closing-modal-content {
        width: 96vw !important;
        height: 92vh !important;
    }

    .closing-modal-body {
        padding: 16px !important;
        gap: 16px !important;
    }

    .closing-table th,
    .closing-table td {
        padding: 10px 12px !important;
        font-size: 0.9rem !important;
    }
}

.closing-table th {
    background-color: #f1f5f9;
    padding: 14px 18px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #334155;
    letter-spacing: 0.05em;
}

.closing-table td {
    padding: 14px 18px;
    border-top: 1px solid #e2e8f0;
    color: #1e293b;
    font-size: 1.05rem;
}

.closing-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 700;
}

.closing-badge-closed {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.closing-badge-pending {
    background-color: #fef9c3;
    color: #a16207;
    border: 1px solid #fde047;
}

.closing-badge-locked {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.closing-modal-footer {
    padding: 20px 32px;
    border-top: 1px solid #e2e8f0;
    background-color: #f8fafc;
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.closing-modal-footer .btn {
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.closing-modal-footer .btn-primary {
    background-color: #16a34a;
    color: #ffffff;
    border: none;
}

.closing-modal-footer .btn-primary:hover {
    background-color: #15803d;
}

.closing-modal-footer .btn-secondary {
    border: 1px solid #cbd5e1;
}

.adjustment-pos {
    background-color: #f0fdf4;
    color: #15803d;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
}

.adjustment-neg {
    background-color: #fef2f2;
    color: #b91c1c;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
}

.trip-management-container {
    padding: 20px;
    background-color: #f8fafc;
    min-height: calc(100vh - 80px); /* Adjust based on header height */
}

.trip-management-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.trip-management-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.trip-controls-bar {
    background-color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.trip-control-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.trip-control-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
}

.trip-control-input {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #334155;
    background-color: white;
    transition: all 0.2s;
}

.trip-control-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.trip-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-secondary {
    background-color: #64748b;
    color: white;
}

.btn-secondary:hover {
    background-color: #475569;
}

.btn-accent {
    background-color: #ec4899;
    color: white;
}

.btn-accent:hover {
    background-color: #db2777;
}

/* Table Styles */
.trips-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow-x: auto;
}

.trips-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 800px;
}

.trips-table th {
    background-color: #f8fafc;
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
    letter-spacing: 0.05em;
}

.trips-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 0.95rem;
    vertical-align: middle;
}

.trips-table tr:last-child td {
    border-bottom: none;
}

.trips-table tr:hover td {
    background-color: #f8fafc;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.status-scheduled {
    background-color: #d1fae5;
    color: #065f46;
}

.status-cancelled {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Action Buttons in Table */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 6px;
}

.btn-icon {
    background-color: #f1f5f9;
    color: #475569;
}

.btn-icon:hover {
    background-color: #e2e8f0;
    color: #1e293b;
}

.btn-edit {
    background-color: #f59e0b;
    color: white;
}

.btn-edit:hover {
    background-color: #d97706;
}

.btn-cancel {
    background-color: white;
    color: #ef4444;
    border: 1px solid #ef4444;
}

.btn-cancel:hover {
    background-color: #fef2f2;
}

.btn-delete {
    background-color: transparent;
    color: #991b1b;
}

.btn-delete:hover {
    text-decoration: underline;
    background-color: transparent;
}

/* Mobile Responsive Cards */
.mobile-card-view {
    display: none;
    flex-direction: column;
    gap: 1rem;
}

.mobile-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.mobile-card-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.mobile-card-label {
    color: #64748b;
}

.mobile-card-value {
    font-weight: 500;
    color: #1e293b;
}

.mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .trips-table-container {
        display: none;
    }
    
    .mobile-card-view {
        display: flex;
    }

    .trip-controls-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .trip-actions {
        flex-direction: column;
    }
    
    .trip-actions > * {
        width: 100%;
        text-align: center;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    backdrop-filter: blur(2px);
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-size: 1.25rem;
    color: #1e293b;
    margin: 0;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.modal-actions button {
    flex: 1;
}

.trip-management-container {
    padding: 20px;
    background-color: #f8fafc;
    min-height: calc(100vh - 80px); /* Adjust based on header height */
}

.trip-management-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.trip-management-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.trip-controls-bar {
    background-color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.trip-control-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.trip-control-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
}

.trip-control-input {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #334155;
    background-color: white;
    transition: all 0.2s;
}

.trip-control-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.trip-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-secondary {
    background-color: #64748b;
    color: white;
}

.btn-secondary:hover {
    background-color: #475569;
}

.btn-accent {
    background-color: #ec4899;
    color: white;
}

.btn-accent:hover {
    background-color: #db2777;
}

/* Table Styles */

.trips-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow-x: auto;
}

.trips-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 800px;
}

.trips-table th {
    background-color: #f8fafc;
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
    letter-spacing: 0.05em;
}

.trips-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 0.95rem;
    vertical-align: middle;
}

.trips-table tr:last-child td {
    border-bottom: none;
}

.trips-table tr:hover td {
    background-color: #f8fafc;
}

/* Status Badges */

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.status-scheduled {
    background-color: #d1fae5;
    color: #065f46;
}

.status-cancelled {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Action Buttons in Table */

.action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 6px;
}

.btn-icon {
    background-color: #f1f5f9;
    color: #475569;
}

.btn-icon:hover {
    background-color: #e2e8f0;
    color: #1e293b;
}

.btn-edit {
    background-color: #f59e0b;
    color: white;
}

.btn-edit:hover {
    background-color: #d97706;
}

.btn-cancel {
    background-color: white;
    color: #ef4444;
    border: 1px solid #ef4444;
}

.btn-cancel:hover {
    background-color: #fef2f2;
}

.btn-delete {
    background-color: transparent;
    color: #991b1b;
}

.btn-delete:hover {
    text-decoration: underline;
    background-color: transparent;
}

/* Mobile Responsive Cards */

.mobile-card-view {
    display: none;
    flex-direction: column;
    gap: 1rem;
}

.mobile-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.mobile-card-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.mobile-card-label {
    color: #64748b;
}

.mobile-card-value {
    font-weight: 500;
    color: #1e293b;
}

.mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .trips-table-container {
        display: none;
    }
    
    .mobile-card-view {
        display: flex;
    }

    .trip-controls-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .trip-actions {
        flex-direction: column;
    }
    
    .trip-actions > * {
        width: 100%;
        text-align: center;
    }
}

/* Modal Styles */

.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    backdrop-filter: blur(2px);
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-size: 1.25rem;
    color: #1e293b;
    margin: 0;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.modal-actions button {
    flex: 1;
}

.tariff-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow-x: auto;
    display: block !important;
}

@media (max-width: 768px) {
    .tariff-table-container {
        display: block !important;
        margin-top: 15px;
    }
    
    .tariff-table-container .trips-table {
        min-width: 600px;
    }
}
