/* Potting Mix Genius Plugin Styles */

.pmg-container {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px 25px;
    max-width: 600px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.pmg-container h2 {
    margin-top: 0;
    color: #2c3e50;
    text-align: center;
}

.pmg-container p {
    color: #555;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 20px;
}

#pmg-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#pmg-plant-name {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box; /* Important for padding */
    transition: border-color 0.3s, box-shadow 0.3s;
}

#pmg-plant-name:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

#pmg-form button {
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #27ae60;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

#pmg-form button:hover {
    background-color: #2ecc71;
    transform: translateY(-2px);
}

#pmg-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    color: #555;
}

.pmg-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #27ae60;
    margin-bottom: 15px;
    animation: spin 1s ease infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#pmg-result {
    margin-top: 25px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 6px;
    line-height: 1.7;
    color: #34495e;
    /* REMOVED 'white-space: pre-wrap;' to allow HTML to render correctly */
}

#pmg-result h3 {
    margin-top: 0;
    color: #2c3e50;
}

#pmg-result ul {
    padding-left: 20px;
}

#pmg-result li {
    margin-bottom: 8px;
}
