body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0a0a0a !important;
  color: #e0e0e0 !important;
  padding: 0;
  margin: 0;
  line-height: 1.6;
}

/* Modern Header Styling */
.main-header {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-bottom: 2px solid #333;
  padding: 15px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(189, 252, 154, 0.3);
}

.main-title {
  font-size: 2.5rem;
  margin: 0;
  background: linear-gradient(45deg, #bdfc9a, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  letter-spacing: -1px;
}

.header-controls {
  display: flex;
  gap: 15px;
  align-items: center;
}

.layout-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #2a2a2a, #3a3a3a);
  border: 2px solid #444;
  border-radius: 25px;
  color: #e0e0e0;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.layout-toggle-btn:hover {
  background: linear-gradient(135deg, #3a3a3a, #4a4a4a);
  border-color: #bdfc9a;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(189, 252, 154, 0.2);
}

.toggle-icon {
  font-size: 16px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Main Container */
.main-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.layout-container {
  /* Remove background to eliminate extra card */
  padding: 0;
  margin: 0;
}

/* Panel Styling */
.left-panel, .right-panel {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-header {
  text-align: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #333;
}

.panel-title {
  font-size: 1.8rem;
  margin: 0 0 8px 0;
  color: #bdfc9a;
  font-weight: 600;
}

.panel-subtitle {
  color: #ccc;
  margin: 0;
  font-size: 0.95rem;
}

/* Search Section */
.search-section {
  margin-bottom: 20px;
}

.search-input {
  width: 100% !important;
  max-width: 100% !important;
  padding: 15px 20px;
  font-size: 16px;
  background: linear-gradient(135deg, #2e2e2e, #3a3a3a) !important;
  border: 2px solid #444 !important;
  border-radius: 25px;
  color: #e0e0e0 !important;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-input:focus {
  border-color: #bdfc9a !important;
  box-shadow: 0 0 20px rgba(189, 252, 154, 0.3), inset 0 2px 5px rgba(0, 0, 0, 0.2);
  outline: none;
}

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #bdfc9a;
  margin: 0;
  text-shadow: 0 0 10px rgba(189, 252, 154, 0.3);
}

.modifier-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Modern Button Styles */
.info-btn, .sort-btn, .admin-btn {
  padding: 8px 15px;
  border-radius: 20px;
  border: 1px solid #444;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 12px;
  font-weight: 500;
}

.info-btn {
  background: linear-gradient(135deg, #3a5998, #4267B2);
  color: white;
}

.sort-btn {
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  color: white;
}

.admin-btn {
  background: linear-gradient(135deg, #e17055, #fd79a8);
  color: white;
}

.info-btn:hover, .sort-btn:hover, .admin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Mutation Search */
.mutation-search-container {
  margin-bottom: 25px;
  padding: 0 5px;
}

.mutation-search {
  width: 100%;
  max-width: 100%;
  padding: 12px 18px;
  background: linear-gradient(135deg, #2e2e2e, #3a3a3a);
  border: 2px solid #444;
  border-radius: 20px;
  color: #e0e0e0;
  font-size: 14px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mutation-search:focus {
  border-color: #bdfc9a;
  box-shadow: 0 0 15px rgba(189, 252, 154, 0.2);
  outline: none;
}

/* Modifiers Grid */
.modifiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
  padding: 10px 5px;
}

/* Input Section */
.input-section {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 15px;
  padding: 20px;
  margin: 20px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.input-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-label {
  font-weight: 600;
  color: #bdfc9a;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-field {
  padding: 12px 15px;
  background: linear-gradient(135deg, #2e2e2e, #3a3a3a);
  border: 2px solid #444;
  border-radius: 10px;
  color: #e0e0e0;
  font-size: 16px;
  transition: all 0.3s ease;
}

.input-field:focus {
  border-color: #bdfc9a;
  box-shadow: 0 0 15px rgba(189, 252, 154, 0.2);
  outline: none;
}

.range-input {
  appearance: none;
  height: 8px;
  background: linear-gradient(90deg, #444, #bdfc9a);
  border-radius: 4px;
  outline: none;
}

.range-input::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  background: #bdfc9a;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(189, 252, 154, 0.5);
}

.range-label {
  text-align: center;
  font-weight: 600;
  color: #bdfc9a;
  font-size: 0.9rem;
}

/* Results Section */
.results-section {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 15px;
  padding: 20px;
  margin: 20px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-display {
  text-align: center;
  margin: 20px 0;
}

.main-result {
  font-size: 4rem;
  font-weight: 700;
  background: linear-gradient(45deg, #bdfc9a, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(189, 252, 154, 0.3);
  margin: 20px 0;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 25px 0;
}

.primary-btn, .secondary-btn, .special-btn, .update-btn {
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  font-size: 14px;
}

.primary-btn {
  background: linear-gradient(135deg, #00b894, #00cec9);
  color: white;
}

.secondary-btn {
  background: linear-gradient(135deg, #636e72, #74b9ff);
  color: white;
}

.special-btn {
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  color: white;
}

.update-btn {
  background: linear-gradient(135deg, #fd79a8, #e84393);
  color: white;
}

.primary-btn:hover, .secondary-btn:hover, .special-btn:hover, .update-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Formula Section */
.formula-section {
  margin-top: 25px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  border: 1px solid #333;
}

.formula-explain {
  font-size: 0.9rem;
  color: #ccc;
  text-align: center;
  margin-bottom: 15px;
  padding: 8px;
}

.formula-display {
  font-size: 1rem;
  color: #bdfc9a;
  text-align: center;
  font-family: 'Courier New', monospace;
  background: rgba(189, 252, 154, 0.1);
  padding: 15px;
  border-radius: 8px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Value to Weight Box */
.value-weight-box {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 15px;
  padding: 20px;
  margin: 20px 0;
  border: 2px solid #444;
}

.value-weight-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

/* Plant List */
.plant-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.plant-list li {
  background: rgba(189, 252, 154, 0.1);
  padding: 10px 15px;
  margin: 8px 0;
  border-radius: 8px;
  border-left: 4px solid #bdfc9a;
  color: #bdfc9a;
}

.final-value {
  text-align: center;
  font-size: 1.5rem;
  color: #ffd700;
  font-weight: 600;
  margin: 20px 0;
}

.row {
      display: flex;
      flex-wrap: wrap;
      margin-bottom: 10px;
    }
    .section-title {
      font-weight: bold;
      font-size: 18px;
      margin-bottom: 10px;
    }
    input[type="number"] {
      padding: 10px;
      font-size: 20px;
      width: 150px;
    }
    .result {
      font-size: 64px;
      margin-top: 20px;
      color: #bdfc9a;
    }
    input, button {
      background: #2e2e2e !important;
      color: #e0e0e0 !important;
      border: 1px solid #444 !important;
    }
    button {
      font-size: 18px;
      padding: 10px 20px;
      border-radius: 8px;
      cursor: pointer;
    }
    #modifiers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  position: relative;
  z-index: 2;
  padding: 10px 5px;
}
    .fruit-button img {
      width: 64px;
      height: 64px;
      opacity: 0.5;
	  border: none;
    }
   
	.fruit-button.active {
  box-shadow: 0 0 10px 3px #bdfc9a;
  border: 2px solid #bdfc9a;
}
    .modifier-button {
      margin: 0;
      padding: 12px 16px;
      border-radius: 12px;
      background: linear-gradient(135deg, #2c2c2c, #3a3a3a);
      color: #e0e0e0;
      border: 2px solid #444;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      font-size: 13px;
      font-weight: 500;
      text-align: center;
      min-height: 45px;
      display: flex;
      align-items: center;
      justify-content: center;
      box-sizing: border-box;
      word-wrap: break-word;
      line-height: 1.2;
    }
	#togglePriceRangeBtn.active {
  background-color: #3a3a3a;
  border-color: #bdfc9a;
  box-shadow: 0 0 10px 4px #bdfc9a;
}
    .modifier-button.active {
      box-shadow: 0 0 15px 3px rgba(189, 252, 154, 0.4);
      background: linear-gradient(135deg, #3c3c3c, #4c4c4c);
      border-color: #bdfc9a;
      transform: translateY(-1px);
    }
    .modifier-button.disabled {
      opacity: 0.3;
      pointer-events: none;
      filter: grayscale(100%);
    }
    .category-toggle {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 20px;
    }
    .category-toggle-button {
      font-size: 18px;
      padding: 12px 24px;
      background-color: #3a3a3a;
      border: 2px solid #555;
      border-radius: 10px;
      cursor: pointer;
      transition: all 0.2s ease-in-out;
    }
	  .fruit-button.active {
  box-shadow: 0 0 10px 3px #bdfc9a;
  border: 2px solid #bdfc9a;
}
    .category-toggle-button.active {
      transform: scale(1.05);
      background-color: #4a4a4a;
      border-color: #bdfc9a;
    }
	.category-toggle-button.bee-glow {
  box-shadow: 0 0 8px 4px yellow;
  border-color: yellow;
}
.fruit-button span {
  text-transform: capitalize;
}
.category-wrapper {
  position: relative;
  height: 520px; 
  overflow: visible;
overflow-y: visible;
  margin-bottom: 20px;

}

.category-toggle-button.bee-default-glow {
  box-shadow: 0 0 12px 4px yellow;
  border-color: yellow;
}

.category-toggle-button.active {
  transform: scale(1.05);
  background-color: #4a4a4a;
  border-color: #bdfc9a;
  box-shadow: 0 0 10px 4px #bdfc9a;
}

.category-toggle-button.active.bee-default-glow {
  box-shadow: 0 0 10px 4px #bdfc9a;
  border-color: #bdfc9a;
}
.category-content {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  flex-wrap: wrap;
  gap: 10px;
  display: none;
  transition: opacity 0.3s ease-in-out;
  z-index: 0; 
padding-bottom: 10px;
}
.category-content.active {
  display: flex;
}

.google-form {
  width: 100%;
  height: 500px;
  border: none;
  display: block;
  margin: 0 auto;
}

.desktop-ad {
  width: 100%;
  max-width: 320px;
  margin: 20px auto 0;
  text-align: center;
}
.form-ad-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.form-ad-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  align-items: center;
}
.input-group {
   display: flex;         
  flex-direction: row;  
  gap: 1rem;            
  flex-wrap: nowrap;    
  align-items: center; 
}

.input-block {
display: flex;
  flex-direction: column;
  min-width: 150px;
  margin: 2px 5px
}

.input-block.small {
  flex: 0 1 75px;
}

.input-block.large {
  flex: 1 1 100px;
}

.input-block input[type="number"],
.input-block input[type="range"] {
  font-size: 18px;
  padding: 8px;
  background: #2e2e2e;
  color: #e0e0e0;
  border: 1px solid #444;
  border-radius: 6px;
  max-width: 200px;
}

.input-block label {
  margin-bottom: 6px;
  font-size: 14px;
}

#sliderValueLabel {
  margin-top: 6px;
  font-size: 14px;
  color: #ccc;
}

.layout-container.layout-side-by-side {
  display: flex;
  flex-direction: row;
  gap: 20px;
}
.layout-container.layout-side-by-side .left-panel,
.layout-container.layout-side-by-side .right-panel {
  flex: 1;
min-width: 0;
}
.layout-container.layout-default .left-panel,
.layout-container.layout-default .right-panel {
  width: 100%;
}

#layoutToggleBtn {
  display: block;
}

.layout-container.layout-side-by-side .left-panel {
  max-height: calc(100vh - 60px); /* adjust if header/button takes more space */
  overflow-y: auto;
  padding-right: 10px;
  box-sizing: border-box;
}

.ad-slot-wrapper {
  width: 100%;
  max-width: 320px;
  min-height: 100px;
  margin-top: 20px;
}

@media (max-width: 1079px) {
  .category-content {
    max-height: 400px; /* or whatever fits your layout */
    overflow-y: auto;
    padding-right: 10px; /* optional: avoid scrollbar overlap */
  }
}

.top-controls {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 1000;
}

.layout-container.layout-side-by-side .category-toggle-button:first-child {
  margin-left: 10px; /* or more, adjust as needed */
}

.modifier-button.active.rainbow {
  box-shadow:
    0 0 4px #ff0000,
    0 0 8px #ff9900,
    0 0 12px #33cc33,
    0 0 16px #3399ff,
    0 0 20px #9900cc;
}

.modifier-button.active.gold { box-shadow: 0 0 10px 3px gold; }
.modifier-button.active.pollinated { box-shadow: 0 0 10px 3px #ffaa1c; }
.modifier-button.active.celestial { box-shadow: 0 0 10px 3px #f04ac3; }
.modifier-button.active.moonlit { box-shadow: 0 0 10px 3px #999dff; }
.modifier-button.active.burnt { box-shadow: 0 0 10px 2px #444, 0 0 2px 1px white;}
.modifier-button.active.shocked { box-shadow: 0 0 10px 3px #ffe66d; }
.modifier-button.active.disco { box-shadow: 0 0 10px 3px #f48fd6; }
.modifier-button.active.choc { box-shadow: 0 0 10px 3px #3d2218; }
.modifier-button.active.zombified { box-shadow: 0 0 10px 3px #4bb973; }
.modifier-button.active.honeyglazed { box-shadow: 0 0 10px 3px #ffc94d; }
.modifier-button.active.molten { box-shadow: 0 0 10px 3px #e76a0b; }
.modifier-button.active.frozen,
.modifier-button.active.chilled { box-shadow: 0 0 10px 3px #72bff5; }
.modifier-button.active.wet { box-shadow: 0 0 10px 3px #66b6e3; }
.modifier-button.active.meteoric { box-shadow: 0 0 10px 3px #403483; }
.modifier-button.active.heavenly { box-shadow: 0 0 10px 3px #F2EB99; }
.modifier-button.active.bloodlit { box-shadow: 0 0 10px 3px #B00000; }
.modifier-button.active.voidtouched { box-shadow: 0 0 10px 3px #D24CFF; }
.modifier-button.active.plasma { box-shadow: 0 0 10px 3px #9D2D6F; }
.modifier-button.active.cooked { box-shadow: 0 0 10px 3px #CC6000; }
.modifier-button.active.windstruck { box-shadow: 0 0 10px 3px #A2B9D1; }
.modifier-button.active.sundried { box-shadow: 0 0 10px 3px #CF5D00; }
.modifier-button.active.alienlike { box-shadow: 0 0 10px 3px #5CC6B1; }
.modifier-button.active.verdant { box-shadow: 0 0 10px 3px #386F28; }
.modifier-button.active.paradisal { box-shadow: 0 0 10px 3px #9DC237; }
.modifier-button.active.galactic { box-shadow: 0 0 10px 3px #A96CD4; }
.modifier-button.active.sandy { box-shadow: 0 0 10px 3px #D4BF8D; }
.modifier-button.active.clay { box-shadow: 0 0 10px 3px #966450; }
.modifier-button.active.ceramic { box-shadow: 0 0 10px 3px #EAB892; }
.modifier-button.active.aurora { box-shadow: 0 0 10px 3px #6258AC; }
.modifier-button.active.twisted { box-shadow: 0 0 10px 3px #B8B8B8; }
.modifier-button.active.cloudtouched { box-shadow: 0 0 10px 3px #DEFCFC; }
.modifier-button.active.ancientamber { box-shadow: 0 0 10px 3px #893314; }
.modifier-button.active.amber { box-shadow: 0 0 10px 3px #FFC000; }
.modifier-button.active.fried { box-shadow: 0 0 10px 3px #974D1C; }
.modifier-button.active.oldamber { box-shadow: 0 0 10px 3px #AC6E5E; }
.modifier-button.active.friendbound { box-shadow: 0 0 10px 3px #E9267E; }
.modifier-button.active.tempestous {box-shadow: 0 0 10px 3px #8CA0B1; }
.modifier-button.active.infected {box-shadow: 0 0 10px 3px #43A700; }
@keyframes rainbowText {
  0%   { color: red; }
  33%  { color: blue; }
  66%  { color: green; }
  100% { color: red; }
}

.rainbow-animated {
  animation: rainbowText 3s infinite ease-in-out;
  font-weight: bold;
}

#mutationBreakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 75%;
}

#mutationBreakdown span {
  white-space: nowrap;
}

#owlXpInputs {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  overflow: visible;
  max-height: unset;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 10px 2px rgba(255, 255, 0, 0.7);
  }
  50% {
    box-shadow: 0 0 20px 5px rgba(255, 255, 0, 1);
  }
  100% {
    box-shadow: 0 0 10px 2px rgba(255, 255, 0, 0.7);
  }
}

.glow-highlight {
  animation: pulse-glow 1.5s ease-in-out infinite;
  border: 2px solid #ffd700;
  border-radius: 6px;
}

.adsbygoogle[data-ad-format="autorelaxed"] {
  display: none !important;
}

@media (min-width: 1080px) {
  .right-banner-ad {
    position: fixed;
    top: 100px;
    right: 0;
    width: 10vw;
    max-width: 160px;
    height: auto;
    z-index: 1000;
    display: block;
    padding: 10px;
    box-sizing: border-box;
  }
}

/* Hide on mobile */
@media (max-width: 900px) {
  .right-banner-ad {
    display: none;
  }
}

/* Glass Morphism Effects */
.left-panel, .right-panel {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Modifiers Section - Better Spacing */
.modifiers-section {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  padding: 25px;
  margin: 20px 0;
  transition: all 0.3s ease;
}

.modifiers-section:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(189, 252, 154, 0.2);
}

/* Also update other sections */
.input-section, .results-section {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.input-section:hover, .results-section:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(189, 252, 154, 0.2);
}

/* Enhanced Fruit Button Animations */
.fruit-button {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.fruit-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(189, 252, 154, 0.2), transparent);
  transition: left 0.5s;
}

.fruit-button:hover::before {
  left: 100%;
}

.fruit-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(189, 252, 154, 0.3);
}

.fruit-button img {
  transition: all 0.3s ease;
}

.fruit-button:hover img {
  opacity: 1 !important;
  filter: drop-shadow(0 0 10px rgba(189, 252, 154, 0.5));
}

/* Enhanced Category Toggle Animations */
.category-toggle-button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-toggle-button::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #bdfc9a, #ffffff);
  transition: width 0.3s ease;
}

.category-toggle-button:hover::after {
  width: 100%;
}

.category-toggle-button.active::after {
  width: 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}

/* Enhanced Modifier Button Effects */
.modifier-button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modifier-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(189, 252, 154, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
}

.modifier-button:hover::before {
  width: 300px;
  height: 300px;
}

.modifier-button:hover {
  transform: translateY(-2px);
  border-color: rgba(189, 252, 154, 0.5);
}

/* Loading Animation for Results */
.main-result {
  animation: resultPulse 2s ease-in-out infinite alternate;
}

@keyframes resultPulse {
  0% { 
    text-shadow: 0 0 20px rgba(189, 252, 154, 0.3);
  }
  100% { 
    text-shadow: 0 0 40px rgba(189, 252, 154, 0.6), 0 0 60px rgba(189, 252, 154, 0.3);
  }
}

/* Smooth Scrollbar for All Containers */
* {
  scrollbar-width: thin;
  scrollbar-color: #bdfc9a #2e2e2e;
}

*::-webkit-scrollbar {
  width: 8px;
}

*::-webkit-scrollbar-track {
  background: #2e2e2e;
  border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #bdfc9a, #9fe87e);
  border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #9fe87e, #7ed65e);
}

/* Enhanced Search Input Effects */
.search-input::placeholder,
.mutation-search::placeholder {
  color: rgba(224, 224, 224, 0.5);
  transition: color 0.3s ease;
}

.search-input:focus::placeholder,
.mutation-search:focus::placeholder {
  color: rgba(189, 252, 154, 0.7);
}

/* Floating Label Effect */
.input-group {
  position: relative;
}

.input-label {
  transition: all 0.3s ease;
  position: relative;
}

.input-field:focus + .input-label,
.input-field:not(:placeholder-shown) + .input-label {
  transform: translateY(-25px) scale(0.85);
  color: #bdfc9a;
}

/* Button Ripple Effect */
.primary-btn, .secondary-btn, .special-btn, .update-btn {
  position: relative;
  overflow: hidden;
}

.primary-btn::after, .secondary-btn::after, .special-btn::after, .update-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
}

.primary-btn:active::after, .secondary-btn:active::after, 
.special-btn:active::after, .update-btn:active::after {
  width: 300px;
  height: 300px;
}

/* Page Transition */
.main-wrapper {
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced Modal Effects */
#mutationModal {
  animation: modalSlideIn 0.4s ease-out;
  backdrop-filter: blur(5px);
}

@keyframes modalSlideIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

