/* ================================
   إعدادات عامة
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(135deg, #1d1c1b 0%, #2a2826 100%);
  min-height: 100vh;
  overflow-x: hidden;
  color: white;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(3, 119, 168, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 174, 248, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

header {
  min-height: 70vh;
  /* background: linear-gradient(rgba(0, 0, 0, 0.2), #fafafa), url(/assets/img/RaidAB/RaidAB.jpg); */
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: bottom;
  background-size: cover;
}

#editTime {
  padding: 100px 100px 0 0;
  color: #808080;
}

h1,
h2,
h3,
p,
a {
  font-family: 'Noto Kufi Arabic', sans-serif;
}

/* ================================
   تنسيق الجداول الأساسي
================================ */
table,
th,
td {
  border: 1px solid #00cccc;
  color: white;
}

.tableRaid {
  border-collapse: collapse;
  border-spacing: 0;
  width: 70%;
  margin: 20px auto;
  /* table-layout: fixed; */
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 204, 204, 0.1);
  transition: all 0.3s ease;
}

.tableRaid:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 204, 204, 0.15);
}

.TalbeAb {
  overflow-x: auto;
  margin: 15px 30px;
  border-radius: 12px;
  scrollbar-width: thin;
  scrollbar-color: #00cccc #1d1c1b;
}

.TalbeAb::-webkit-scrollbar {
  height: 8px;
}

.TalbeAb::-webkit-scrollbar-track {
  background: #1d1c1b;
  border-radius: 10px;
}

.TalbeAb::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #00cccc, #366d6a);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.TalbeAb::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #00a2e8, #c5422b);
}

/* ================================
   تنسيق رؤوس الجداول والصفوف
================================ */
.BN th,
.BN tr {
  border: none;
  border: 1px solid #00cccc;
}

.BN th {
  background: linear-gradient(135deg, #366d6a 0%, #2a5855 100%);
  position: relative;
  overflow: hidden;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9em;
  transition: all 0.3s ease;
}

.BN th::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.BN th:hover {
  cursor: pointer;
  background: linear-gradient(135deg, #c5422b 0%, #a03520 100%);
  transform: scale(1.02);
}

.BN th:hover::before {
  left: 100%;
}

th,
td {
  padding: 12px 8px;
  text-align: center;
  vertical-align: middle;
}

td {
  color: white;
  transition: all 0.3s ease;
  position: relative;
}

/* ================================
   تنسيق الصور والعناصر التفاعلية
================================ */
.imgR {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.imgR:hover {
  transform: scale(1.1);
  border-color: #00a2e8;
}

.imgRa {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.imgRa:hover {
  transform: scale(1.15);
  border-color: #00a2e8;
}

/* ================================
   تنسيق الحقول والأزرار
================================ */
input {
  width: 50%;
  padding: 8px 12px;
  border: 2px solid #00cccc;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-family: 'Noto Kufi Arabic', sans-serif;
  transition: all 0.3s ease;
  outline: none;
}

input:focus {
  border-color: #00a2e8;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 15px rgba(0, 162, 232, 0.3);
  transform: scale(1.02);
}

input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* ================================
   تأثيرات التفاعل
================================ */
.enable:hover {
  background: linear-gradient(135deg, #00a2e8 0%, #0088cc 100%);
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 162, 232, 0.3);
}

.Cursor {
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.Cursor:hover {
  transform: translateY(-2px);
}

.trColor:hover {
  background: linear-gradient(135deg, #00a2e8 0%, #0088cc 100%);
  transform: scale(1.01);
  box-shadow: 0 4px 20px rgba(0, 162, 232, 0.2);
}

/* ================================
   استعلامات الوسائط - التابلت
================================ */
@media only screen and (max-width: 900px) {
  .tableRaid {
    width: 95%;
    margin: 15px auto;
  }

  .TalbeAb {
    margin: 10px 15px;
  }

  input {
    width: 70%;
    padding: 10px 15px;
  }

  .imgR {
    width: 45px;
    height: 45px;
  }

  .imgRa {
    width: 25px;
    height: 25px;
  }

  th,
  td {
    padding: 10px 6px;
    font-size: 0.9em;
  }
}

/* ================================
   استعلامات الوسائط - الهاتف المحمول
================================ */
@media only screen and (max-width: 650px) {
  .tableRaid {
    width: 100%;
    margin: 10px auto;
    border-radius: 8px;
  }

  .TalbeAb {
    margin: 8px 8px;
  }

  .BN {
    display: block;
    width: 100%;
  }

  input {
    width: 90%;
    padding: 12px;
    font-size: 16px;
    border-radius: 10px;
  }

  .imgR {
    width: 40px;
    height: 40px;
  }

  .imgRa {
    width: 22px;
    height: 22px;
  }

  .inPut {
    width: 100%;
    padding: 12px;
    margin: 5px 0;
  }

  .Cursor {
    width: 100%;
    cursor: pointer;
    padding: 12px;
    margin: 5px 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
  }

  th,
  td {
    padding: 8px 4px;
    font-size: 0.85em;
  }

  .BN th {
    font-size: 0.8em;
    padding: 10px 4px;
  }
}

/* ================================
   استعلامات الوسائط - الهواتف الصغيرة
================================ */
@media only screen and (max-width: 480px) {
  body {
    background: linear-gradient(135deg, #1d1c1b 0%, #2a2826 50%, #1d1c1b 100%);
  }

  .tableRaid {
    width: 100%;
    margin: 8px auto;
    border-radius: 6px;
  }

  .TalbeAb {
    margin: 5px 5px;
  }

  input {
    width: 95%;
    padding: 14px;
    font-size: 16px;
    border-radius: 12px;
  }

  .imgR {
    width: 35px;
    height: 35px;
  }

  .imgRa {
    width: 20px;
    height: 20px;
  }

  .inPut {
    width: 80%;
    padding: 14px;
    margin: 8px 0;
    border-radius: 12px;
  }

  .Cursor {
    width: 80%;
    cursor: pointer;
    padding: 14px;
    margin: 8px 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
  }

  th,
  td {
    padding: 6px 2px;
    font-size: 0.8em;
  }

  .BN th {
    font-size: 0.75em;
    padding: 8px 2px;
  }
}

/* ================================
   استعلامات الوسائط - الهواتف الصغيرة جداً
================================ */
@media only screen and (max-width: 390px) {
  .tableRaid {
    width: 100%;
    margin: 5px auto;
    border-radius: 4px;
  }

  .TalbeAb {
    margin: 3px 3px;
  }

  input {
    width: 80%;
    font-size: 16px;
    border-radius: 15px;
  }

  .imgR {
    width: 30px;
    height: 30px;
  }

  .imgRa {
    width: 18px;
    height: 18px;
  }

  th,
  td {
    padding: 4px 1px;
    font-size: 0.75em;
  }

  .BN th {
    font-size: 0.7em;
    padding: 6px 1px;
  }

  .Cursor {
    border-radius: 15px;
  }
}

/* ================================
   تحسينات إضافية للتصميم العصري
================================ */
@media (max-width: 650px) {
  .tableRaid {
    animation: slideInUp 0.6s ease-out;
  }

  .BN th {
    background: linear-gradient(135deg, #366d6a 0%, #2a5855 50%, #366d6a 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* تحسين شريط التمرير للموبايل */
@media (max-width: 650px) {
  .TalbeAb::-webkit-scrollbar {
    height: 6px;
  }

  .TalbeAb::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #00cccc, #00a2e8);
    border-radius: 15px;
  }
}