body {
    font-family: Arial, sans-serif !important;
    margin: 0;
    justify-content: center;
    align-items: center;

}

.container {
    border-radius: 8px;
    text-align: center;
}

h4 {
    text-transform: uppercase;
    color: #3d8cd6;
    font-weight: bolder;
    font-size: 22px;
}

#tipo-consulta {
    width: 50%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 10px !important;
    font-size: 14px;
    background-color: white;
    color: #0a5cb8; 
}

#tipo-consulta option {
    color: #0a5cb8;
}

.rounded-input {
    border-radius: 10px !important;
}


p {
    text-align: center;
    color: #626069;
    font-size: 18px;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    flex-wrap: wrap; 
}

.form-inline {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 15px;
}


.small-width {
    width: 100%;
    max-width: 400px;
    text-align: center;
    margin: 0 auto; }

.small-width label {
    display: block;
    text-align: center;
    margin-bottom: 15px; 
    width: 100%;
    color: #0a5cb8;
    font-weight: bold;
}

.gray-background label {
    display: block;
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
    color: #0a5cb8;
    font-weight: bold;
}


.small-width select {
    width: 100%;
    margin: 0 auto;
    display: block;
}

.form-group {
    width: 100%;
}

.gray-background {
    background-color: #f0f0f0; 
    padding: 40px; 
    border-radius: 40px; 
    width: 100%; 
    box-sizing: border-box; 
    position: relative; 
}

#clearForm {
    position: absolute; 
    top: 10px; 
    right: 10px; 
    background-color: transparent; 
    border: none; 
    cursor: pointer; 
}


.gray-background input {
    width: 100%; 
    border: none; 
    padding: 10px; 
    border-radius: 4px; 
    box-sizing: border-box; 
}


label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #0a5cb8;
}

input, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.form-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}


button {
    padding: 10px;
    color: white;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

button#clearForm {
    background-color: #0a5bb800;
    color: #0a5cb8;
    width: 50px;
    height: 50px;
    font-size: 18px;
}

button#submitFrom {
    background-color: #0a5cb8;
    width: 80px; 
    height: 80px; 
    font-size: 50px; 
}

.search-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-button-container label {
    margin-top: 5px;
    font-size: 16px;
    font-weight: bold;
    color: #0a5cb8;  
    text-align: center; 
}


.error-message {
    color: red;
}

.success-message a {
    color: green;
    text-decoration: underline;
}

.plant-container {
    margin: 1em 0;
    padding: 0.5em;
    border-radius: 10px;
    border: 1px solid #0a5cb8;
}

.plant-title {
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 0.5em;
    color: #0a5cb8;

}

.plant-dropdown {
    margin-left: 1em;
    display: flex;
    flex-direction: column;
}

.plant-dropdown a {
    margin: 0.5em 0;
    padding: 8px;
    text-decoration: none;
    color: #007bff;
    background-color: #f1f1f1;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.plant-dropdown a:hover {
    background-color: #e1e1e1;
    color: #0056b3;
}

#plantDetails {
    display: flex;
    flex-direction: column;
}

#plantDetails .plant-dropdown {
    margin-bottom: 1em;
}

.autocomplete-container {
    position: relative;
    width: 100%;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 4px;
}

.autocomplete-item {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.autocomplete-item:hover {
    background-color: #f5f5f5;
}

.autocomplete-item.selected {
    background-color: #e3f2fd;
}

.autocomplete-loading {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 4px;
}