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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

header h1 {
    font-size: 2.5rem;
    color: #4a5568;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1rem;
    color: #718096;
}

main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.calculator-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.crop-selection {
    margin-bottom: 30px;
}

.crop-selection label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #4a5568;
}

.search-container {
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.search-container input:focus {
    outline: none;
    border-color: #667eea;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.dropdown-item {
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: #f7fafc;
}

.mutations-section {
    margin-bottom: 30px;
}

.mutation-group {
    margin-bottom: 25px;
}

.mutation-group h3 {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

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

.mutation-options label {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #f7fafc;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.mutation-options label:hover {
    background: #edf2f7;
    transform: translateY(-1px);
}

.mutation-options input {
    margin-right: 8px;
}

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

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #4a5568;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 16px;
}

.buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.buttons button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

#max-mutation {
    background: #48bb78;
    color: white;
}

#max-mutation:hover {
    background: #38a169;
    transform: translateY(-2px);
}

#reset {
    background: #ed8936;
    color: white;
}

#reset:hover {
    background: #dd6b20;
    transform: translateY(-2px);
}

.result-section {
    border-top: 2px solid #e2e8f0;
    padding-top: 30px;
}

.total-value {
    text-align: center;
    margin-bottom: 30px;
}

.total-value h2 {
    color: #4a5568;
    margin-bottom: 15px;
}

.value-display {
    font-size: 3rem;
    font-weight: bold;
    color: #48bb78;
    margin-bottom: 10px;
}

.currency {
    font-size: 2rem;
}

.multiplier {
    color: #718096;
    font-size: 1.1rem;
}

.valuation-details {
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.valuation-details h3 {
    color: #4a5568;
    margin-bottom: 10px;
}

.wfl-section {
    text-align: center;
}

.wfl-section h3 {
    color: #4a5568;
    margin-bottom: 15px;
}

.wfl-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.wfl-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.wfl-btn.win {
    background: #48bb78;
    color: white;
}

.wfl-btn.fair {
    background: #ed8936;
    color: white;
}

.wfl-btn.lose {
    background: #f56565;
    color: white;
}

.wfl-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.info-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.info-card h3 {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.info-card p {
    color: #718096;
    line-height: 1.6;
}

#value-to-weight {
    font-size: 1.5rem;
    font-weight: bold;
    color: #48bb78;
}

@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .mutation-options {
        grid-template-columns: 1fr;
    }
    
    .input-section {
        grid-template-columns: 1fr;
    }
    
    .buttons {
        flex-direction: column;
    }
    
    .wfl-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .value-display {
        font-size: 2rem;
    }
}