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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f9f0 !important;
    color: #2c3e2e !important;
    padding: 8px;
}

.calculator-container {
  
    margin: 0 auto;
  
    border-radius: 20px;
   
}

.section-box {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e8ed;
}

.section-box h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: 600;
}

.mutation-sections {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.half-width {
    flex: 1;
    margin-bottom: 0;
}

.crop-results-container {
    border: 1px solid #e1e8ed;
    border-radius: 10px;
    padding: 0; /* let the inner container handle spacing */
}

.crop-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    max-height: 300px;      /* now this scrolls */
    overflow-y: auto;
    padding: 10px;
}



.crop-options::-webkit-scrollbar {
    width: 6px;
}

.crop-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.crop-options::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.crop-options::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.relative {
    position: relative;
}
.scroll-opener {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    background: rgba(52, 152, 219, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    
    pointer-events: none;
}

.scroll-opener.visible {
    opacity: 1;
    pointer-events: all;
}

.scroll-opener:hover {
    background: rgba(41, 128, 185, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.scroll-opener.scrolled-up {
    transform: rotate(180deg);
}

.scroll-opener.scrolled-up:hover {
    transform: rotate(180deg) scale(1.1);
}

.crop-option-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.crop-option-btn:hover {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

.crop-option-btn.selected {
    border-color: #3498db;
    background: #ecf0f1;
}

.crop-image {
    width: 32px;
    height: 32px;
    border-radius: 5px;
}

.mutations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.mutations-grid-env {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.mutation-option {
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    background: white;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
    font-weight: 500;
}

.mutation-option:hover {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

.mutation-option.selected {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

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

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

.input-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.input-group input {
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.friend-boost-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.friend-boost-container input[type="range"] {
    flex: 1;
    padding: 0px;
    margin: 12px;
}

.friend-boost-container span {
    background: #3498db;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    min-width: 50px;
    text-align: center;
}

.button-row {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.reset-btn, .calculate-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-btn {
    background: #e74c3c;
    color: white;
}

.reset-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.calculate-btn {
    background: #27ae60;
    color: white;
}

.calculate-btn:hover {
    background: #219a52;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.result-section {
    text-align: center;
    display: none;
}

.total-value {
    font-size: 2.5em;
    font-weight: bold;
    color: #27ae60;
    margin: 20px 0;
}

.approx {
    font-size: 0.6em;
    color: #7f8c8d;
    display: block;
    margin-top: 10px;
}

.multiplier-display {
    background: #ecf0f1;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    font-weight: 600;
    color: #2c3e50;
}

.valuation-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    color: #2c3e50;
    line-height: 1.6;
}

#crop-search {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 16px;
    margin-bottom: 15px;
}

#crop-search:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

@media (max-width: 768px) {
    .mutation-sections {
        flex-direction: column;
    }
    
    .input-row {
        grid-template-columns: 1fr;
    }
    
    .button-row {
        flex-direction: column;
    }
    
    .mutations-grid,
    .mutations-grid-env {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #7f8c8d;
}

.error {
    background: #e74c3c;
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin: 10px 0;
    text-align: center;
}

 
.category-tabs {
  min-height: 60px;
}

.mutation-sections {
  min-height: 200px;
}

.crop-results-container {
  min-height: 300px;
}

.crop-image {
  width: 40px;
  height: 40px;
}


.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
}

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

.skeleton-tab {
  height: 36px;
  width: 80px;
  margin: 0 5px;
}

.skeleton-button {
  height: 40px;
  margin-bottom: 10px;
}


.crop-image {
  width: 40px;
  height: 40px;
  object-fit: cover; /* keeps aspect ratio, crops overflow */
}