/* Species List Page Styles */

.species-header {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
}

.page-title {
    color: #11998e;
    font-size: 28px;
    font-weight: 600;
}

.species-count {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
    padding: 15px 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(17, 153, 142, 0.2);
}

.species-count strong {
    display: block;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.species-count span {
    font-size: 14px;
    opacity: 0.9;
}

/* Filter Card */
.filter-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.filter-header {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.filter-header h5 {
    color: #fff;
}

.filter-header .btn {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.filter-header .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

.filter-body {
    padding: 20px;
}

.form-label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 8px;
}

.form-select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: #11998e;
    box-shadow: 0 0 0 0.2rem rgba(17, 153, 142, 0.15);
}

/* Species Card */
.species-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.species-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.species-image {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: #f5f5f5;
}

.species-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.species-card:hover .species-image img {
    transform: scale(1.1);
}

/* Conservation status badges in card content */
.species-conservation {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.species-conservation .badge {
    font-weight: 600;
    padding: 3px 8px;
    font-size: 9px !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Old badge styles - keep for backward compatibility if needed */
.species-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    left: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 20px);
}

.species-badge:hover {
    white-space: normal;
    overflow: visible;
    z-index: 10;
}

.species-badge.danger {
    background: #dc3545;
    color: #fff;
}

.species-badge.warning {
    background: #ffc107;
    color: #333;
}

.species-badge.info {
    background: #17a2b8;
    color: #fff;
}

.species-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.species-price {
    font-size: 16px;
    color: #11B76B;
}

.species-cart-btn {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.species-cart-btn:hover {
    background-color: #11998e;
    border-color: #11998e;
    color: white;
    transform: scale(1.1);
}

.species-cart-btn i {
    font-size: 16px;
}

.species-name {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.species-scientific {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

.species-family {
    font-size: 12px;
    color: #11998e;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.species-family i {
    color: #11998e;
}

/* Pagination */
#pagination-wrapper {
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* .pagination .page-link {
    color: #11998e;
    border-color: #dee2e6;
    transition: all 0.3s ease;
    margin: 0 3px;
    border-radius: 8px;
} */

.pagination .page-link:hover {
    background-color: #11998e;
    border-color: #11998e;
    color: #fff;
}

.pagination .page-item.active .page-link {
    background-color: #11998e;
    border-color: #11998e;
}

/* Action Buttons */
.btn-plant,
.btn-animal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-plant {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
}

.btn-plant:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(17, 153, 142, 0.3);
    color: #fff;
}

.btn-animal {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    color: #fff;
}

.btn-animal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(245, 87, 108, 0.3);
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 22px;
    }
    
    .species-count {
        margin-top: 15px;
        padding: 12px 20px;
    }
    
    .species-count strong {
        font-size: 24px;
    }
    
    .filter-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .filter-header .btn {
        width: 100%;
    }
    
    .species-name {
        font-size: 13px;
        min-height: auto;
    }
    
    .species-scientific {
        font-size: 13px;
        min-height: auto;
    }
    
    #pagination-wrapper {
        flex-direction: column;
        align-items: center !important;
        text-align: center;
    }
    
    #pagination-wrapper .text-muted {
        margin-bottom: 15px;
    }
    
    .pagination {
        font-size: 14px;
    }
    
    .pagination .page-link {
        padding: 6px 10px;
        margin: 0 2px;
    }
}

@media (max-width: 576px) {
    .species-card {
        margin-bottom: 20px;
    }
}

