/* --- Fullscreen container, no scroll behind Elementor --- */
.tv-container.tv-fullscreen {
  position: fixed !important;
  top: 0; left: 0;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #000; /* darker background looks better on TV */
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* prevent page scrolling */
}

/* --- Grid: 5 columns x 4 rows = 20 cards --- */
.lotmanager-tv-container {
  flex: 1;
  display: grid !important;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 20px;
  padding: 10px 20px 80px 20px; /* extra bottom space for pagination */
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Card styling (balanced for readability) --- */
.lotmanager-tv-card {
  background: #222;
  color: #fff;
  border-radius: 12px;
  padding: 20px 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.lotmanager-tv-item {
  font-size: 2.2em;
  font-weight: bold;
  margin-bottom: 10px;
}

.lotmanager-tv-lots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.lotmanager-tv-lot {
  font-size: 3em;
  font-weight: bold;
  color: #4caf50;
  line-height: 1.2;
}

/* Separator between lots (998 | 907) */
.lotmanager-tv-lot + .lotmanager-tv-lot::before {
  content: " | ";
  color: #aaa;
  margin: 0 7px;
}

/* -------- Pagination Controls -------- */
.lotmanager-tv-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #111;
  border-top: 1px solid #333;
  position: relative;
  z-index: 100;
}

.lotmanager-tv-pagination button {
  margin: 0 10px;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: #4caf50;
  color: #fff;
  cursor: pointer;
  font-size: 1.1em;
}

.lotmanager-tv-pagination button:disabled {
  background: #2e7d32;
  opacity: 0.6;
  cursor: default;
}

/* Search box inline (bottom-left) */
.lotmanager-tv-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

#lotmanager-tv-search-bar {
  flex: 1;
  max-width: 300px;
  padding: 8px 12px;
  font-size: 1em;
  border-radius: 8px;
  border: 2px solid #ccc;
  outline: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Mixers tab button */
#lotmanager-mixers-tab {
  padding: 8px 14px;
  background: #ff9800;
  color: #000;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  font-weight: bold;
}
/* -------- Pagination Controls (numbered pages) -------- */
.lotmanager-tv-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lotmanager-tv-controls button {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  background: #4caf50;
  color: #fff;
  font-size: 1em;
  cursor: pointer;
}

.lotmanager-tv-controls button:disabled {
  background: #2e7d32;
  opacity: 0.6;
  cursor: default;
}

#tv-page-numbers button {
  margin: 0 4px;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  background: #3498db;
  color: #fff;
  cursor: pointer;
  font-size: 1em;
}

#tv-page-numbers button.active {
  background: #2c3e50;
  font-weight: bold;
}

#tv-page-numbers .dots {
  margin: 0 6px;
  color: #aaa;
}

/* -------- Mixers Tab Layout -------- */
.mixers-container {
  display: grid;
  grid-template-columns: repeat(7, 1fr); /* 7 columns */
  grid-template-rows: 1fr;               /* 1 row */
  gap: 20px;
  width: 100vw;
  height: 100vh;
  padding: 10px;
  box-sizing: border-box;
  overflow: hidden; /* no scrollbars */
  align-items: stretch;
}

/* Mixers recipe card */
.mixers-card {
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  text-align: center;
  font-size: 1.6vw; /* scales with screen width */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: #fff; /* default text white for contrast */
}

/* Alternating card colors */
.mixers-card:nth-child(1) { background: #4db6ac; }            /* Salsa Pina Mango - teal */
.mixers-card:nth-child(2) { background: #ba68c8; }            /* Salsa Mango - purple */
.mixers-card:nth-child(3) { background: #fdd835; color:#000; } /* Pico De Gallo - yellow */
.mixers-card:nth-child(4) { background: #81c784; color:#000; } /* Pepper Mix - green */
.mixers-card:nth-child(5) { background: #ffb74d; color:#000; } /* Color Mix - orange */
.mixers-card:nth-child(6) { background: #e57373; }            /* Fruit Mix - red */
.mixers-card:nth-child(7) { background: #64b5f6; }            /* Tri-Color Mix - blue */

/* Mixers recipe title */
.mixers-title {
  font-size: 1.8vw;
  font-weight: bold;
  margin-bottom: 15px;
  text-shadow: 0 0 3px rgba(0,0,0,0.7);
}

/* Ingredients */
.mixers-ingredients {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1.4vw;
}

/* Lot pills */
.lot-pill {
  display: inline-block;
  background: #fff;
  color: #000;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 1em;
  margin: 4px;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.15s ease;
}

.lot-pill:hover {
  transform: scale(1.1);
}

/* Scrollbar styling */
#lotmanager-mixers-wrapper::-webkit-scrollbar-thumb {
  background-color: rgba(255,255,255,0.3);
  border-radius: 6px;
}

#lotmanager-mixers-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

/* Persistent button container at bottom */
.lotmanager-btn-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: none; /* hidden until Mixers tab is active */
  z-index: 9999;
}

.lotmanager-btn-container button {
  padding: 15px 30px;
  font-size: 1.6vw;
  border: none;
  border-radius: 12px;
  background: #70BDFF;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

.lotmanager-btn-container button:hover {
  background: #555;
}

