/* ===== Base Styles ===== */
body {
    scroll-behavior: smooth;
  }
  
  /* ===== Header Styles ===== */
  header {
    background: linear-gradient(135deg, #1565C0 0%, #5E35B1 100%);
    color: white;
    padding: 0.75rem 0; /* py-3 */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-lg */
    top: 0;
    z-index: 50; /* z-50 */
    width: full;
  }

  .logo_img {
    width: 200px;
    height: 50px;
  }
  div#header-placeholder {
    position: sticky;
    top: 0;
    z-index: 999;
}
  
  header .container {
    /*max-width: 100%;*/
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem; /* px-4 */
    padding-right: 1rem; /* px-4 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    vertical-align: center;
  }
  
  /* Logo/Title */
  header h1 {
    font-size: 1.125rem; /* text-lg */
    font-weight: 700; /* font-bold */
  }
  
  header h1 a {
    color: white;
    transition: color 0.3s ease;
  }
  
  header h1 a:hover {
    color: #93c5fd; /* hover:text-blue-300 */
  }
  
  /* ===== Mobile Menu Button ===== */
  #menu-toggle {
    display: none; /* Hidden by default on desktop */
    background: transparent;
    border: none;
    color: white !important;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 60;
  }
  
  #menu-toggle:focus {
    outline: none;
  }
  
  #menu-toggle i {
    font-size: 1.25rem; /* text-xl */
    transition: transform 0.3s ease;
  }
  
  /* ===== Navigation Menu ===== */
  #nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #1e3a8a; /* bg-blue-900 */
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.3s ease-out;
    z-index: 40;
  }
  
  #nav-menu.mobile-open {
    max-height: 500px;
    opacity: 1;
  }
  
  #nav-menu ul {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    margin: 0;
    list-style: none;
  }
  
  #nav-menu li {
    margin: 0.5rem 0;
  }
  
  #nav-menu a {
    display: block;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.875rem; /* text-sm */
    transition: color 0.3s ease;
  }
  
  #nav-menu a:hover {
    color: #93c5fd; /* hover:text-blue-300 */
  }
  
  .active-nav-link {
    color: #fbbf24 !important; /* text-yellow-300 */
    font-weight: 600;
  }
  
  /* ===== Desktop Styles ===== */
  @media (min-width: 640px) {
    header {
      padding: 1rem 0; /* sm:py-4 */
    }
    
    header h1 {
      font-size: 1.25rem; /* sm:text-xl */
    }
  
    #menu-toggle {
      display: none; /* Keep hidden on desktop */
    }
  
    #nav-menu {
      position: static;
      display: block !important;
      max-height: none;
      opacity: 1;
      background-color: transparent;
    }
  
    #nav-menu ul {
      flex-direction: row;
      padding: 0;
    }
  
    #nav-menu li {
      margin: 0 0 0 1.5rem; /* sm:space-x-6 */
    }
  
    #nav-menu a {
      padding: 0.5rem 0;
      font-size: 1rem; /* sm:text-base */
    }
  }
  
  @media (min-width: 1024px) {
    header h1 {
      font-size: 1.5rem; /* lg:text-2xl */
    }
  }
  
  /* ===== Component Loading Styles ===== */
  .component-error {
    padding: 1rem;
    background: #fee2e2;
    color: #b91c1c;
    border-radius: 0.25rem;
    text-align: center;
  }
  
  .component-error button {
    margin-top: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: #b91c1c;
    color: white;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
  }
  
  .loading {
    padding: 1rem;
    text-align: center;
    color: #1e40af;
  }
  
  /* ===== Other Global Styles ===== */
  .shadow-3xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  }
  
  .chart-container {
    position: relative;
    height: 350px;
    width: 100%;
  }
  
  /* Input styles */
  input[type="number"], input[type="range"] {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
  }
  
  input[type="number"]:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
  }
  
  input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
  }
  
  input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #2563eb;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  input[type="range"]::-webkit-slider-thumb:hover {
    background: #1d4ed8;
  }
  
  /* Responsive grid adjustments */
  @media (max-width: 768px) {
    .grid {
      grid-template-columns: 1fr;
    }
  }

  /* Hamburger Icon Styles */
#menu-toggle {
    display: none; /* Hidden by default on desktop */
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 60;
  }
  
  /* Show only on mobile */
  @media (max-width: 639px) {
    #menu-toggle {
      display: block;
    }
  }
  
  /* Hamburger SVG icon */
  #menu-toggle svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
  }
  
  #menu-toggle.open svg {
    transform: rotate(90deg);
  }
  
  /* Mobile Menu */
  #nav-menu {
    transition: all 0.3s ease-out;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
  }
  
  #nav-menu.mobile-open {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
  }
  
  @media (min-width: 640px) {
    #nav-menu {
      max-height: none;
      opacity: 1;
      transform: none;
      display: block !important;
    }
  }


  /* Ad Container Styles */
.left-ad, .right-ad {
    transition: opacity 0.3s ease;
    background: transparent;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .left-ad, .right-ad {
        display: none !important;
    }
    
    .top-ad {
        padding: 0.5rem;
    }
}

/* Ad placeholder styling */
.adsbygoogle[data-ad-status="unfilled"] {
    background: transparent;
    border: 1px dashed #ccc;
}

/* Prevent layout shifts */
.adsbygoogle {
    display: block !important;
    overflow: hidden;
}

/* styles.css */
body {
  background: linear-gradient(135deg, #BBDEFB 0%, #D1C4E9 100%);
  min-height: 100vh;
  width: full;
}


/* Install Mobile App */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  max-width: 300px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.popup-content h2 {
  margin: 0 0 10px;
  font-size: 1.5em;
}

.popup-content p {
  margin: 0 0 20px;
  font-size: 1em;
}

button {
  padding: 10px 20px;
  margin: 5px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
}

#installButton {
  background: #0d6efd;
  color: #fff;
}

#dismissButton {
  background: #6c757d;
  color: #fff;
}