/* =============================================================
   COMPONENTS.CSS — Legend, Search, Strain Cards, Toggles, Popup
   ============================================================= */
   
/* ===== LEGEND / FILTER BAR ===== */
.legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 16px;
  border-bottom: 2px solid #00ff00;
  position: sticky;
  top: 60px;
  background-color: rgba(30, 30, 30, 0.95);
  z-index: 90;
  overscroll-behavior: contain;
  font-size: 14px;
  transition: transform 0.3s ease;
}

.legend.hide {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transition: all 0.3s ease;
  z-index: 20;
}

.legend-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  user-select: none;
  position: relative;
  border-radius: 6px;
  padding: 6px 10px;
  background: transparent;
  border: none;
  margin: 0;
  transition: all 0.2s;
  font-size: 14px;
  flex: 0 0 auto;
  min-height: 30px;
  white-space: nowrap;
  overflow: visible;
}

.legend-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 255, 0, 0.3);
  z-index: -1;
}

.legend-item:hover,
.legend-item.active {
  background: #228B22;
  box-shadow: 0 0 12px rgba(34, 139, 34, 0.6);
  transform: scale(1.05);
}

/* Leaf — normal flex item, sits first */
.legend-item .legend-leaf {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  overflow: visible;
  position: static;
}

/* Color square — normal flex item, sits after leaf */
.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.legend-label {
  color: #b0e0b0;
}

.legend-item[data-filter="indica-strain"] .legend-color { background-color: #1a1a5e; }
.legend-item[data-filter="sativa-strain"] .legend-color { background-color: #5e1a1a; }
.legend-item[data-filter="hybrid-strain"] .legend-color { background-color: #1a4d1a; }
.legend-item[data-filter="unknown-strain"] .legend-color { background-color: #635518; }
.legend-item[data-filter="all"] .legend-color {
  background: linear-gradient(to right, #1a1a5e 0% 25%, #5e1a1a 25% 50%, #1a4d1a 50% 75%, #635518 75% 100%);
}
.legend-item[data-filter="tried"] .legend-color {
  background-color: #4d1a3d;
  position: relative;
  width: 24px;
  height: 24px;
}


.legend-color-indica { background-color: #1a1a5e !important; }
.legend-color-sativa { background-color: #5e1a1a !important; }
.legend-color-hybrid { background-color: #1a4d1a !important; }
.legend-color-unknown { background-color: #635518 !important; }
.legend-color-all {
  background: linear-gradient(to right, #1a1a5e 0% 25%, #5e1a1a 25% 50%, #1a4d1a 50% 75%, #635518 75% 100%) !important;
}
.legend-color-tried {
  background-color: #4d1a3d !important;
}

/* Text after color */
.legend-item span {
  font-size: 14px;
  margin-left: 2px;
}

.legend-item.active span {
  text-decoration: underline;
  font-weight: bold;
}

/* All/Tried — slightly wider, still centered */
.legend-item[data-filter="all"],
.legend-item[data-filter="tried"] {
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  min-height: 34px;
}

/* ===== SEARCH CONTAINER ===== */
.search-container {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 16px;
  border-bottom: 2px solid #00ff00;
  padding: 12px 0;
  position: sticky;
  top: 0px;
  background-color: rgba(30, 30, 30, 0.95);
  z-index: 15 !important;
  overscroll-behavior: contain;
}

.search-header {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  justify-content: center !important;
  width: 100% !important;
  margin-bottom: 8px !important;
  flex-shrink: 0 !important;
}

/* Shared button height/sizing in search bar */
.search-container button,
.search-container #exportTried,
#exportTried {
  height: 48px !important;
  min-height: 48px !important;
  line-height: 1 !important;
  padding: 8px 20px !important;
  margin: 0 !important;
  border-radius: 8px !important;
  font-weight: bold !important;
  font-size: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  min-width: 140px !important;
  box-sizing: border-box !important;
}

#exportTried {
  display: flex !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  background: rgba(0, 255, 0, 0.1) !important;
  border: 1px solid rgba(0, 255, 0, 0.4) !important;
  border-radius: 20px !important;
  color: #00ff00 !important;
  padding: 8px 20px !important;
  font-size: 14px !important;
  font-weight: bold !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}

#exportTried:hover {
  box-shadow: 0 0 20px rgba(34, 139, 34, 0.6) !important;
  transform: translateY(-2px) !important;
}

#randomStrain {
  background: rgba(0, 255, 0, 0.1) !important;
  border: 1px solid rgba(0, 255, 0, 0.4) !important;
  border-radius: 20px !important;
  color: #00ff00 !important;
  padding: 8px 20px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer;
  flex-shrink: 0;
  min-width: auto !important;
  white-space: nowrap;
  transition: all 0.3s ease;
}

#randomStrain:hover {
  background: #228B22 !important;
  transform: scale(1.05);
}

#strainInput {
  flex-grow: 1;
  padding: 10px 5px !important;
  border: none !important;
  border-bottom: 2px solid rgba(0, 255, 0, 0.5) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #00ff00 !important;
  font-size: 16px !important;
  transition: all 0.3s ease !important;
}
#strainInput:focus {
  outline: none !important;
  border-bottom: 2px solid #00ff00 !important;
  box-shadow: 0 4px 10px rgba(0, 255, 0, 0.2) !important;
}

/* ===== STRAIN LIST GRID ===== */
.strain-list-container {
  overflow-y: auto;
  padding: 24px 15px;
  scrollbar-width: thin;
  scrollbar-color: #00ff00 #262626;
  overscroll-behavior-y: auto !important;
  scroll-behavior: auto;
  }

.strain-list-container::-webkit-scrollbar {
  display: block !important;  /* Visible */
  width: 12px !important;
}
.strain-list-container::-webkit-scrollbar-thumb {
  background: #00ff00 !important;
}



.strain-list-container::-webkit-scrollbar-track {
  background: #262626;
}

.strain-list-container ul {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 12px !important;
  justify-content: center !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
  max-width: 1400px !important;
}


li::before {
  display: none !important;
}
.tried-toggle::before {
  content: '' !important;
  display: inline-block !important;
  width: 40px !important;
  height: 48px !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  flex-shrink: 0 !important;
  margin-right: 2px !important;
}

.indica-strain .tried-toggle::before {
  background-image: url('/images/indica-leaf.png');
  background-color: transparent !important;
}
.sativa-strain .tried-toggle::before {
  background-image: url('/images/sativa-leaf.png');
  background-color: transparent !important;
}
.hybrid-strain .tried-toggle::before {
  background-image: url('/images/hybrid-leaf.png');
  background-color: transparent !important;
}
.unknown-strain .tried-toggle::before {
  background-image: url('/images/unknown-leaf.png');
  background-color: transparent !important;
}






/* ===== STRAIN CARDS (li) ===== */
li {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: row !important;
  height: 70px !important;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 12px !important;
  min-width: 260px !important;
  max-width: 320px !important;
  width: auto !important;
  margin: 0 !important;
  text-align: center !important;
  transition: transform 0.3s ease-in-out;
  position: relative !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

.header-image-top-spaced {
  margin: 20px auto;
}

.visitor-counter-wrap {
  width: 100%;
  text-align: center;
  margin: 10px 0 18px;
}

#visitor-counter {
  display: inline-block;
  height: 26px;
  line-height: 26px;
  color: #00ff00;
  font-family: monospace;
  font-size: 14px;
  font-weight: bold;
  text-shadow: 0 0 6px #00ff00;
}

#noResultsPopup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 140px;
  background: rgba(10, 20, 10, 0.98);
  backdrop-filter: blur(20px);
  border: 2px solid #00ff00;
  border-radius: 20px;
  font-size: 26px;
  font-weight: 700;
  color: #00ff00;
  text-shadow: 0 0 10px #00ff00;
  box-shadow: 0 20px 60px rgba(0,255,0,0.4), inset 0 0 20px rgba(0,255,0,0.1);
  text-align: center;
  animation: pulse-glow 2s infinite;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#dismissBtn {
  background: rgba(0,0,0,0.8);
  color: #00ff00;
  border: 1px solid #00ff00;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-shadow: none;
  backdrop-filter: blur(10px);
}


li:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

li:hover .strain-name {
  text-shadow: 0 0 5px #fff, 0 0 10px #00ff00;
}

/* Strain type background colors + subtle borders */
.indica-strain  { background-color: #1a1a5e; border: 1px solid rgba(100, 100, 255, 0.25); }
.sativa-strain  { background-color: #5e1a1a; border: 1px solid rgba(255, 100, 100, 0.25); }
.hybrid-strain  { background-color: #1a4d1a; border: 1px solid rgba(100, 255, 100, 0.25); }
.unknown-strain { background-color: #635518; border: 1px solid rgba(255, 200, 100, 0.25); }

/* ===== STRAIN NAME — per-type contrast colors ===== */
.strain-name {
  font-weight: normal;
  font-size: 1.0em;
}

.strain-name a {
  text-decoration: none !important;
}

.indica-strain .strain-name,
.indica-strain .strain-name a   { color: #a8b4ff !important; }
.sativa-strain .strain-name,
.sativa-strain .strain-name a   { color: #ffb3b3 !important; }
.hybrid-strain .strain-name,
.hybrid-strain .strain-name a   { color: #b3ffb3 !important; }
.unknown-strain .strain-name,
.unknown-strain .strain-name a  { color: #ffe0a3 !important; }

.strain-name a:hover {
  text-shadow: 0 0 5px #fff, 0 0 10px #00ff00;
}


/* ===== TRIED TOGGLE ===== */
.tried-toggle {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 2px !important;
  width: auto !important;
  margin: 0 !important;
}

.tried-toggle input[type="checkbox"] {
  display: none;
}

.tried-checkmark {
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  border: 2px solid #00aa00;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  color: #00ff00 !important;
  background-color: #111 !important;
  position: relative !important;
  flex: 0 0 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  line-height: 1 !important;
  box-sizing: content-box !important;
  cursor: pointer;
}

.indica-strain .tried-checkmark  { border-color: rgba(100, 100, 255, 0.6); }
.sativa-strain .tried-checkmark  { border-color: rgba(255, 100, 100, 0.6); }
.hybrid-strain .tried-checkmark  { border-color: rgba(100, 255, 100, 0.6); }
.unknown-strain .tried-checkmark { border-color: rgba(255, 200, 100, 0.6); }

.tried-toggle.checked .tried-checkmark {
  background-color: #4d1a3d !important;
  color: #fff !important;
}

.tried-toggle.checked .tried-checkmark::before {
  content: '💖' !important;
  position: absolute !important;
  font-size: 18px !important;
  color: #FF69B4 !important;
  text-shadow: 0 0 4px #FF1493 !important;
}

.tried-label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  justify-content: flex-start;
  font-size: 1.1em !important;
  color: inherit;
  flex-grow: 1 !important;
}

.tried-toggle.checked .tried-label {
  font-weight: bold;
}

.strain-list-container li.hidden {
  display: none !important;
  height: 0 !important;
}

li .strain-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  width: 100%;
  flex-shrink: 0;
}



/* ===== RANDOM HIGHLIGHT ===== */
.random-highlight {
  border: 3px solid #00ff00 !important;
  box-shadow: 0 0 20px #00ff00 !important;
  animation: pulseRandom 1s infinite;
  }

@keyframes pulseRandom {
  0%, 100% { box-shadow: 0 0 20px #ffff00, 0 0 40px #ffff00; }
  50%       { box-shadow: 0 0 30px #ffff00, 0 0 60px #ffff00; }
}

/* ===== CLICK STATES ===== */
.legend-item:active,
#randomStrain:active,
.strain-list-container li:active,
a.gradient-btn:active {
  transform: scale(0.96) !important;
  transition: transform 0.1s !important;
}

#noResultsPopup::before,
#noResultsPopup::after {
  content: none !important;
}

.pulse-glow {
  animation: pulseGlow 1s infinite;
  text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00, 0 0 20px #00ff00;
}


@keyframes pulseGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%       { transform: translate(-50%, -50%) scale(1.1); }
}

/* ===== FIREWORK PARTICLES ===== */
.firework {
  position: fixed;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
}
@media (min-width: 400px) {

  .legend-item span {
    margin-left: 6px !important;
    flex-shrink: 0 !important;
    overflow: visible !important;
    max-width: none !important;
  }
}



.legend-color {
  width: 16px !important;
  height: 16px !important; /* Small icons */
}

.legend-item span {
  margin-left: 3px !important;
  font-size: 13px !important;
}


.legend {
  flex-wrap: wrap !important; /* Enable 2 rows */
  gap: 2px 6px !important; /* Vertical/horizontal */
  padding: 3px !important;
}

.legend-types-row {
  width: 100%;
  justify-content: center;
  margin-bottom: 1px;
}

.legend-item[data-filter="unknown"] {
  order: -1 !important; /* Force Unknown top */
}

.legend-item[data-filter="all"],
.legend-item[data-filter="tried"] {
  flex: 1 0 auto !important; /* Grow bottom row */
  max-width: 120px !important;
}
.legend-item {
  padding: 3px 6px !important; /* Shrink box */
  min-height: 20px !important; /* Much shorter */
  gap: 2px !important;
}

.legend-item span {
  font-size: 12px !important;
  margin-left: 2px !important;
  line-height: 1.1 !important;
}

.legend {
  padding: 1px 4px !important;
  gap: 3px !important;
}

.legend-color {
  width: 18px !important;  /* Match leaf */
  height: 18px !important;
}

.legend-item {
  min-height: 24px !important; /* Slight height bump for icons */
}
.legend-item[data-filter="all"] .legend-color,
.legend-item[data-filter="tried"] .legend-color {
  order: -1 !important; /* Color left of text */
  margin-right: 4px !important;
}

.legend-item[data-filter="all"] span,
.legend-item[data-filter="tried"] span {
  flex-grow: 1 !important;
  text-align: center !important;
  margin: 0 !important;
}
/* Site-Matched Cusdis Comments */
#comments-section {
  background: rgba(30, 35, 30, 0.95) !important;  /* Matches .container */
  border: 2px solid #00ff00 !important;
  backdrop-filter: blur(10px) !important;
  border-radius: 16px !important;
  padding: 16px !important;
  margin: 20px auto !important;
  max-width: 750px !important;
}

#comments-section .cusdis,
#comments-section iframe {
  background: rgba(40, 45, 40, 0.98) !important;  /* Darker match */
  color: #d0ffd0 !important;  /* Pale green-white */
}

#comments-section input,
#comments-section textarea {
  background: rgba(60, 65, 60, 0.9) !important;
  border: 1px solid #228B22 !important;
  color: #e0ffe0 !important;
}

#comments-section ::-webkit-scrollbar { display: none !important; }
#comments-section { scrollbar-width: thin; scrollbar-color: #00ff00 rgba(30,35,30,0.95); }

#cusdis_thread,
.cusdis {
  max-height: 450px !important;  /* Short & scrollable if needed */
  font-size: 14px !important;   /* Smaller text */
}

#cusdis_thread input,
#cusdis_thread textarea,
#cusdis_thread .comment-content {
  font-size: 14px !important;  /* Compact form */
  padding: 8px 12px !important;
  line-height: 1.4 !important;
}

#cusdis_thread .comments-list {
  max-height: 320px !important;  /* Tight comments area */
}

#comments-section {
  padding: 12px !important;     /* Minimal wrapper */
}

.tried-label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  justify-content: flex-start !important;
  font-size: 1.1em !important;
  color: inherit !important;
  flex-grow: 1 !important;
}

@media (max-width: 768px) {
  .strain-list-container ul {
    justify-content: center !important;
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
    padding: 0 10px !important;
  }
  
  .strain-list-container li {
    max-width: 320px !important;
    margin: 0 auto !important;
    width: 100% !important;
  }
}
.scroll-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-20px) !important;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.scroll-hidden {
  transform: translateY(-30px) scale(0.95) !important;
}

.search-container.scroll-hidden,
.legend.scroll-hidden {
  transform: translateY(-100%) !important;
}

@media (max-width: 768px) {
  .scroll-hidden {
    transition-duration: 0.25s !important;
  }
}
/* Strain dots behind sticky search/legend */
@media (max-width: 768px) {
  .strain-list-container {
    z-index: 1 !important;
  }
  
  .tried-checkmark,
  .tried-toggle {
    z-index: 2 !important;   /* Above strain list but below sticky bars */
  }
}

.header-image {
  z-index: 5 !important;
  display: block !important;
  margin: 0 auto 10px auto !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 20px rgba(0, 255, 0, 0.15) !important;
}

.tried-checkmark,
.tried-toggle,
.tried-toggle * {
  z-index: 2 !important;
  position: relative !important;
}

.search-container {
  z-index: 100 !important;  /* Above everything */
}

.legend {
  z-index: 90 !important;   /* Above strain list but below search */
}

@media (max-width: 768px) {
  .strain-list-container {
    z-index: 1 !important;   /* Bottom layer */
  }
  
  .search-container:not(.scroll-hidden),
  .legend:not(.scroll-hidden) {
    background-color: rgba(30, 30, 30, 0.98) !important;  /* Opaque backdrop */
    backdrop-filter: blur(15px) !important;
  }
}
@media (max-width: 480px) {
  .legend {
    flex-direction: column !important;
    gap: 4px !important;
    padding: 8px !important;
    font-size: 13px !important;
  }
  .legend-item {
    flex-shrink: 1 !important;
    max-width: 100% !important;
    padding: 4px 6px !important;
    min-height: 24px !important;
  }
  .legend-item span {
    font-size: 12px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex-shrink: 1 !important;
    margin-left: 2px !important;
  }
  .legend-color, .legend-leaf {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
  }
}
@media (max-width: 768px) and (min-width: 481px) {
  .legend {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 3px !important;
  }
  .legend-item {
    flex: 1 1 45% !important; /* 2 per row */
    max-width: 120px !important;
  }
}

/* =============================================================
   CHAT.CSS — Firebase real-time chat styling
   ============================================================= */

#chat-section {
  width: 90% !important;
  max-width: 100% !important;
  margin: 40px auto !important;
  padding: 24px !important;
}

#chat-section h2 {
  font-size: 1.4em;
  margin-bottom: 12px;
  text-align: center;
}

#chat-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-title {
  color: #00ff00 !important;
  text-shadow: 0 0 10px #00ff00;
  margin-bottom: 16px;
  text-align: center;
}

.admin-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 0 5px;
  color: #00ff00;
  line-height: 1;
}

.chat-title {
  color: #00ff00 !important;
  text-shadow: 0 0 10px #00ff00;
  margin-bottom: 16px;
  text-align: center;
}

.admin-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 0 5px;
  color: #00ff00;
  line-height: 1;
}

/* ----- MESSAGES AREA ----- */
#chat-messages {
  height: 350px;
  max-height: 50vh;
  overflow-y: auto;
  padding: 16px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #00ff00 rgba(0,0,0,0.3);
}

#chat-messages::-webkit-scrollbar {
  width: 6px;
}
#chat-messages::-webkit-scrollbar-thumb {
  background: #00ff00;
  border-radius: 10px;
}
#chat-messages::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.3);
}

/* ----- BUBBLE WRAPPER ----- */
.chat-bubble-wrapper {
  display: flex;
  animation: chatSlideIn 0.3s ease;
}

.chat-bubble-wrapper.own {
  justify-content: flex-end;
}

@keyframes chatSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----- BUBBLE ----- */
.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(40, 45, 40, 0.9);
  border: 1px solid rgba(0, 255, 0, 0.1);
  position: relative;
}

.chat-bubble-wrapper.own .chat-bubble {
  background: rgba(0, 100, 0, 0.35);
  border-color: rgba(0, 255, 0, 0.25);
  border-bottom-right-radius: 4px;
}

.chat-bubble-wrapper:not(.own) .chat-bubble {
  border-bottom-left-radius: 4px;
}

/* ----- META (name + time) ----- */
.chat-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 11px;
}

.chat-user-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 4px currentColor;
}

.chat-username {
  font-weight: 700;
  letter-spacing: 0.3px;
}

.chat-time {
  color: rgba(255, 255, 255, 0.35);
  margin-left: auto;
  font-size: 10px;
}

/* ----- MESSAGE BODY ----- */
.chat-body {
  font-size: 14px;
  line-height: 1.45;
  color: #e0e0e0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ----- INPUT AREA ----- */
#chat-input-area {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap; /* Lets the emoji grid drop to the next line */
}

#chatEmojiBtn:hover {
  transform: scale(1.2);
}

#stoner-picker {
  display: none;
  width: 100%;
  justify-content: center;
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid rgba(0, 255, 0, 0.3);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  z-index: 999;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

#stoner-picker span {
  font-size: 24px;
  cursor: pointer;
  text-align: center;
  padding: 6px;
  border-radius: 6px;
}

#stoner-picker span:hover {
  background: rgba(0, 255, 0, 0.2);
  transform: scale(1.2);
}

#chatEmojiBtn:hover {
  transform: scale(1.2);
}

#chatInput {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid rgba(0, 255, 0, 0.3);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.5);
  color: #e0e0e0;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#chatInput::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

#chatInput:focus {
  outline: none;
  border-color: #00ff00;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

#chatSend {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #228B22, #006400);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(34, 139, 34, 0.3);
}

#chatSend:hover {
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(0, 255, 0, 0.4);
}

#chatSend:active {
  transform: scale(0.95);
}

/* ----- DELETE BUTTONS ----- */
.admin-delete-btn {
  display: none !important;
}

.admin-mode .admin-delete-btn {
  display: inline-block !important;
  cursor: pointer;
  color: #ff4444;
  margin-left: 8px;
  font-size: 12px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.admin-mode .admin-delete-btn:hover {
  opacity: 1;
}

/* ----- STATUS ----- */
#chat-status {
  text-align: center;
  font-size: 12px;
  color: rgba(0, 255, 0, 0.6);
  min-height: 18px;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 768px) {
  #chat-section {
    padding: 16px !important;
    margin: 20px 10px !important;
  }

 #chat-messages {
    height: 280px;
    padding: 12px;
}

  .chat-bubble {
    max-width: 88%;
  }

  .chat-body {
    font-size: 13px;
  }

  #chatInput {
    font-size: 16px; /* Prevents iOS zoom on focus */
  }
}
.search-container.neon-terminal-search {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  border-bottom: none;
  box-shadow: none;
  padding: 10px 0;
}

.search-container.neon-terminal-search .search-header {
  display: none;
}

.search-container.neon-terminal-search #strainInput {
  flex-grow: 1;
  min-width: 200px;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(0, 255, 0, 0.5);
  border-radius: 0;
  color: #00ff00;
  font-size: 16px;
  padding: 10px 5px;
  text-align: left;
  box-shadow: none;
}

#strainInput:focus {
  outline: none !important;
  border-bottom: 2px solid #00ff00 !important;
  box-shadow: 0 4px 10px rgba(0, 255, 0, 0.2) !important;
}
#strainInput::placeholder {
  color: rgba(0, 255, 0, 0.35) !important;
}

.search-container.neon-terminal-search #randomStrain {
  background: rgba(0, 255, 0, 0.1) !important;
  border: 1px solid rgba(0, 255, 0, 0.4) !important;
  border-radius: 20px !important;
  color: #00ff00 !important;
  font-size: 14px !important;
  padding: 8px 20px !important;
  min-width: auto !important;
  min-height: auto !important;
  height: auto !important;
  box-shadow: none !important;
}

.search-container.neon-terminal-search #exportTried {
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid rgba(0, 255, 0, 0.4);
  border-radius: 20px;
  color: #00ff00;
  font-size: 14px;
  padding: 8px 20px;
  min-width: auto;
  min-height: auto;
  height: auto;
  max-width: none;
  box-shadow: none;
}
/* ===== FROSTED INSTRUCTIONS PILL ===== */
.instructions-bar {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 0 auto 20px auto !important;
  padding: 8px 24px !important;
  background: rgba(10, 10, 10, 0.7) !important; /* Dark translucent background */
  backdrop-filter: blur(10px) !important; /* Blurs the background behind it */
  border-radius: 30px !important; /* Pill shape */
  border: 1px solid rgba(255, 255, 255, 0.05) !important; /* Subtle edge */
  max-width: 650px !important;
}

.instructions-bar span {
  color: #c0c0c0 !important; /* Bright enough to read easily */
  font-size: 13px !important;
  white-space: nowrap !important;
}

.instructions-bar .inst-divider {
  color: #00ff00 !important; /* Little neon green dot divider */
  font-size: 10px !important;
  opacity: 0.5 !important;
}
.tried-toggle {
  cursor: pointer !important;
}

.tried-checkmark {
  pointer-events: auto !important;
  cursor: pointer !important;
  position: relative !important;
  z-index: 5 !important;
}

.tried-label {
  cursor: pointer !important;
  pointer-events: auto !important;
}

.strain-name a {
  pointer-events: auto !important;
}