/* =================== إعادة تعيين الأساسيات =================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Noto Kufi Arabic', Arial, Helvetica, sans-serif;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(135deg, #1d1c1b 0%, #2a2926 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: 40vh;
  /* background: linear-gradient(rgba(0, 0, 0, 0.2), #000000), url(/assets/img/OutCamp/banditcamp.jpg); */
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: top;
  background-size: cover;
}

#editTime {
  padding: 100px 100px 0 0;
  color: #808080;
}

/* =================== الخطوط والنصوص =================== */
h1,
h2,
h3,
p,
a {
  font-family: 'Noto Kufi Arabic', sans-serif;
}

h1 {
  color: white;
  text-align: center;
  font-size: clamp(24px, 5vw, 40px);
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* =================== رسائل المعلومات =================== */
.messageInfo {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  z-index: 100;
  animation: fadeIn 0.3s ease-in-out;
}

.msg {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: white;
  background: linear-gradient(135deg, #176a8d 0%, #1e7da3 100%);
  padding: 30px;
  border-radius: 20px;
  margin: 20px;
  text-align: center;
  user-select: none;
  transform: scale(0);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.msg.show {
  transform: scale(1);
}

/* =================== العناوين الرئيسية =================== */
.Titles {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 20px;
  color: white;
  font-weight: 600;
}

/* =================== مجموعة أزرار اختيار المكان =================== */
.choPlace {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin: 0 auto 30px;
  max-width: 800px;
  padding: 0 20px;
}

.btn {
  padding: 12px 24px;
  border-radius: 15px;
  font-size: 18px;
  color: white;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.3s ease;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.btn:hover::before {
  width: 200%;
  height: 200%;
}

.btnout {
  background: linear-gradient(135deg, #ad2020 0%, #d63031 100%);
}

.btnout:hover {
  background: linear-gradient(135deg, #8d2c2c 0%, #b32d2e 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(173, 32, 32, 0.4);
}

.btncamp {
  background: linear-gradient(135deg, #00a2e8 0%, #0984e3 100%);
}

.btncamp:hover {
  background: linear-gradient(135deg, #2a7fa3 0%, #0768c1 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 162, 232, 0.4);
}

/* =================== مجموعة أزرار اختيار البائع =================== */
.choSeller {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin: 0 auto 50px;
  max-width: 1000px;
  padding: 0 20px;
  flex-wrap: wrap;
}

.btnS {
  padding: 12px 24px;
  border-radius: 15px;
  font-size: 18px;
  color: #333;
  cursor: pointer;
  border: none;
  outline: none;
  background: linear-gradient(135deg, #00a2e8 0%, #74b9ff 100%);
  transition: all 0.3s ease;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(0, 162, 232, 0.3);
  position: relative;
  overflow: hidden;
}

.btnS::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.btnS:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 162, 232, 0.4);
}

.btnS:hover::before {
  width: 200%;
  height: 200%;
}

#btn1 {
  background: linear-gradient(135deg, #99e0ff 0%, #dbeafe 100%);
}

/* =================== الجداول =================== */
.outTable {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.outTable table {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 50px;
  border-collapse: separate;
  border-spacing: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
}

.outTable table::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #00a2e8, #176a8d, #00a2e8);
  border-radius: 20px 20px 0 0;
}

.outTable th,
.outTable td {
  padding: 18px 15px;
  text-align: center;
  color: white;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  vertical-align: middle;
}

.outTable th:last-child,
.outTable td:last-child {
  border-right: none;
}

.outTable th {
  background: linear-gradient(135deg, rgba(23, 106, 141, 0.4) 0%, rgba(0, 162, 232, 0.2) 100%);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  border-bottom: 2px solid rgba(0, 162, 232, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  position: relative;
}

.outTable th::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00a2e8, transparent);
  border-radius: 2px;
}

.outTable tbody tr {
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.outTable tbody tr:hover {
  background: linear-gradient(135deg, rgba(0, 162, 232, 0.08) 0%, rgba(23, 106, 141, 0.05) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 162, 232, 0.1);
}

.outTable tbody tr:last-child {
  border-bottom: none;
}

.outTable tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.outTable tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.01);
}

.imgT {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.imgT:hover {
  transform: scale(1.1);
}

.outTable img {
  width: 45px;
  height: 45px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.outTable img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 162, 232, 0.3);
  border-color: rgba(0, 162, 232, 0.5);
}

.outTable input {
  width: 100%;
  max-width: 180px;
  padding: 12px 16px;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  color: white;
  outline: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(5px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.outTable input:focus {
  border-color: #00a2e8;
  background: linear-gradient(135deg, rgba(0, 162, 232, 0.15) 0%, rgba(0, 162, 232, 0.05) 100%);
  box-shadow:
    0 0 0 4px rgba(0, 162, 232, 0.2),
    0 8px 25px rgba(0, 162, 232, 0.3);
  transform: translateY(-1px);
}

.outTable input::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

.outTable input:hover {
  border-color: rgba(0, 162, 232, 0.4);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
}

.tdText {
  text-align: center;
}

.Imgs {
  width: 100%;
  max-width: 400px;
  margin: 20px auto;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.Imgs:hover {
  transform: scale(1.02);
}

/* =================== خطوط الفصل =================== */
hr {
  width: 80%;
  max-width: 600px;
  margin: 40px auto;
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* =================== الرسوم المتحركة =================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =================== الاستجابة للشاشات الصغيرة =================== */
@media screen and (max-width: 768px) {
  .choPlace {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    padding: 15px;
    font-size: 16px;
  }

  .choSeller {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .btnS {
    width: 100%;
    max-width: 300px;
    padding: 15px;
    font-size: 16px;
  }

  .outTable {
    padding: 0 10px;
  }

  .outTable table {
    font-size: 14px;
    max-width: 100%;
    border-radius: 15px;
  }

  .outTable th,
  .outTable td {
    padding: 15px 10px;
    font-size: 14px;
  }

  .outTable th {
    font-size: 12px;
  }

  .outTable input {
    max-width: 120px;
    padding: 10px 12px;
    font-size: 13px;
  }

  .outTable img {
    width: 35px;
    height: 35px;
    border-radius: 8px;
  }

  .imgT {
    width: 20px;
    height: 20px;
  }

  .msg {
    margin: 15px;
    padding: 25px;
    border-radius: 15px;
  }
}

@media screen and (max-width: 480px) {

  .choPlace,
  .choSeller {
    gap: 8px;
    padding: 0 10px;
  }

  .btn,
  .btnS {
    padding: 12px;
    font-size: 15px;
    border-radius: 12px;
  }

  .outTable {
    padding: 0 5px;
    overflow-x: auto;
  }

  .outTable table {
    font-size: 12px;
    min-width: 100%;
    border-radius: 12px;
  }

  .outTable th,
  .outTable td {
    padding: 12px 8px;
    font-size: 12px;
    min-width: 80px;
  }

  .outTable th {
    font-size: 11px;
    padding: 15px 8px;
  }

  .outTable input {
    max-width: 100px;
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 8px;
  }

  .outTable img {
    width: 30px;
    height: 30px;
    border-radius: 6px;
  }

  .imgT {
    width: 18px;
    height: 18px;
  }

  .msg {
    margin: 10px;
    padding: 20px;
    font-size: 14px;
  }

  /* تحسين الجدول للشاشات الصغيرة جداً */
  .outTable::-webkit-scrollbar {
    height: 8px;
  }

  .outTable::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
  }

  .outTable::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #00a2e8, #176a8d);
    border-radius: 10px;
  }

  .outTable::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #176a8d, #00a2e8);
  }
}

/* =================== الشاشات الكبيرة =================== */
@media screen and (min-width: 1200px) {
  .outTable table {
    max-width: 1000px;
  }

  .choPlace {
    max-width: 1000px;
  }

  .choSeller {
    max-width: 1200px;
  }
}

/* =================== تحسينات إضافية للأداء =================== */
.btn,
.btnS {
  will-change: transform;
}

.outTable table {
  will-change: auto;
}

/* =================== حالات التركيز لإمكانية الوصول =================== */
.btn:focus,
.btnS:focus {
  outline: 3px solid rgba(0, 162, 232, 0.5);
  outline-offset: 2px;
}

.outTable input:focus {
  outline: none;
}