:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #263449;
    --accent-primary: #3b82f6;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding-bottom: 88px;
}

/* Input Placa Estilo Matrícula Colombiana */
.placa-input-box {
    background: #facc15;
    color: #0f172a;
    border: 4px solid #0f172a;
    outline: 3px solid #facc15;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-weight: 900;
    font-size: 2.15rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
    border-radius: 14px;
    padding: 10px 14px;
    width: 100%;
    box-shadow: 0 8px 20px rgba(250, 204, 21, 0.25);
}

.placa-input-box::placeholder {
    color: rgba(15, 23, 42, 0.35);
}

.placa-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #facc15;
    color: #0f172a;
    border: 2px solid #0f172a;
    box-shadow: 0 0 0 2px #facc15;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 900;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 1.15rem;
}

/* Botones de selección de tipo de vehículo táctiles */
.vehicle-type-btn {
    transition: all 0.18s ease;
    border: 2px solid var(--border-color);
    background: rgba(30, 41, 59, 0.8);
}

.vehicle-type-btn.active {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.2);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

/* Bottom Navigation Bar Mobile-First */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 40;
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 8px 0;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
}

.bottom-nav-item.active {
    color: #38bdf8;
}

.bottom-nav-item.active svg {
    transform: scale(1.12);
}

/* Previsualización de Tiquete Térmico 58mm */
.thermal-ticket-paper {
    background: #ffffff;
    color: #000000;
    font-family: 'Courier New', Courier, monospace;
    width: 100%;
    max-width: 310px;
    margin: 0 auto;
    padding: 16px 14px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    position: relative;
    line-height: 1.32;
    font-size: 13px;
}

.thermal-ticket-paper::before,
.thermal-ticket-paper::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 6px;
    background: repeating-linear-gradient(
        -45deg,
        #fff,
        #fff 4px,
        transparent 4px,
        transparent 8px
    );
}

.thermal-placa-box {
    border: 2px solid #000;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 2px;
    padding: 4px 10px;
    margin: 6px auto;
    display: inline-block;
}

/* Reglas exclusivas para Impresión Térmica de 58mm / 80mm (@media print) */
@media print {
    @page {
        size: 58mm auto;
        margin: 0mm;
    }

    body {
        background: #ffffff !important;
        color: #000000 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .no-print {
        display: none !important;
    }

    #print-only-container {
        display: block !important;
        width: 54mm !important;
        margin: 0 auto !important;
        padding: 2mm !important;
        font-family: 'Courier New', Courier, monospace !important;
        font-size: 11px !important;
        color: #000 !important;
        background: #fff !important;
    }
}
