/* =====================
   Global
===================== */
body {
  font-family: Arial, sans-serif;
  font-size: 13px;
  margin: 0;
  padding: 0;
  background-color: aliceblue;
}

.container {
  max-width: 800px;
  margin: 5px auto;
  padding: 18px 12px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
}

/* =====================
   Headings
===================== */
h2,
h3 {
  background-color: aliceblue;
  padding: 8px 5px;
  border-radius: 4px;
  margin: 6px 0;
}

/* =====================
   Animated Title
===================== */

.animated-title span {
  display: inline-block;
  color: darkgreen;
  font-weight: bold;
  animation: smoothFade 1s ease-in-out infinite;
}


@keyframes smoothFade {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    opacity: 1;
  }
}

/* =====================
   Form
===================== */
form {
  margin-bottom: 5px;
}

label {
  font-size: 14px;
  font-weight: bold;
  color: #444444;
}

select,
input {
  width: 160px;
  padding: 6px 8px;
  margin: 6px;
  border: 1.5px solid rgb(196, 199, 196);
  border-radius: 5px;
  font-size: 13px;
}

/* =====================
   Buttons
===================== */
button {
  padding: 7px 14px;
  color: #ffffff;
  background-color: #007bff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
}

button:hover {
  background-color: #0056b3;
}

/* Button container */
.button-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

/* =====================
   Result Table
===================== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 12px;
}

th,
td {
  border: 1.8px solid #b6b6b8;
  padding: 6px 6px;
  text-align: left;
  width: 28%;
}

th {
  background-color: #dff3ff;
  color: #333333;
  width: 24%;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* =====================
   Print Optimization
===================== */
@media print {

  body {
    background-color: aliceblue !important;
    font-size: 12px;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .container {
    background-color: #ffffff !important;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
    max-width: 100%;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  h2,
  h3 {
    background-color: aliceblue !important;
    border: none;
    padding: 4px 0;
    margin: 4px 0;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  table {
    page-break-inside: avoid;
    font-size: 12px;
  }

  tr,
  td,
  th {
    page-break-inside: avoid;
  }

  #result {
    page-break-inside: avoid;
  }
}

/* =====================
   Responsive (Desktop)
===================== */
@media only screen and (min-width: 992px) {
  body {
    font-size: 15px;
  }
}


/* =========================
   Search Counter (outside box)
========================= */
.search-stats-wrapper {
  display: flex;
  justify-content: center;
  margin: 20px 0 30px;
}

.search-stats {
  padding: 8px 14px;
  background: #f1f8ff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  max-width: 95%;
}
/* =========================
   Mobile compact search counter
========================= */
@media (max-width: 480px) {
  .search-stats {
    font-size: 10px;       /* লেখা ছোট */
    padding: 5px 10px;     /* padding কম */
    line-height: 1.4;
    white-space: nowrap;  /* ⭐ লাইন ভাঙতে দেবে না */
  }
}
@media print {
  .no-print {
    display: none !important;
  }
}