/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
  color: #f2f2f2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0.5rem;
}
/* add because hamburger menu hide when scrool */
body.no-scroll {
  overflow: hidden;
  height: 100vh;
}


/* Container */
.container {
  max-width: 900px;
  margin: auto;
  margin-top: 4rem;
  position: relative;
  padding: 30px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow:
    0 0 10px rgba(0, 255, 128, 0.1),
    0 0 20px rgba(0, 255, 128, 0.08),
    0 0 40px rgba(0, 255, 128, 0.05);
  border: 1px solid rgba(0, 255, 128, 0.15);
  transition: box-shadow 0.5s ease;
}

h1 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2rem;
  color: #00BCD4 !important;
}
h3{
  display: block;
  padding: 0.4rem 1rem;
  /* background-color: #2a2a3a; */
  color: #ffffff;
  border: 1px solid #00ffe7;
  border-left: 5px solid #00ffe7;
  font-size: 1.2rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  border-radius: 5px;
}

.description {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 1rem;
  text-align: center;
}

/* Desktop/Mobile Toggle */
.mobile-title,
.mobile-desc {
  display: none;
}

.desktop-title,
.desktop-desc {
  display: inline;
}

/* Textarea */
textarea,
input {
  width: 100%;
  padding: 1rem;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
  background-color: #33334a72;
  color: #fff;
  margin-bottom: 1rem;
  resize: vertical;
  box-shadow: 0 0 6px rgba(0, 255, 128, 0.08);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

textarea:focus,
input:focus {
  outline: none;
  box-shadow: 0 0 12px rgba(0, 255, 128, 0.3);
  background-color: #33334a72;
}


/* Buttons */
.actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

button {
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  background: #00bcd4;
  color: white;
  cursor: pointer;
  transition: 0.3s ease;
}

button:hover {
  background: #0097a7;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

th,
td {
  padding: 0.75rem;
  border: 1px solid #444;
  text-align: left;
  font-size: 0.9rem;
}

th {
  background-color: #3a3a4a;
}

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

/* Footer */
footer {
  text-align: center;
  margin-top: 2rem;
  padding: 1rem;
  font-size: 0.9rem;
  color: #aaa;
}

/* Simple loading spinner */
.simple-spinner {
  margin: 20px auto 10px;
  border: 4px solid rgba(0, 170, 255, 0.2);
  border-top: 4px solid #00aaff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Page container */
.page-box {
  max-width: 60%;
  margin: 1rem auto;
  padding: 1rem;
  background-color: light-dark;
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
   line-height: 1.6
}

/* Navbar */
.navbar {
  background-color: #14141f53;
  padding: 0.8rem 2rem;
  margin-bottom: 2rem;
  border-radius: 10px;
  box-shadow:
    0 0 10px rgba(0, 255, 128, 0.08),
    0 0 15px rgba(0, 255, 128, 0.05);
  border: 1px solid rgba(0, 255, 128, 0.1);
  transition: box-shadow 0.4s ease;
}

.navbar:hover {
  box-shadow:
    0 0 12px rgba(0, 255, 128, 0.2),
    0 0 20px rgba(0, 255, 128, 0.1);
}


.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 0 2rem;
}

.logo {
  color: #fff;
  font-size: 1.4rem;
  font-weight: bold;
  text-decoration: none;
  /* height: 50px; */
  width: auto;
}

.logo-img {
  height: 50px;
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: #f5f5f5;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #3d70f2;
}

/*  Error Box Styling */
#error-message.error-box {
  display: none;
  background-color: #ffeaea;
  color: #d10000;
  border: 1px solid #f5b5b5;
  padding: 10px 15px;
  margin-top: 5px;
  margin-bottom: 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 0 5px rgba(255, 0, 0, 0.05);
  transition: all 0.3s ease-in-out;
}

/* ending error styling */

/* Promo Section Box */
.info-box {
  max-width: 900px;
  margin: 20px auto 20px;
  padding: 20px 30px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d1f5d3;
  font-size: 1.1rem;
  transition: opacity 0.6s ease, transform 0.6s ease;
  box-shadow: 0 4px 20px rgba(0, 255, 100, 0.1);
}

.info-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-box li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-weight: 500;
  line-height: 1.6;
}

.info-box li::before {
  content: "✔️";
    background-color: rgb(0, 255, 30);
    border-radius: 15px;
    font-size: 0.9rem;
    color: #90ee90;
    padding: 2px 4px ;
}

.info-box.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}
/* end promo box */

/* Loading time message */
#slow-loading-message {
  color: #00FFE7;
  font-weight: bold;
  text-align: center;
  margin-top: 15px;
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

#slow-loading-message.show {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Mobile Styles */
@media (max-width: 768px) {
  /* Mobile scroolable table */
  .table-container {
    overflow-x: auto;
    margin-bottom: 20px;
  }
  
  .table-container table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
  }  
  .table-container th,
  .table-container td {
    padding: 10px;
    text-align: left;
    /* white-space: nowrap; */
  }
    table th:nth-child(2),
  table td:nth-child(2) {
    max-width: 230px;
    word-wrap: break-word !important;
  }
  table th:nth-child(3),
  table td:nth-child(3) {
    max-width: 150px !important;
    white-space: nowrap; 
  }
/* Mobile scroolable table END */

  .container {
    width: 100%;
    padding: 30px 10px;
    margin-top: 2rem;
  }

  .info-box {
    max-width: 100%;
    /* margin: 0 auto 0px; */
    padding: 20px 30px;
    border-radius: 20px;
    font-size: 0.9rem;
  }
  .info-box li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 500;
    line-height: 1.2;
  }
  
  .info-box li::before {
    content: "✔️";
      background-color: rgba(0, 255, 30, 0.955);
      border-radius: 15px;
      font-size: 0.7rem;
      /* color: #90ee90; */
      padding: 2px 2px;
  }
  /* end info box */


  .navbar{
    padding:0.8rem 0.5rem;
  }
  .nav-container {
    padding: 0 0.5rem;
  }

  .logo-img {
    margin: 0 auto;
    height: 30px;
    width: auto;
  }
/* hamburger menu for mobile */

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  cursor: pointer;
  z-index: 1002;
  transition: transform 0.4s ease;
}

.bar {
  height: 4px;
  width: 100%;
  background: #00d7e6;
  border-radius: 5px;
  transition: 0.4s ease;
  transform-origin: center;
}

/* Animation when active */
.hamburger.active .top-bar {
  transform: rotate(45deg) translate(4px, 4px);
  background-color: #00d7e6;
}

.hamburger.active .middle-bar {
  opacity: 0;
}

.hamburger.active .bottom-bar {
  transform: rotate(-45deg) translate(4px, -4px);
  background-color: #00d7e6;
}
.hamburger span {
  background: #0ff; /* cyan glow */
  box-shadow: 0 0 6px #0ff;
  transition: all 0.4s ease;
}
.hamburger:hover span {
  transform: scaleX(1.2);
}

/* end hamburger */

  .overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    transition: opacity 0.3s ease;
  }

  /* Mobile Nav Base */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 90vh;
    background: linear-gradient(135deg, #00bbd47b,#0f0f0ffa);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transition: right 0.5s ease-in-out;
    z-index: 998;
    border-radius: 500px 0 ;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  /* Nav Link Animation */
  .nav-links li {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s ease forwards;
  }
  
  .nav-links.active li {
    animation: fadeIn 0.5s ease forwards;
  }
  
  /* Delay each link */
  .nav-links.active li:nth-child(1) { animation-delay: 0.2s; }
  .nav-links.active li:nth-child(2) { animation-delay: 0.3s; }
  .nav-links.active li:nth-child(3) { animation-delay: 0.4s; }
  .nav-links.active li:nth-child(4) { animation-delay: 0.5s; }
  .nav-links.active li:nth-child(5) { animation-delay: 0.6s; }
  .nav-links.active li:nth-child(6) { animation-delay: 0.7s; }
  
  @keyframes fadeIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Overlay background */
  #nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(4px);
    z-index: 997;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  
  #nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }
/* end nav-links */

  .actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .mobile-title,
  .mobile-desc {
    display: inline;
  }

  .desktop-title,
  .desktop-desc {
    display: none;
  }

  h1 {
    font-size: 1.4rem;
  }

  .description {
    font-size: 0.8rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    text-align: center;
    padding: 0 10px;
  }

  .page-box {
    max-width: 100%;
    padding: 0.5rem;
  }

  textarea {
    font-size: 0.95rem;
  }
/* mobile three buttons style */
.results-header {
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  margin-top: 10px;
}
/* first row */
.result-count-row {
  padding: 6px 12px;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  margin: auto;
}

.result-count {
  display: block;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 10px;
  border: 1px solid #00ffe7;
  border-radius: 20px;

}

/* Buttons in the next row */
.result-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: auto;
}

.result-buttons button {
  font-size: 12px;
  padding: 8px 10px;
  border: 1px solid #00ffe7;
  border-radius: 20px;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
}

.result-buttons button:hover {
  background-color: #06c0f8;
}

/* ---------- */
}
/* mobile view End (min 768px) --------------*/

.results-header {
  display: none;
  margin: 20px 0;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.result-count {
  color: #00ffe7;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #00f2ff;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  padding: 8px 10px;
  
}
.result-buttons button {
  background-color: none;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #00ffe7;
  border-radius: 50px;
  backdrop-filter: blur(8px);
  padding: 8px 10px;
  cursor: pointer;
  gap: 15px;
  /* transition: background 0.3s; */
}
/* end of result therre button */

/* Beautify checkbox */
.select-interest {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #00ffe7; /* Stylish accent color */
  transform: scale(1.1);
  margin: 0 auto;
}

/* Center checkbox column */
table td:first-child,
table th:first-child {
  text-align: center;
  width: 60px;
}
/* Add hover effect on row */
table tbody tr:hover {
  background-color: rgba(0, 255, 231, 0.05);
}

/* Optional: better table spacing */
table td,
table th {
  padding: 10px 12px;
  vertical-align: middle;
}
 table th:nth-child(3),
  table td:nth-child(3) {
    max-width: 150px !important;
    white-space: nowrap;
   }

/* error message */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  color: #fff;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.hidden {
  pointer-events: none;
}

.toast-success {
  background-color: #28a745;
}

.toast-error {
  background-color: #e74c3c;
}

.toast-icon {
  font-size: 18px;
}

/* last 5 history saved css */
.search-history {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Each search pill */
.search-pill {
  margin-bottom:10px;
  background-color: #67707091;
  color: #fff;
  border-radius: 50px;
  padding: 6px 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background 0.3s;
  box-shadow:
    0 0 10px rgba(0, 255, 221, 0.487);
  border: 1px solid rgba(0, 255, 128, 0.1);
}

.search-pill:hover {
  background-color: #646d6d6e;
}

/* Close (x) icon */
.search-pill .close {
  margin-left: 8px;
  color: #ccc;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.search-pill .close:hover {
  color: #f55;
}

/* Hide element utility */
.hidden {
  display: none;
}

/* All page edit */
/* === About Section Styling === */
.about-section {
  max-width: 800px;
  padding: 10px 30px;
  border-radius: 12px;
  color: #ffffff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.about-section h1 {
  font-size: 1.6rem;
  color: #00bcd4;
  margin-bottom: 20px;
  border-bottom: 2px solid #00bcd4;
  padding-bottom: 10px;
}

.about-section h2 {
  font-size: 1.3rem;
  color: #ffca28;
  margin-top: 30px;
  margin-bottom: 15px;
}

.about-section p {
  font-size: 1rem;
  line-height: 1.3;
  color: #dddddd;
  margin-bottom: 20px;
}

.about-section ul {
  padding-left: 0;
  margin-bottom: 20px;
  list-style: none; /* remove default bullets */
}

.about-section ul li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 10px;
  color: #dddddd;
}

.about-section ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background-color: green;
  color: white;
  border-radius: 50%;
  padding: 6px 8px;
  font-size: 14px;
  line-height: 1;
}



/* Responsive */
@media (max-width: 600px) {
  .about-section {
    padding: 20px;
  }

  .about-section h1 {
    font-size: 18px;
  }

  .about-section h2 {
    font-size: 16px;
  }
  .about-section p {
  font-size: 14px;
  line-height: 1.3;
  margin-bottom: 20px;
	}
  .about-section ul li{
      font-size: 14px;
   }
   .about-section ul li::before {
  border-radius: 50%;
  padding: 4px 6px;
  font-size: 12px;
  line-height: 1;
}
}

/* Blog Page Styles */
.blog-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 20px rgba(0, 255, 128, 0.08);
  border: 1px solid rgba(0, 255, 128, 0.15);
  line-height: 1.7;
  color: #ddd;
}
.blog-container h1{
 font-size:20px;
 }

.blog-container h2,
.blog-container h3,
.blog-container h4 {
  font-size:18px;
  color: #00BCD4;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.blog-container p {
  margin-bottom: 14px;
  font-size:16px;
}

.blog-container img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1rem 0;
  box-shadow: 0 0 10px rgba(0, 255, 128, 0.1);
}

.blog-container a {
  color: #00FFE7;
  text-decoration: none;
  transition: color 0.3s;
}

.blog-container a:hover {
  color: #3d70f2;
}

.blog-meta {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 1.5rem;
  border-left: 4px solid #00ffe7;
  padding-left: 1rem;
}

.blog-tag {
  display: inline-block;
  background: #00bcd4;
  color: #000;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 20px;
  margin: 0 5px 10px 0;
}

.blog-post {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  gap: 20px;
}

.blog-post img {
  width: 35%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.blog-content {
  width: 65%;
}
.read-more{
  display: inline-block;
  margin-top: 1rem;
  padding: 10px 20px;
  color: #00ffe7;
  background-color: transparent;
  border: 1px solid #00ffe7;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 255, 231, 0.2);
}

.read-more:hover {
  background-color: #00ffe7;
  color: #000;
  box-shadow: 0 0 20px rgba(0, 255, 231, 0.5);
}
.blog-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #00ffe7;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.blog-title a {
  text-decoration: none;
  color: inherit;
}

.blog-title a:hover {
  color: #3d70f2;
}

  
/* 📱 Responsive for Mobile */
@media screen and (max-width: 768px) {
  .blog-container p {
  font-size:14px;
  }
  .blog-container ul li{
  font-size:14px;
  }
  .blog-container h3,
  .blog-container h4 {
  font-size:14px;
 }
  .blog-excerpt{
    display: none;
  }

  .blog-title {
  font-size: 16px;
  font-weight: 600;
  color: #00ffe7;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.blog-title a {
  text-decoration: none;
  color: inherit;
}

.blog-title a:hover {
  color: #3d70f2;
  }
}


/* Blog post ul li design */
.styled-list {
  list-style: none;
  padding-left: 1.5rem;
  margin-top: 1rem;
}

.styled-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  font-size: 1rem;
  line-height: 1.6;
}

.styled-list li::before {
  content: "➤";
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: #00BCD4; /* You can use your brand color here */
  font-weight: bold;
  font-size: 1rem;
}