* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, sans-serif; background: #f5f5f5; }
.container { max-width: 600px; margin: 0 auto; padding: 20px; }

header { text-align: center; margin-bottom: 20px; background: white; padding: 20px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
header h1 { color: #2563eb; font-size: 1.8em; margin-bottom: 5px; }
.stats { color: #6b7280; font-weight: 500; }

.tabs { display: flex; background: white; border-radius: 12px; padding: 4px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); margin-bottom: 20px; }
.tab { flex: 1; padding: 12px; border: none; background: none; font-weight: 500; border-radius: 8px; cursor: pointer; transition: all 0.2s; }
.tab.active { background: #2563eb; color: white; }
.tab:hover { background: #3b82f6; color: white; }

.tab-content { display: none; background: white; padding: 20px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.tab-content.active { display: block; }

.actions { display: flex; gap: 10px; margin-bottom: 20px; }
button { padding: 12px 20px; border: none; border-radius: 8px; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.btn-primary { background: #10b981; color: white; }
.btn-secondary { background: #f3f4f6; color: #374151; }
button:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

.producto { display: flex; justify-content: space-between; align-items: center; padding: 16px; margin-bottom: 12px; background: #f9fafb; border-radius: 8px; border-left: 4px solid #10b981; }
.producto.falta { border-left-color: #ef4444; background: #fef2f2; }
.producto.nombre { font-weight: 600; color: #111827; flex: 1; }
.producto.detalles { color: #6b7280; font-size: 0.9em; margin-left: 10px; }
.producto.controles { display: flex; gap: 8px; }
.btn-sm { padding: 6px 12px; font-size: 0.85em; }

.scanner-container { text-align: center; }
#video { border-radius: 12px; max-width: 100%; }
#scannerResult { margin-top: 15px; padding: 12px; border-radius: 8px; font-size: 1.1em; font-weight: 600; }

.config-section h3 { margin-bottom: 15px; color: #374151; }
.input-stock { width: 60px; padding: 6px; border: 1px solid #d1d5db; border-radius: 4px; text-align: center; }

@media (max-width: 480px) {
    .container { padding: 10px; }
    .tabs { flex-direction: column; }
    .producto { flex-direction: column; align-items: flex-start; gap: 10px; }
}
.config-sub { display: none; margin-top: 15px; }
.config-sub.active { display: block; }
