/* ==========================================================
   BOOH! PLATTFORM - GLOBAL STYLE SHEET
   Aplicable a: Web / Kiosko / TPV / Admin
   ========================================================== */

:root {
  --booh-blue: #00AFD8;
  --accent: #28E1FF;
  --bg: #05080E;
  --bg-soft: #0B1018;
  --text: #E6F1FA;
  --text-muted: #8AA0B4;
  --success: #28E1FF;
  --error: #FF4E4E;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: "Roboto", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ========= HEADERS ========= */
header {
  background: var(--bg-soft);
  padding: 15px 0;
  text-align: center;
  border-bottom: 2px solid var(--booh-blue);
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  position: sticky;
  top: 0;
  z-index: 50;
}

header h1, header h2 {
  color: var(--booh-blue);
  font-weight: 600;
}

/* ========= BUTTONS ========= */
button, .btn {
  background: var(--booh-blue);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

button:hover, .btn:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ========= CARDS / PRODUCTOS ========= */
.card {
  background: var(--bg-soft);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .2s;
}

.card:hover {
  transform: scale(1.03);
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.card h3 {
  color: var(--booh-blue);
  font-size: 1rem;
  margin: 10px;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 10px 10px;
}

.price {
  color: var(--accent);
  font-weight: bold;
  margin: 10px;
  font-size: 1rem;
}

/* ========= GRIDS ========= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
}

/* ========= SIDEBAR / TICKET ========= */
.sidebar {
  background: var(--bg-soft);
  border-left: 2px solid var(--booh-blue);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
}

.ticket {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 10px;
}

.ticket-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #222;
  padding: 6px 0;
  font-size: 0.9rem;
}

.ticket-item span.qty {
  color: var(--accent);
  font-weight: bold;
  margin-right: 6px;
}

/* ========= CART BAR (KIOSKO) ========= */
#cart {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-soft);
  border-top: 2px solid var(--booh-blue);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  z-index: 50;
  color: var(--text);
}

#cart button {
  background: var(--booh-blue);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

/* ========= TABLES / ADMIN ========= */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th, td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #222;
}

th {
  background: var(--bg-soft);
  color: var(--booh-blue);
}

tr:hover {
  background: rgba(0, 175, 216, 0.05);
}

/* ========= LOGIN ========= */
.login-box {
  max-width: 400px;
  margin: 100px auto;
  background: var(--bg-soft);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 15px rgba(0,0,0,0.5);
}

.login-box input {
  width: 80%;
  padding: 10px;
  margin: 10px 0;
  border: none;
  border-radius: 6px;
}

.login-box button {
  width: 80%;
}

/* ========= SCROLLBAR ========= */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: var(--booh-blue);
  border-radius: 4px;
}

/* ========= MOBILE ========= */
@media (max-width: 768px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  header h1 { font-size: 1.2rem; }
  .card img { height: 120px; }
  button, .btn { padding: 8px 15px; font-size: 0.9rem; }
}
