.animals-page {
    background-color: #d9f0ff;
    font-family: "Arial", sans-serif;
}

.container {
    max-width: 1200px;
    margin: auto;
}

.animals-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar {
    padding: 0;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.sidebar h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.filter-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filters-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border: 1px solid #2563eb;
    color: #2563eb;
    padding: 0.75rem 1rem;
    border-radius: 2rem;
    margin-bottom: 1rem;
    cursor: pointer;
    display: none;
}

.reset-btn {
    background: white;
    color: #3b82f6;
    text-transform: lowercase;
    font-weight: bold;
    padding: 0.5rem;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    display: block;
    transition: background-color 0.2s;
}

.reset-btn:hover {
    background: #2563eb;
    color: white;
}

.animals-list {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    width: 100%;
}

.animal-card {
    overflow: hidden;
    max-height: fit-content;
    display: flex;
    flex-direction: column;
}

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

.animal-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
.animal-card__image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.3019607843));
    border-radius: 15px;
}
.animal-card-link {
    text-decoration: none;
}

.animal-info {
    margin-top: 1rem;
    padding: 1rem;
    padding-bottom: 2rem;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    border-radius: 1rem;
    text-align: center;
    flex-grow: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}
.animal-info .head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.animal-info .head .animal-age {
    font-size: 30px;
    margin: 0;
}

.animal-info .animal-health-status {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 0.5rem;
}

.animal-card__info .animal-health-status {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 0.5rem;
}

.animal-card-link h4 {
    margin: 0.2rem 0;
    font-size: 30px;
    font-weight: 600;
}

.animal-info .desc {
    font-size: 0.85rem;
    color: #666;
    margin-top: auto;
    text-align: start;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.health-indicator {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #444;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive styles */
@media (min-width: 480px) {
    .animals-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 768px) {
    .animals-page {
        padding: 2rem;
    }

    .animals-layout {
        flex-direction: row;
    }

    .sidebar {
        flex: 0 0 250px;
        align-self: flex-start;
        position: sticky;
        top: 1rem;
    }

    .animals-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .animals-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .animals-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 767px) {
    .filters-toggle {
        display: flex;
    }

    .sidebar-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .sidebar-content.show {
        max-height: 1000px;
    }
}

.filter-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    width: 100%;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    color: #3b82f6;
    text-transform: lowercase;
}
.filter-label:hover {
    background-color: #3b83f648;
    color: white;
}
.filter-label.active {
    background-color: #3b82f6;
    color: white;
}

.filter-label input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    pointer-events: none;
}

.health-icon {
    transform: rotateZ(-20deg);
}

.health-icon.red svg path {
    fill: red;
}
.health-icon.orange svg path {
    fill: orange;
}
.health-icon.green svg path {
    fill: green;
}

.filter-group {
    display: flex;
    flex-direction: row; /* Yonma-yon joylashuv */
    gap: 1rem; /* Tugmalar orasidagi bo'shliq */
    margin-bottom: 1.5rem;
    flex-wrap: wrap; /* Agar ekran kichik bo'lsa satrlarga ajratadi */
}

/* Oddiy tugma uslubi */
.custom-btn {
    position: relative;
    display: inline-block;
    padding: 0.5rem 1rem;
    color: #3b82f6;
    border: 1px solid #3b82f6;
    border-radius: 2rem;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: center;
    font-size: 1rem;
    user-select: none;
    text-transform: lowercase;
}

/* Tanlangan holat */
.custom-btn.active {
    background-color: #3b82f6;
    color: white;
}

/* Yashirin radio tugma */
.custom-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Hover effekti */
.custom-btn:hover {
    background-color: #2564eb5c;
    color: white;
}
.animals-page .page-heading {
    font-size: 10vw;
    color: #0077be25;
    font-weight: bold;
    margin: 0;
}

@media (min-width: 1200px) {
    .animals-page .page-heading {
        font-size: 130px;
    }
}
