/* ===========================
   GLOBAL RESET & BASE STYLES
=========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: Arial, sans-serif;
  background-image: url('menu/bg.JPG');
  background-size: cover;
  background-position: center;
  color: white;
}

/* ===========================
   LAYOUT
=========================== */
.split-container {
  display: flex;
  height: 100%;
}

.left-panel {
  flex: 7;
  background-color: #3498db;
  padding: 9px;
}

.right-panel {
  flex: 3;
  background-color: #2ecc71;
  padding: 5px;
}

/* Responsive split layout */
@media (max-width: 768px) {
  .split-container {
    flex-direction: column;
  }
}

/* ===========================
   HEADINGS & TEXT
=========================== */
h1 {
  font-size: 2rem;
}

h2 {
  background-color: red;
  text-align: center;
}

h3 {
  text-align: center;
  color: #333;
  font-size: 1.5rem;
}

h6 {
  text-align: center;
  color: #888;
  font-size: 0.9rem;
  margin-top: -10px;
}

p {
  font-size: 1rem;
}

/* ===========================
   GRID CONTAINERS
=========================== */
.containerx {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  margin-left: 10px;
}

.column1, .column2 {
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 5px;
}

.column1 {
  min-height: 215px;
  color: red;
}

.column2 {
  margin-top: 5px;
}

/* ===========================
   MODALS
=========================== */
.modala, .modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.modala {
  background-color: black;
}

.modal {
  background: linear-gradient(0deg, rgba(34,193,195,1) 0%, rgba(253,187,45,1) 100%);
}

/* Modal Content */
.modala-content, .modal-content {
  position: relative;
  margin: 100px auto;
  padding: 10px;
  background-color: black;
  text-align: center;
  border: 1px solid #888;
  border-radius: 8px;
  width: 35%;
  max-width: 720px;
}

/* Close Buttons */
.close, .close-btn {
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 18px;
  font-weight: bold;
  color: black;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-btn:hover,
.close-btn:focus,
.close:hover,
.close:focus {
  color: blue;
}

/* ===========================
   PRODUCT GRID
=========================== */
#daily-sales {
  text-align: center;
  color: #2ecc71;
}

.product {
  width: 134px;
  height: 130px;
  position: relative;
  margin: 3px;
  cursor: pointer;
  border-radius: 5px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid white;
  border-radius: 5px;
  transition: opacity 0.3s;
}

.product.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* "SOLD OUT" overlays */
.sold-out-message {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 0, 0, 0.7);
  color: white;
  font-size: 20px;
  padding: 10px;
  border-radius: 5px;
}

.sold-out-visible {
  display: block;
}

.sold-out1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: yellow;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 1);
  margin-top: 5px;
}

/* ===========================
   BUTTONS & EFFECTS
=========================== */
button {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: blue;
}

.button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  text-align: center;
  border-radius: 5px;
}

.blinking-button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #4caf50;
  color: black;
  border: 2px solid black;
  border-radius: 5px;
  cursor: pointer;
  animation: blink 1s infinite;
}

.blinking-button:hover {
  background-color: #45a049;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ===========================
   FORMS & INPUTS
=========================== */
.form-group {
  margin-bottom: 20px;
}

input[type="number"] {
  width: 200px;
  height: 33px;
  font-size: 18px;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 3px;
  outline: none;
}

input[type="number"]:focus {
  border-color: #007bff;
}

button img {
  margin-right: 10px;
  vertical-align: middle;
}

/* ===========================
   QR CODE SECTION
=========================== */
#qrcode {
  text-align: center;
  margin-top: 20px;
}

#generate_qr {
  width: 100%;
  padding: 12px;
  background: linear-gradient(0deg, rgba(7,232,250,1) 0%, rgba(246,15,253,1) 85%, rgba(0,22,255,1) 100%);
  color: white;
  border-radius: 30px;
  font-size: 1rem;
  border: none;
  transition: all 0.3s ease;
}

#generate_qr:hover {
  background: linear-gradient(0deg, rgba(7,232,250,1) 0%, rgba(246,15,253,1) 100%);
  transform: scale(1.05);
}

/* ===========================
   COUNTERS
=========================== */
.counter,
.countercart,
.counterpayment,
.counterfooter {
  width: 260px;
  padding: 5px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
}

.counter {
  background-color: gray;
  min-height: 50px;
}

.counterpayment {
  background-color: blue;
  height: 80px;
}

.countercart {
  background-color: white;
  min-height: 375px;
  color: red;
}

.counterfooter {
  color: red;
  font-size: 10px;
}

/* ===========================
   SCROLL BOX
=========================== */
.scroll-box {
  width: 730px;
  height: 750px;
  overflow: auto;
  border: 0;
}
