/* public/assets/css/app.css */

/* Estilos generales para pantalla táctil */
* {
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    touch-action: manipulation;
}

/* Botones táctiles */
.touch-btn {
    min-height: 48px;
    min-width: 48px;
    touch-action: manipulation;
    user-select: none;
}

.touch-btn:active {
    opacity: 0.7;
    transform: scale(0.96);
}

.touch-active {
    opacity: 0.7;
    transform: scale(0.96);
}

/* Inputs táctiles */
.touch-input {
    min-height: 44px;
    font-size: 16px !important;
}

/* Tarjetas interactivas */
.card-touch {
    touch-action: manipulation;
    user-select: none;
}

.active-card {
    transform: scale(0.97);
    opacity: 0.8;
}

/* Nav links */
.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: #4b5563;
    transition: all 0.2s;
    min-height: 48px;
}

.nav-link:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}

.nav-link.active {
    background-color: #eff6ff;
    color: #2563eb;
}

.nav-link i {
    margin-right: 8px;
    font-size: 1.1rem;
}

/* Estilos para scroll en listas largas */
.scrollable-list {
    max-height: 500px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Mesas */
.mesa-container {
    display: grid;
    gap: 12px;
}

.mesa-card {
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.2s;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Estilos para tickets */
.ticket {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    max-width: 300px;
    margin: 0 auto;
}

.ticket .header {
    text-align: center;
    border-bottom: 1px dashed #000;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.ticket .footer {
    text-align: center;
    border-top: 1px dashed #000;
    padding-top: 10px;
    margin-top: 10px;
}

.ticket .item {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
}

.ticket .item .name {
    flex: 1;
}

.ticket .item .price {
    text-align: right;
    white-space: nowrap;
}

.ticket .total {
    font-size: 16px;
    font-weight: bold;
    padding: 5px 0;
}

/* Responsive */
@media (max-width: 640px) {
    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .nav-link i {
        margin-right: 4px;
    }
    
    .grid-cols-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        padding: 0 !important;
    }
    
    .bg-white {
        background: white !important;
        box-shadow: none !important;
    }
}