/* =============================
   DARK THEME + NEON GLOW UI
============================= */

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: #10384e;
  color: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;     /* Fixes dropdown width issues */
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  overflow: visible !important;   /* 🔥 Required for proper dropdown expansion */
}

/* Ensure ALL sections allow dropdown overflow */
main, section, .main-area {
  overflow: visible !important;   /* 🔥 This is what was missing */
  position: relative;
  z-index: 1;
}

/* =============================
   HEADER
============================= */
.site-header {
  width: 100%;
  background: #0b0e13;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 40px;
  height: auto;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
/* NAVIGATION */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Navbar links (clean version of ghost button) */
.nav-right .btn.small.ghost {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  height: auto;

  /* lighter border for nav */
  border: 1px solid rgba(255,255,255,0.18);
}

.nav-right .btn.small.ghost:hover {
  border-color: #fff;
  color: #fff;
}

/* Mobile fix */
@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    gap: 15px;
  }
}

/* =============================
   HERO
============================= */
.hero {
  text-align: center;
  padding: 10px 0 35px;
}

.hero h1 {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 1px;
}

.hero .sub {
  opacity: 0.85;
  margin-top: 10px;
  font-size: 16px;
}

/* Ads */
.ad-slot {
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.12);
  padding: 18px;
  margin: 18px auto;
  border-radius: 10px;
  text-align: center;
  font-size: 12px;
  opacity: 0.6;
}
.small { max-width: 600px; }
.footer-ad { margin-top: 25px; }

/* =============================
   TOOL CARD
============================= */
.tool-card {
  background: #12141c;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 0 25px rgba(0,0,0,0.45);
  margin-bottom: 40px;

  overflow: visible !important;   /* Allows dropdown to overflow */
  position: relative;
  z-index: 50;
}

label {
  font-size: 15px;
  opacity: 0.9;
}

/* =============================
   CUSTOM DROPDOWN
============================= */
.custom-dropdown {
  width: 100%;
  position: relative;
  overflow: visible !important;
  z-index: 100;
}

.dropdown-selected {
  background: #0f1117;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dropdown-arrow { transition: 0.2s; }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  max-height: 260px;
  overflow-y: auto;
  background: #0f1117;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 10px 0;
  display: none;
  z-index: 9999;
}

/* Optgroup labels */
.dropdown-group {
  padding: 8px 16px;
  font-size: 14px;
  color: #8ab4ff;
  font-weight: 600;
}

/* Items */
.dropdown-item {
  padding: 10px 16px;
  color: #fff;
  cursor: pointer;
  transition: 0.15s;
}

.dropdown-item:hover {
  background: rgba(255,255,255,0.08);
}

/* =============================
   BUTTONS
============================= */
.btn {
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: 0.25s;
}

.btn.neon {
  background: #0d0f14;
  border: 1px solid #1e90ff;
  box-shadow: 0 0 12px #1e90ff;
  color: #1e90ff;
  font-weight: 600;
}

.btn.neon:hover {
  box-shadow: 0 0 18px #1e90ff;
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: #bbb;
}

.btn.ghost:hover {
  border-color: #fff;
  color: #fff;
}

.actions {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

/* =============================
   RESULTS
============================= */
.results {
  margin-top: 25px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.password-item {
  background: #0f1117;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: 0.2s;
  font-size: 15px;
  word-break: break-all;
}

.password-item:hover {
  background: #141823;
  border-color: #1e90ff;
  box-shadow: 0 0 10px rgba(30,144,255,0.4);
}

/* =============================
   HOW IT WORKS
============================= */
.how-it-works {
  margin-top: 40px;
  padding-bottom: 40px;
}

.how-it-works h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.how-it-works p {
  opacity: 0.85;
}

/* =============================
   FOOTER
============================= */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 25px 0;
  margin-top: 40px;
  text-align: center;
  opacity: 0.7;
  font-size: 14px;
}

/* =============================
   RESPONSIVE
============================= */
@media (max-width: 600px) {
  .actions { flex-direction: column; }
  .btn { width: 100%; text-align: center; }
}
