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

}

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

h4 {
    font-size: 30px;
    color: #0a5cb8;
}

#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 {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
/*     padding: 15px; */
    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; /* Add this line */
}

#clearForm {
    position: absolute; /* Position it absolutely */
    top: 10px; /* Adjust this value as needed */
    right: 10px; /* Adjust this value as needed */
    background-color: transparent; /* Optional: make background transparent */
    border: none; /* Optional: remove border */
    cursor: pointer; /* Change cursor to 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;
}

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

/* Default button styling */
button {
    padding: 10px;
/*     background-color: #0a5cb8; */
    color: white;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Clear button (same size) */
button#clearForm {
    background-color: #0a5bb800;
    color: #0a5cb8;
    width: 50px;
    height: 50px;
    font-size: 18px;
}

/* Search button (3x bigger) */
button#submitFrom {
    background-color: #0a5cb8;
    width: 80px; /* 3 times the width */
    height: 80px; /* 3 times the height */
    font-size: 50px; /* Bigger icon */
}

/* Label should be below search button */
.search-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Style for the label */
.search-button-container label {
    margin-top: 5px;
    font-size: 16px;
    font-weight: bold;
    color: #0a5cb8;  /* Apply blue color */
    text-align: center; /* Ensure it is centered */
}




.error-message {
    color: red;
}

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

.plant-container {
    margin: 1em 0;
 /*    border: 1px solid #ccc; */
    padding: 0.5em;
    border-radius: 10px;
    border: 1px solid #0a5cb8; /* Set border color and width */
}

.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;
}