/* Flower Fertilizer Mix Calculator Styles */

.fertilizer-calculator-container {
    max-width: 700px;
    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: #2d5016;
    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: #6b8e4a;
    box-shadow: 0 0 0 3px rgba(107, 142, 74, 0.1);
}

.show-fertilizer-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #2d5016 0%, #4a7c2a 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-fertilizer-btn:hover {
    background: linear-gradient(135deg, #1e3309 0%, #2d5016 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.3);
}

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

.fertilizer-result {
    min-height: 50px;
}

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

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

.fertilizers-section,
.schedule-section,
.timing-section,
.note-section {
    margin-bottom: 25px;
}

.fertilizers-section h4,
.schedule-section h4,
.timing-section h4,
.note-section h4 {
    color: #4a7c2a;
    font-size: 16px;
    margin: 0 0 15px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fertilizers-list,
.schedule-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fertilizers-list li,
.schedule-list li {
    padding: 12px 15px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid #e6f2e0;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.fertilizers-list li:hover,
.schedule-list li:hover {
    background: #f0f8eb;
}

.fertilizer-name,
.timing-period {
    font-weight: 600;
    color: #2d5016;
    display: block;
    margin-bottom: 4px;
}

.quantity,
.schedule-detail {
    color: #4a7c2a;
    font-weight: 500;
    background: #e6f2e0;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 14px;
    display: inline-block;
}

.timing-section {
    background: #fff4e6;
    border: 1px solid #ffd97d;
    border-radius: 8px;
    padding: 20px;
}

.timing-section h4 {
    color: #b5651d;
}

.timing-info {
    color: #8b5100;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

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

.note-section h4 {
    color: #1976d2;
}

.growing-note {
    color: #0d47a1;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
    font-weight: 500;
}

.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) {
    .fertilizer-calculator-container {
        margin: 10px;
        padding: 15px;
        border-radius: 8px;
    }
    
    .calculator-header h3 {
        font-size: 20px;
    }
    
    .flower-title {
        font-size: 18px;
    }
    
    .fertilizers-list li,
    .schedule-list li {
        padding: 10px 12px;
    }
    
    .fertilizer-name,
    .timing-period {
        font-size: 14px;
    }
    
    .quantity,
    .schedule-detail {
        font-size: 13px;
        padding: 2px 6px;
    }
}

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

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

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

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

/* Enhanced visual hierarchy */
.fertilizers-section {
    border-left: 4px solid #4a7c2a;
    padding-left: 20px;
    background: #fbfefb;
}

.schedule-section {
    border-left: 4px solid #b5651d;
    padding-left: 20px;
    background: #fffcf8;
}

/* Print styles */
@media print {
    .fertilizer-calculator-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .show-fertilizer-btn {
        display: none;
    }
    
    .flower-select {
        border: 1px solid #333;
    }
    
    .result-container {
        page-break-inside: avoid;
    }
}