@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

@font-face {
  font-family: "titr";
  src: url(/ttf/titr.ttf);
}
@font-face {
  font-family: "roya";
  src: url(/ttf/roya.ttf);
}
@font-face {
  font-family: "BNazanin";
  src: url(/ttf/BNazanin.ttf);
}

body {
  background: linear-gradient(to bottom, #b5e9c0ff, #f5f5f5, #eb8d8dff);
  font-family: "roya", "titr", "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

section {
  margin: 20px;
  max-width: 1200px;
  width: 90%;
}

h1 {
font-size: 3.5rem;
  color: #ffffff;
  text-transform: uppercase;
  font-weight: 900;
  text-align: center;
  margin: 40px auto;
  font-family: 'titr', sans-serif;
  letter-spacing: 4px;
  line-height: 1.3;
  animation: fadeIn 1.8s ease-out;

  /* فقط دور حروف خط مشکی — بدون پر کردن داخل حروف */
  paint-order: stroke fill;
  -webkit-text-stroke: 5px #000000;   /* ضخامت خط دور حروف */
  text-stroke: 5px #000000;
  
  /* این خط خیلی مهمه تا داخل حروف سفید بمونه */
  -webkit-text-fill-color: #ffffff;
  text-fill-color: #ffffff;

/* این خط خیلی مهمه تا خطوط متن به هم نچسبن و بوردر یک تکه بمونه */
  line-height: 1.4;
  letter-spacing: 3px;
}

table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  box-shadow: 0 8px 20px rgba(92, 120, 128, 0.4);
  background: rgba(9, 106, 161, 0.9);
  border-radius: 0px;
  overflow: hidden;
}

.tbl-header {
  background: linear-gradient(to right, #1b5e79, #1e3a4d);
  box-shadow: 0 4px 15px rgba(57, 124, 141, 0.5);
  border-radius: 0px;
}

.tbl-header table {
  border-radius: 0px;
}

th {
  padding: 15px;
  text-align: center;
  font-weight: 500;
  font-family: 'roya', sans-serif;
  font-size: 1.8rem;
  color: #fff;
  text-transform: uppercase;
  border-bottom: 2px solid rgba(58, 131, 136, 0.4);
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  border-radius: 0 !important; /* اطمینان از صاف بودن گوشه‌ها */
}

.tbl-content {
  max-height: 600px;
  overflow-x: auto;
  margin-top: 0;
  background: rgba(40, 40, 40, 0.95);
}

td {
  padding: 15px;
  text-align: center;
  vertical-align: middle;
  font-weight: 300;
  font-family: 'roya', sans-serif;
  font-size: 1.4rem;
  color: #f4f4f4;
  border-bottom: 1px solid rgba(57, 136, 106, 0.2);
  transition: background 0.3s ease, transform 0.2s ease;
}

tr:hover td {
background: rgba(20, 80, 60, 0.35) !important;   /* رنگ سبز تیره ملایم */
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.made-with-love {
  margin-top: 40px;
  padding: 10px;
  text-align: center;
  font-size: 0.9rem;
  font-family: 'BNazanin', 'roya', 'titr', sans-serif;
  color: #286172;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.made-with-love i {
  font-style: normal;
  color: #f4f4f4;
  font-size: 1.2rem;
  position: relative;
  top: 2px;
}

.made-with-love a {
  color: #25607a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.made-with-love a:hover {
  color: #f4f4f4;
  text-decoration: underline;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(9, 106, 161, 0.9);
  border-radius: 0px;
}

::-webkit-scrollbar-thumb {
  background: #ffffff;
  border-radius: 0px;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar-thumb:hover {
  background: #21607e;
}

/* Animation for table load */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

table {
  animation: fadeIn 1s ease-in;
}
/* wrapper برای قرار گرفتن ذره‌بین دقیقاً بالای ستون اول */
.search-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 30px auto 0;
  text-align: right; /* چون dir=rtl هست */
  padding-right: 15%; /* دقیقاً زیر ستون "نام و نام خانوادگی" می‌افته */
}

/* آیکون ذره‌بین جلوی نام و نام خانوادگی */
.search-trigger {
  cursor: pointer;
  display: inline-block;
  padding: 12px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  transition: all 0.4s ease;
  border: 3px solid #0f8bb3;
}

.search-trigger:hover {
  background: #00ffc3;
  transform: scale(1.15) rotate(20deg);
  border-color: #000;
  box-shadow: 0 0 30px rgba(0, 255, 195, 0.8);
}

.search-icon-img {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 10px #000);
}

/* باکس جستجو — اول مخفیه، وقتی کلیک می‌کنی ظاهر میشه */
#searchInput {
  width: 420px;
  padding: 16px 60px 16px 25px;
  font-family: 'roya', sans-serif;
  font-size: 1.5rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.85);
  border: 3px solid #00ffc3;
  border-radius: 50px;
  outline: none;
  position: absolute;
  top: 0;
  right: 80px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: all 0.4s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  z-index: 100;
}

#searchInput.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  th {
    font-size: 1.2rem;
    padding: 10px;
  }

  td {
    font-size: 1rem;
    padding: 10px;
  }

  .tbl-content {
    max-height: 400px;
  }
}

@media screen and (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }

  th {
    font-size: 1rem;
  }

  td {
    font-size: 0.9rem;
    padding: 8px;
  }

  .made-with-love {
    font-size: 0.8rem;
  }

  section {
    margin: 10px;
  }
}