/* style.css */

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #000;
  color: white;
}

.screen {
  width: 100%;
  height: 100vh;
  background: linear-gradient(to bottom, #620066, #110040);
  display: flex;
  flex-direction: column;
  padding: 20px;
  box-sizing: border-box;
}

.header {
  display: flex;
  justify-content: center; /* تمركز العناصر مع تقارب بينها */
  align-items: center;
  gap: 200px; /* ← المسافة بين كل عمود */
  color: white;
  font-weight: bold;
  text-transform: uppercase;
  background: #d132a8;
  padding: 10px 20px; /* ← تقليل الفراغات الجانبية */
  border-radius: 10px;
  flex-wrap: wrap; /* حتى لو الشاشة صغرت، ينزلوا تحت بعض */
}



.column-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto; /* ← لا يتمدد، يأخذ الحجم المطلوب فقط */
}


.logo-circle {
  background: white;
  color: #d132a8;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* مهم جدًا لإخفاء الزوائد خارج الدائرة */
  padding: 5px;
}

.logo {
  width: 100%;
  height: 100%;
  object-fit: cover; /* يجعل الصورة تملأ الدائرة دون تشويه */
  border-radius: 50%; /* إضافي لجعل الصورة دائرية داخل الدائرة */
}


.content {
  flex: 1;
  display: flex;
  justify-content: space-evenly; /* توزيع المساحة بالتساوي */
  align-items: center;
  gap: 40px; /* إضافة مسافة بين الدائرة والجدول */
}

/* توسيع الدائرة قليلاً لتأخذ مساحة أكبر */
.center-circle {
  background: #ff66cc;
  color: white;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  box-shadow: 0 0 20px #ff99dd;
}

/* توسيع جدول الطلبات الجاهزة */
.orders.right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 300px;
}

.orders.right .order.ready {
  background: #ffffff33;
  border-radius: 8px;
  padding: 15px;
  font-size: 22px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-container {
  max-width: 500px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.btn-link {
  display: block;
  text-align: center;
  background-color: #ff66cc;
  color: white;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  margin-bottom: 30px;
  transition: background 0.3s ease;
}

.btn-link:hover {
  background-color: #ff33aa;
}

summary {
  font-size: 20px;
  font-weight: bold;
  background: #a64dff;
  color: white;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 10px;
}

details {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid #d1b3ff55;
  border-radius: 12px;
  margin-bottom: 20px;
  padding: 15px;
}

#display {
  background-color: #fff;
  color: #620066;
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 15px;
  letter-spacing: 4px;
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.keypad button {
  background-color: #d132a8;
  color: white;
  font-size: 22px;
  font-weight: bold;
  padding: 18px 0;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.keypad button:hover {
  background-color: #b71f8c;
}

button.reset-btn {
  margin-top: 20px;
  padding: 14px 20px;
  font-size: 18px;
  background-color: #ff4d4d;
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  width: 100%;
}

button.reset-btn:hover {
  background-color: #e60000;
}
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ff66cc;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeIn 0.5s ease-in-out;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: transparent; /* إزالة الخلفية البيضاء */
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  text-align: center;
  color: #620066;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.modal-number {
  font-size: 50vh;  /* الرقم بحجم نصف الشاشة */
  font-weight: 900;
  color: white;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.modal-text {
  font-size: 3vw;
  font-weight: 600;
  color: white;
  margin-top: 20px;
}


@keyframes popIn {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* ----------- Responsive Design ----------- */
@media (max-width: 768px) {
  .modal-number {
    font-size: 18vh; /* تصغير الرقم للموبايل */
  }

  .modal-content {
    max-width: 90%;
    padding: 40px 20px;
  }

  .modal-text {
    font-size: 24px;
  }

  .admin-container {
    padding: 20px;
  }

  .keypad button {
    font-size: 18px;
    padding: 14px 0;
  }

  .logo-circle {
    width: 80px;
    height: 80px;
  }

  .center-circle {
    width: 150px;
    height: 150px;
    font-size: 16px;
  }

  .orders.right .order.ready {
    font-size: 18px;
    padding: 10px;
  }

  .header {
    flex-direction: column;
    padding: 20px;
    text-align: center;
  }

  .content {
    flex-direction: column;
    gap: 20px;
  }

  .orders.right {
    max-width: 100%;
    width: 100%;
  }
}
