/* Enhanced Bootstrap-compatible styling for list selection */

/* List Grid Container */
#lists-grid {
    margin-top: 1rem;
}

/* Individual List Item */
.list-item {
    margin-bottom: 1rem;
}

/* Enhanced List Card Styling */
.list-card {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.list-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #00838F;
}

.list-card.selected {
    border-color: #00838F;
    background: linear-gradient(135deg, rgba(0, 131, 143, 0.05) 0%, rgba(0, 131, 143, 0.1) 100%);
    box-shadow: 0 4px 15px rgba(0, 131, 143, 0.2);
}

/* Current list styling */
.list-card.current-list {
    border-color: #00838F;
    background: linear-gradient(135deg, rgba(0, 131, 143, 0.08) 0%, rgba(0, 131, 143, 0.12) 100%);
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 131, 143, 0.15);
}

.list-card.current-list::before {
    content: '🔒';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.9rem;
    opacity: 0.8;
    z-index: 2;
}

/* Compact Merge Page Cards */
.listing-form .list-card {
    height: 160px;
    padding: 0.5rem;
}

.listing-form .list-card .card-body {
    padding: 0.5rem;
}

.listing-form .list-card h6 {
    font-size: 0.875rem;
    line-height: 1.2;
}

.listing-form .list-card .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.listing-form .list-card .material-symbols-rounded {
    font-size: 14px;
}

/* Form Check Styling */
.list-card .form-check {
    margin: 0;
    padding: 0;
}

.list-card .form-check-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.list-card .form-check-label {
    width: 100%;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

/* List Card Content */
.list-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.list-name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.list-name strong {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
}

.list-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.list-meta small {
    font-size: 0.875rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.list-meta .material-symbols-rounded {
    font-size: 1rem;
    color: #00838F;
}

/* Badge Styling */
.list-card .badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    background-color: #00838F;
    color: white;
    white-space: nowrap;
}

/* Loading spinner */
.loading-spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #00838F;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .list-card {
        padding: 1rem;
    }
    
    .list-name {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .list-name strong {
        font-size: 0.95rem;
    }
}

/* Selection Count Badge */
#selection-count {
    background-color: #00838F !important;
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
}

/* Pagination Styling */
.list-pagination {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
}

.list-pagination .btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.list-pagination .btn:hover {
    background-color: #00838F;
    color: white;
    border-color: #00838F;
}
