/* ==========================================================================
   Dashboard Styles
   ========================================================================== */

/* Animal Score Cards (Best/Worst Performing) */
.animal-score-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: box-shadow 0.2s ease;
}

.animal-score-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.animal-score-card .progress {
    background-color: #e9ecef;
    border-radius: 10px;
}

.animal-score-card .card-body {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}




/* Herd List Table */
.herd-list-table {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.herd-list-table thead {
    background-color: #f8f9fa;
}

.herd-list-table thead th {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--color-primary);
    border-bottom: 2px solid #dee2e6;
    padding: 0.75rem 1rem;
}

.herd-list-table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

.herd-list-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Sex badges */
.herd-list-table .badge.bg-primary {
    background-color: #0d6efd !important;
}

.herd-list-table .badge.bg-danger {
    background-color: #dc3545 !important;
}

/* Action buttons in table */
.herd-list-table .btn-sm {
    padding: 0.25rem 0.5rem;
}

/* Herd List Section */
.herd-list-section {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
}

/* Compare button counter */
.compare-counter {
    font-size: 0.75rem;
}

/* Pagination */
.pagination .page-link {
    min-width: 32px;
    text-align: center;
    border-radius: 4px;
    margin: 0 2px;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .herd-list-section {
        padding: 1rem;
    }

    .herd-list-table thead th,
    .herd-list-table tbody td {
        padding: 0.5rem;
        font-size: 0.875rem;
    }

    /* Hide less important columns on mobile */
    .herd-list-table th:nth-child(4),
    .herd-list-table td:nth-child(4),
    .herd-list-table th:nth-child(5),
    .herd-list-table td:nth-child(5) {
        display: none;
    }
}

/* Score card responsive */
@media (max-width: 576px) {
    .animal-score-card .h3 {
        font-size: 1.5rem;
    }
}
