.search-bar-container {
    text-align: center;
    width: 100%;
    margin: 0 0 20px 0;
}

.search-bar {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px !important;  
    width: 100%;
    margin-bottom: 200px !important;
}

.card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-image {
    width: 100%;
    height: 300px !important;
    object-fit: cover;
}

.card-content {
    padding: 15px;
}

.card-title-idade{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.card-title {
    font-weight: 600;
    color: #567393;
    margin-bottom: 5px;
}

.card-idade {
    font-weight: 600;
    color: #d89537;
    margin-bottom: 5px;
}

.card-info {
    font-size: 14px;
    color: #666;
}

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;

}

.modal-content {
    background-color: #f9f1e4;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #567393;
    margin-bottom: 15px;
}

.modal-photo-animal{
    width: 200px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    overflow: hidden; 
    cursor: pointer;
    display: block; 
    margin: 0 auto; 
    margin-bottom: 20px !important;
}

.modal-info {
    margin-bottom: 10px;
}

.modal-label {
    font-weight: 600;
    color: #827f5f;
}

@media screen and (max-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px; 
    }

    .card-image {
        height: 200px;
    }

    .div-botoes-salvar-cancelar{
        flex-direction: column !important;
        width: 100% !important;
        margin-top: 20px !important;
    }

    .btn-cancelar-edit-modal{
        width: 100% !important;
        margin-bottom: 10px !important;
    }
    
    .btn-salvar-edit-modal{
        width: 100% !important;
    }
}

#editModal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

#editModal .modal-content {
    background-color: #f9f1e4;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
}

.close-edit {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-edit:hover,
.close-edit:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

#editButton{
    width: 100%;
    height: 40px;
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    border-radius: 5px;
    background-color: #567393;
    color: #f9f1e4;
    border: 2px solid #f9f1e4;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    font-size: 15px;
}

#editForm{
    width: 100%;
}

.div-input-edit-form{
    display: flex;
    justify-content: start;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
}

/* Estilo dos inputs, selects e textareas */
.input-edit-form, 
.input-edit-form[type="text"], 
.input-edit-form[type="date"], 
.input-edit-form select, 
.input-edit-form textarea {
    width: 100%;
    margin-left: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
    color: #333;
}

/* Alterar cor do input em foco */
.input-edit-form:focus {
    border-color: #da9d3a;
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 5px rgba(218, 157, 58, 0.8);
}

/* Estilo do label */
.label-edit-form {
    font-weight: bold;
    margin-bottom: 5px;
    color: #627e84;
    font-size: 14px;
}

/* Estilo da textarea */
.input-edit-form textarea {
    resize: none;
    max-height: 600px;
}

/* Botão de upload da foto */
#editFotoAnimal + label {
    display: inline-block;
    background-color: #da9d3a;
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#editFotoAnimal + label:hover {
    background-color: #b17c2c;
}

/* Preview da imagem */
#editFotoPreview {
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 10px;
}

.div-botoes-salvar-cancelar{
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.btn-cancelar-edit-modal, .btn-salvar-edit-modal{
    height: 50px;
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    border-radius: 5px;
    color: #f9f1e4;
    border: 2px solid #f9f1e4;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    font-size: 15px;
}

.btn-cancelar-edit-modal{
    width: 20%;
    background-color: #e25c5c;
}

.btn-salvar-edit-modal{
    width: 60%;
    background-color: #50aa4d;
}