/* 🎥 فيديو الخلفية */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* يخلي الفيديو يملأ الشاشة */
  z-index: -2;       /* يخليه خلف كل العناصر */
}

/* 🌑 طبقة غامقة فوق الفيديو (عشان النصوص أوضح) */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4); /* شفافية */
  z-index: -1;
}

/* 📝 الخطوط العامة */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  color: #222;
}

.hidden {
  display: none !important;
}

/* 🪟 تصميم الصندوق الرئيسي */
.container {
  width: 80%;
  max-width: 900px;
  margin: 60px auto;
  padding: 30px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

/* 🔘 الأزرار */
.button,
.buttonff,
.buttonfff,
.submit {
  background: linear-gradient(135deg, #30771e, #4caf50);
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin: 5px;
}

.button:hover,
.buttonff:hover,
.buttonfff:hover,
.submit:hover {
  background: linear-gradient(135deg, #3e8e41, #5fd068);
  transform: scale(1.05);
}

/* ❌ زر الخطر */
.buttonss {
  background: linear-gradient(135deg, #f12307, #f55a3a);
  color: #fff;
  padding: 16px 35px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  margin: 10px 0;
}

.buttonss:hover {
  background: linear-gradient(135deg, #f7290d, #ff7b5a);
  transform: scale(1.08);
}

/* 📊 الجدول */
#myTable {
  width: 100%;
  background-color: rgba(255,255,255,0.9);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin-top: 20px;
}

table {
  border-collapse: collapse;
  width: 100%;
  direction: rtl;
}

th, td {
  border: 1px solid #eee;
  padding: 12px;
  text-align: right;
  font-size: 15px;
}

th {
  background: #f9f9f9;
  font-weight: bold;
  color: #333;
}

tr:nth-child(even) {
  background-color: #fdfdfd;
}

tr:hover {
  background-color: #f1f1f1;
  transition: 0.2s;
}

/* 📱 استجابة الشاشات */
@media only screen and (max-width: 600px) {
  .container {
    width: 95%;
    padding: 20px;
  }
  .button,
  .submit,
  .buttonff,
  .buttonfff,
  .buttonss {
    font-size: 14px;
    padding: 10px 15px;
  }
  th, td {
    font-size: 13px;
    padding: 8px;
  }
}

@media only screen and (min-width: 601px) and (max-width: 900px) {
  .container {
    width: 85%;
    padding: 25px;
  }
  .button {
    font-size: 17px;
    padding: 12px 25px;
  }
}

@media only screen and (min-width: 901px) {
  .container {
    width: 70%;
    padding: 30px;
  }
  .button {
    font-size: 18px;
    padding: 14px 28px;
  }
}