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

:root {
  font-family: 'Inter', system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

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

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

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}

a:hover {
  color: #535bf2;
}

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

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}

button:hover {
  border-color: #646cff;
}

button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }

  a:hover {
    color: #747bff;
  }

  button {
    background-color: #f9f9f9;
  }
}

/* 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;
  }
}/* Horizonte Premium Design System */
.selection-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    color: #1e293b;
    /* Slate 800 */
    font-family: 'Inter', sans-serif;
    animation: fadeIn 0.8s ease-out;
}

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

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

.selection-header {
    text-align: center;
    margin-bottom: 4rem;
}

.selection-header h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.selection-header p {
    color: #64748b;
    /* Slate 500 */
    font-size: 1.25rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Grid: Mobile 1 col, Tablet 2 cols, Desktop 4 cols */
/* Responsive Grid: Mobile 1 col, Tablet 2 cols, Desktop 3 cols */
.bento-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 4rem;
    grid-template-columns: 1fr;
    justify-items: center;
    /* Center cards in their cells if they don't fill */
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Glass Card Style */
.bento-card {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 1.5rem;
    padding: 2.5rem 1.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 280px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    /* Soft Shadow */

    width: 100%;
    max-width: 400px;
    /* Limit width */
}

.bento-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(14, 165, 233, 0.15);
    /* Sky Blue Glow */
    border-color: rgba(14, 165, 233, 0.3);
}

.bento-card.active {
    background: #ffffff;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
    transform: scale(1.02);
}

.card-icon {
    color: #94a3b8;
    margin-bottom: 2rem;
    transition: all 0.4s ease;
    transform: scale(1);
}

.bento-card:hover .card-icon {
    color: #0ea5e9;
    /* Sky Blue */
    transform: scale(1.1);
}

.bento-card.active .card-icon {
    color: #0284c7;
}

.card-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1e293b;
    letter-spacing: -0.01em;
}

.card-content span {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
}

/* Glow Effect - Subtle */
.glow-effect {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.bento-card.active .glow-effect {
    opacity: 1;
}

/* Button */
.action-bar {
    display: flex;
    justify-content: center;
}

.btn-primary {
    background: #0f172a;
    /* Slate 900 */
    color: white;
    border: none;
    padding: 1.25rem 4rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.2);
}

.btn-primary:not(:disabled):hover {
    transform: translateY(-2px);
    background: #1e293b;
    box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.3);
}

.btn-primary:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.7;
}.form-container {
    width: 100%;
    max-width: 600px;
    /* Wider for wizard */
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    padding: 0;
    /* Remove padding to handle header/body separately */
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 51, 102, 0.1);
    animation: slideIn 0.3s ease-out;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

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

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

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

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

.btn-back-wizard {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    margin-right: 16px;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s;
}

.btn-back-wizard:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.wizard-title h2 {
    margin: 0;
    font-size: 1.25rem;
    color: #0f172a;
}

.wizard-title span {
    font-size: 0.875rem;
    color: #64748b;
}

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

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 14px;
    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: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.step-indicator.active .step-number {
    background: #003366;
    border-color: #003366;
    color: white;
    box-shadow: 0 0 0 4px rgba(0, 51, 102, 0.1);
}

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

.step-label {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

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

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

/* Cards for Trip Selection */
.trip-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trip-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.trip-card.selected {
    border-color: #003366;
    background: #f0f9ff;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.1);
}

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

.trip-vessel {
    font-size: 0.875rem;
    color: #64748b;
}

.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: 12px;
    margin-bottom: 24px;
}

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

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

.input-field:focus {
    outline: none;
    border-color: #003366;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.05);
}

.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-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #64748b;
    font-size: 0.9rem;
}

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

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

.btn-next {
    background: #003366;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-next:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

.btn-next:hover:not(:disabled) {
    background: #002244;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.2);
}

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

    .wizard-body {
        padding: 20px;
    }
}

/* 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: 12px;
    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: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: #e2e8f0;
    color: #64748b;
    transition: all 0.2s;
    min-width: 80px;
}

.direction-btn.active {
    background: #003366;
    color: white;
}

/* Breakpoint para telas muito pequenas (iPhone SE, < 480px) */
@media (max-width: 480px) {
    .wizard-header {
        padding: 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;
}

/* Vehicle Management Cards (Premium Polish) */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.vehicle-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vehicle-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.vehicle-card-header {
    padding: 20px 24px;
    background: linear-gradient(to right, #ffffff, #f8fafc);
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vehicle-card-title {
    margin: 0;
    color: #1e293b;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.vehicle-price-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vehicle-base-label {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.vehicle-base-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #10b981;
    letter-spacing: -0.03em;
}

.btn-icon-edit {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    margin-left: 8px;
}

.btn-icon-edit:hover {
    background: #f0f9ff;
    color: #0284c7;
    border-color: #bae6fd;
    transform: rotate(15deg);
}

.vehicle-actions-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-left: 12px;
}

.btn-icon-delete {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #fee2e2;
    background: white;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    opacity: 0.6;
}

.btn-icon-delete:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fca5a5;
    opacity: 1;
    transform: scale(1.05);
}

.vehicle-models-section {
    padding: 24px;
    flex: 1;
    background: #ffffff;
}

.vehicle-section-title {
    margin: 0 0 16px 0;
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.vehicle-models-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 8px;
    /* Space for scrollbar */
    align-content: flex-start;
}

/* Custom Scrollbar for better UI */
.vehicle-models-list::-webkit-scrollbar {
    width: 6px;
}

.vehicle-models-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.vehicle-models-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.vehicle-models-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.vehicle-badge {
    background: #f8fafc;
    color: #475569;
    padding: 8px 16px;
    border-radius: 9999px;
    /* Pill shape */
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
}

.vehicle-badge:hover {
    background: #e0f2fe;
    color: #0369a1;
    border-color: #bae6fd;
    transform: translateY(-1px);
}
.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;
}
