/* 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: center;  /* تمركز أفقي */
  align-items: center;      /* تمركز عمودي */
  gap: 40px;
}

/* الدائرة الوسطية: مكبّرة وفي الوسط */
.center-circle {
  background: #ff66cc;
  color: white;
  width: clamp(400px, 50vw, 520px);  /* أكبر بشكل واضح */
  height: clamp(400px, 50vw, 520px);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  box-shadow: 0 0 40px #ff99dd;
}

.center-circle h1 {
  font-size: clamp(96px, 16vw, 180px); /* رقم ضخم وواضح */
  line-height: 1;
  margin: 8px 0 0;
}

/* إخفاء قائمة الطلبات لأننا لم نعد نعرضها */
.orders.right {
  display: none;
}

/* عناصر صفحة الإدارة (تبقى كما هي) */
.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 ----------- */
@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; }

  .header {
    flex-direction: column;
    padding: 20px;
    text-align: center;
    gap: 20px;
  }

  .content {
    flex-direction: column;
    gap: 20px;
  }
}
.arrow-row {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.arrow-btn {
  flex: 0 0 120px;
  background-color: #ffcc00;
  color: #620066;
  font-size: 24px;
  font-weight: bold;
  padding: 12px 0;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.1s ease;
}

.arrow-btn:hover {
  background-color: #ffdd33;
}

.arrow-btn:active {
  transform: scale(0.96);
}
.form-row { margin: 12px 0; }
.form-row label { display:block; font-weight:700; margin-bottom:6px; }
.form-row input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ffffff33;
  background: rgba(255,255,255,0.12);
  color: #fff;
  outline: none;
}
.form-row small { display:block; opacity:0.8; margin-top:6px; }

.save-settings-btn{
  margin-top: 10px;
  width: 100%;
  padding: 14px 20px;
  font-size: 18px;
  background-color: #22c55e;
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
}
.save-settings-btn:hover{ background-color:#16a34a; }
