/* /public/css/style.css */
:root {
    --primary: #2563eb;
    --success: #10b981;
    --danger: #ef4444;
    --bg: #f3f4f6;
    --surface: #ffffff;
}
body { font-family: system-ui, sans-serif; margin: 0; background: var(--bg); height: 100vh; display: flex; flex-direction: column; }

/* LOGIN */
.screen { position: fixed; inset: 0; background: var(--primary); display: flex; align-items: center; justify-content: center; z-index: 999; }
.login-box { background: white; padding: 2rem; border-radius: 1rem; text-align: center; width: 300px; }
.numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 1rem; }
.numpad button { padding: 15px; font-size: 1.2rem; cursor: pointer; }
#pinInput { font-size: 2rem; text-align: center; width: 100%; margin-bottom: 10px; letter-spacing: 5px; }

/* APP LAYOUT */
.app-container { display: flex; height: 100vh; }
.sidebar { width: 200px; background: #1e293b; color: white; padding: 1rem; display: flex; flex-direction: column; }
.sidebar button { background: none; border: none; color: #94a3b8; padding: 1rem; text-align: left; cursor: pointer; font-size: 1.1rem; width: 100%; }
.sidebar button.active { color: white; background: #334155; border-radius: 8px; }
.content { flex: 1; padding: 1rem; overflow: auto; }

/* CARDS & GRIDS */
.card { background: var(--surface); padding: 1rem; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); cursor: pointer; border: 2px solid transparent; }
.card:active { transform: scale(0.98); }

.tables-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.table-card.occupied { background: #fee2e2; border-color: var(--danger); }
.table-card.free { background: #d1fae5; border-color: var(--success); }

.pos-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; height: 100%; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 1rem; }
.categories { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 5px; }
.categories button { padding: 10px 20px; border: none; background: white; border-radius: 20px; cursor: pointer; white-space: nowrap; }
.categories button.active { background: var(--primary); color: white; }

/* TICKET */
.ticket-panel { background: white; border-radius: 8px; padding: 1rem; display: flex; flex-direction: column; height: 80vh; }
.ticket-items { flex: 1; overflow-y: auto; }
.ticket-item { display: flex; justify-content: space-between; border-bottom: 1px solid #eee; padding: 10px 0; }
.totals { font-size: 1.5rem; font-weight: bold; text-align: right; margin: 1rem 0; }

/* KITCHEN */
.kitchen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.kitchen-card.pending { border-left: 5px solid var(--danger); }
.kitchen-card.preparing { border-left: 5px solid var(--primary); }

/* UTILIDADES */
.btn-success { background: var(--success); color: white; border: none; padding: 15px; width: 100%; font-size: 1.1rem; cursor: pointer; border-radius: 8px; margin-bottom: 5px; }
.btn-primary { background: var(--primary); color: white; border: none; padding: 15px; width: 100%; font-size: 1.1rem; cursor: pointer; border-radius: 8px; }
.btn-danger { background: var(--danger); color: white; padding: 10px; border: none; border-radius: 8px; cursor: pointer; }
.full-width { width: 100%; }

/* MODAL */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; }
.modal-content { background: white; padding: 2rem; border-radius: 8px; width: 300px; text-align: center; }
.pay-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }
.form-control { width: 100%; padding: 10px; margin: 10px 0; font-size: 1.2rem; text-align: center; }