/* Card Component Styles */

/* Card Enhancements */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Card Header Variants */
.card-header {
    font-weight: 600;
    border-bottom: 2px solid rgba(0, 0, 0, 0.125);
}

.card-header h5,
.card-header h6 {
    margin-bottom: 0;
}

/* Card with Color Variants */
.card.border-primary {
    border-color: #0d6efd !important;
    border-width: 2px;
}

.card.border-success {
    border-color: #198754 !important;
    border-width: 2px;
}

.card.border-warning {
    border-color: #ffc107 !important;
    border-width: 2px;
}

.card.border-danger {
    border-color: #dc3545 !important;
    border-width: 2px;
}

/* Card Images */
.card-img-top {
    border-radius: 0.5rem 0.5rem 0 0;
    height: 200px;
    object-fit: cover;
}

.card img.img-fluid {
    border-radius: 0.25rem;
    max-height: 400px;
    object-fit: contain;
}

/* List Group in Cards */
.list-group-item {
    border-left: none;
    border-right: none;
    transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    padding-left: 1.5rem;
}

.list-group-item:first-child {
    border-top: none;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item a {
    text-decoration: none;
    color: #0d6efd;
    font-weight: 500;
}

.list-group-item a:hover {
    text-decoration: underline;
}

/* Empty State Cards */
.card .text-muted {
    color: #6c757d !important;
}

.card-body p.text-muted:only-child {
    text-align: center;
    padding: 2rem 1rem;
    margin: 0;
}

/* Card Action Buttons in Header */
.card-header .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    margin-left: 0.25rem;
}

/* Clickable Cards (for lists) */
.card.clickable {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card.clickable:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.15);
}

.card.clickable:active {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Badge Styling in Cards */
.card .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Responsive Card Grid */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .card-header .btn-sm {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
}

/* Card Footer */
.card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.125);
}

/* Nested Cards */
.card .card {
    box-shadow: none;
    border: 1px solid #dee2e6;
}
