/* Flowers Soil Mix Calculator Styles */

.flowers-calculator-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.calculator-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.calculator-header h3 {
    color: #2c5530;
    font-size: 24px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.calculator-header p {
    color: #666;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.calculator-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.flower-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background-color: #fff;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 45px;
}

.flower-select:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.show-mix-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #2c5530 0%, #4a7c59 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.show-mix-btn:hover {
    background: linear-gradient(135deg, #1e3a21 0%, #2c5530 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 85, 48, 0.3);
}

.show-mix-btn:active {
    transform: translateY(0);
}

.soil-mix-result {
    min-height: 50px;
}

.result-container {
    background: #f8fffe;
    border: 2px solid #e8f5e8;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
}

.flower-title {
    color: #2c5530;
    font-size: 22px;
    margin: 0 0 20px 0;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid #e8f5e8;
    padding-bottom: 15px;
}

.ingredients-section {
    margin-bottom: 25px;
}

.ingredients-section h4 {
    color: #4a7c59;
    font-size: 16px;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.ingredients-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ingredients-list li {
    padding: 10px 15px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid #e8f5e8;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.ingredients-list li:hover {
    background: #f0f8f0;
}

.ingredient {
    font-weight: 500;
    color: #333;
}

.ratio {
    font-weight: 600;
    color: #2c5530;
    background: #e8f5e8;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.note-section {
    background: #fff9e6;
    border: 1px solid #f4e79d;
    border-radius: 8px;
    padding: 20px;
}

.note-section h4 {
    color: #8b6914;
    font-size: 16px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.growing-note {
    color: #5d4e00;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

.warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .flowers-calculator-container {
        margin: 10px;
        padding: 15px;
        border-radius: 8px;
    }
    
    .calculator-header h3 {
        font-size: 20px;
    }
    
    .flower-title {
        font-size: 18px;
    }
    
    .ingredients-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .ratio {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .flowers-calculator-container {
        margin: 5px;
        padding: 12px;
    }
    
    .calculator-header h3 {
        font-size: 18px;
    }
    
    .flower-select {
        font-size: 14px;
        padding: 10px 14px;
        padding-right: 40px;
    }
    
    .show-mix-btn {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    .result-container {
        padding: 20px;
    }
    
    .flower-title {
        font-size: 16px;
    }
    
    .ingredients-section h4,
    .note-section h4 {
        font-size: 14px;
    }
}

/* Loading state */
.flowers-calculator-container.loading .show-mix-btn {
    background: #ccc;
    cursor: not-allowed;
}

.flowers-calculator-container.loading .show-mix-btn:hover {
    background: #ccc;
    transform: none;
    box-shadow: none;
}

/* Focus states for accessibility */
.flower-select:focus,
.show-mix-btn:focus {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .flowers-calculator-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .show-mix-btn {
        display: none;
    }
    
    .flower-select {
        border: 1px solid #333;
    }
}