:root {
    --bg-app: #13111a;
    --bg-card: #1f1d2b;
    --neon-green: #22c55e;
    --neon-purple: #d946ef;
    --text-main: #ffffff;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-app);
    color: var(--text-main);
    margin: 0; padding-bottom: 120px;
}

.hidden { display: none !important; }

/* HEADER & DASHBOARD */
header {
    padding: 15px 20px; background: #2e1065;
    border-radius: 0 0 30px 30px; position: sticky; top: 0; z-index: 50;
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4); margin-bottom: 20px;
}
header h1 { font-weight: 800; text-transform: uppercase; color: white; font-size: 0.9rem; }

.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding: 0 20px; }
.btn-area {
    height: 120px; background: var(--bg-card); border-radius: 20px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.05); color: white; font-weight: 600;
}
.btn-area span.icon { font-size: 2.5rem; margin-bottom: 8px; }

/* Bordes colores */
.btn-vitrina { border-bottom: 4px solid #d946ef; }
.btn-camara { border-bottom: 4px solid #22c55e; }
.btn-insumos { border-bottom: 4px solid #f59e0b; }
.btn-cocina { border-bottom: 4px solid #f97316; }
.btn-barra { border-bottom: 4px solid #3b82f6; }
.btn-turnos { border-bottom: 4px solid #8b5cf6; }

/* --- VITRINA --- */
.vitrina-container { background: var(--bg-card); padding: 15px; border-radius: 20px; margin-bottom: 15px; }
.grid-slots-row { display: grid; gap: 10px; margin-bottom: 10px; }

.slot {
    aspect-ratio: 1; background: #13111a; border-radius: 50%;
    border: 2px dashed #4b5563; display: flex; align-items: center; justify-content: center;
    color: #666; font-size: 0.8rem; cursor: pointer;
}
.slot.lleno {
    background: radial-gradient(circle at 30% 30%, #4ade80, #22c55e);
    color: #064e3b; border: none; font-weight: 800; padding: 4px;
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.4); transform: scale(1.05);
    text-align: center; font-size: 0.6rem; line-height: 1.1; word-break: break-word;
}
.slot.lleno.estado-warning { background: radial-gradient(circle at 30% 30%, #fde047, #eab308); color: #422006; }
.slot.lleno.estado-critical { background: #13111a; color: #ef4444; border: 2px solid #ef4444; box-shadow: 0 0 10px #ef4444; animation: pulse 1s infinite; }

/* BOTONES DE ACCIÓN (PINTAR, COPIAR, ETC) */
.btn-action-pintar {
    background: transparent; border: 2px solid #d946ef; color: #d946ef;
    padding: 10px; border-radius: 12px; font-weight: bold; width: 100%;
    transition: all 0.2s;
}
.btn-action-pintar:active { background: #d946ef; color: white; }

.btn-action-copiar {
    background: rgba(255,255,255,0.1); border: none; color: white;
    padding: 10px; border-radius: 12px; font-weight: bold; width: 100%;
    transition: all 0.2s;
}
.btn-action-copiar:active { background: white; color: black; }

/* Toolbar de Pintar */
#toolbar-colores {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
    background: #1f1d2b; padding: 10px 20px; border-radius: 50px;
    display: flex; align-items: center; gap: 15px; z-index: 2000;
    border: 1px solid rgba(255,255,255,0.2); box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.pincel-btn { width: 40px; height: 40px; border-radius: 50%; cursor: pointer; border: 2px solid white; }
#btn-pincel-ok { background-color: #22c55e; }
#btn-pincel-warning { background-color: #eab308; }
#btn-pincel-critical { background-color: #ef4444; }


/* --- CÁMARAS --- */
.slot-stock {
    aspect-ratio: 1; background: #13111a; border-radius: 8px; border: 1px dashed #4b5563;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: #666; font-size: 0.6rem; padding: 2px;
}
.slot-stock.lleno {
    background: #22c55e; color: white; border: none; font-weight: 700;
    word-break: break-word; line-height: 1.1;
}
.tabs { display: flex; gap: 10px; margin-bottom: 15px; background: #13111a; padding: 5px; border-radius: 12px; }
.tab-btn, .tab-btn-casa {
    flex: 1; padding: 10px; border-radius: 8px;
    color: #9ca3af; font-weight: 600; font-size: 0.8rem;
    background: transparent; border: 1px solid transparent; cursor: pointer;
    transition: all 0.2s;
}
.tab-btn.active, .tab-btn-casa.active {
    background: #2e1065; color: white; border: 1px solid #8b5cf6;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.3);
}

/* --- INSUMOS Y LISTAS --- */
.category-header {
    color: var(--neon-purple);
    font-size: 0.75rem; font-weight: 900; text-transform: uppercase; letter-spacing: 1px;
    margin-top: 20px; margin-bottom: 10px; padding-left: 10px;
    border-left: 4px solid var(--neon-purple);
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.1), transparent);
    padding: 8px 12px; border-radius: 0 10px 10px 0;
}
.item-row-yellow {
    background: var(--bg-card); padding: 15px; border-radius: 12px; margin-bottom: 8px;
    display: flex; justify-content: space-between; align-items: center;
    border: 1px solid rgba(255,255,255,0.05);
}
.item-row-yellow span { color: white !important; } 
input, select {
    background: #0f0e13 !important; border: 1px solid #2e1065 !important;
    color: white !important; padding: 10px; border-radius: 10px; width: 100%; outline: none;
}

/* --- BOTÓN FLOTANTE (+) --- */
.btn-float {
    position: fixed; bottom: 30px; right: 30px;
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--neon-green); color: white; font-size: 30px; font-weight: bold;
    display: flex; 
    align-items: center; justify-content: center;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.5); z-index: 9999;
    border: 3px solid white; cursor: pointer;
    transition: transform 0.2s;
}
.btn-float:active { transform: scale(0.9); }

/* --- BOTÓN REVISAR PEDIDO (DISEÑO) --- */
#btn-revisar-pedido {
    background-color: #22c55e !important;
    color: white !important;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.4);
    transition: transform 0.2s;
}
#btn-revisar-pedido:active { transform: scale(0.95); }

/* CHAT IZQUIERDA */
.chat-bubble {
    background: #2e1065; color: white; padding: 10px 15px; border-radius: 15px 15px 15px 2px;
    max-width: 85%; margin-bottom: 8px; align-self: flex-start !important;
}

/* TURNOS */
.tab-day {
    min-width: 50px; padding: 10px; background: #1f1d2b;
    border: 1px solid #333; border-radius: 14px; 
    color: #666; font-weight: 700; font-size: 0.75rem; transition: all 0.2s;
}
.tab-day.active { 
    background: var(--neon-purple); color: white; 
    border-color: var(--neon-purple); transform: scale(1.1);
}
.turno-card {
    position: relative; padding: 15px; border-radius: 24px !important;
    margin-bottom: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); color: white; overflow: hidden;
}