/* Smart Match Modal Styles - Consolidated */

/* Enhanced section styling matching the reference modal */
.modal-body h5 {
    border-bottom: 2px solid #e8e8e871;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem !important;
}

.modal-body .mb-4:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 1.5rem;
}

/* Match card base styling */
.match-card { 
    transition: all 0.3s ease; 
    border: 1px solid #e4e6ea;
}

.match-card:hover { 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* Specific match card types */
.match-card:not(.existing-client-match):not(.new-client-match):not(.dismissed-match-card) {
    /* Default styling for single-client modal */
    border-left: 4px solid var(--bs-primary);
}

.match-card:not(.existing-client-match):not(.new-client-match):not(.dismissed-match-card):hover {
    border-color: var(--bs-primary); 
    box-shadow: 0 4px 15px rgba(var(--bs-primary-rgb), 0.15);
}

.existing-client-match { 
    border-left: 4px solid var(--bs-success);
}

.existing-client-match:hover { 
    border-color: var(--bs-success); 
    box-shadow: 0 4px 15px rgba(var(--bs-success-rgb), 0.15);
}

.new-client-match { 
    border-left: 4px solid var(--bs-primary);
}

.new-client-match:hover { 
    border-color: var(--bs-primary); 
    box-shadow: 0 4px 15px rgba(var(--bs-primary-rgb), 0.15);
}

/* Dismissed match card styling */
.dismissed-match-card {
    transition: all 0.3s ease; 
    border: 1px solid #e4e6ea;
    border-left: 4px solid #6c757d;
    background-color: #f8f9fa;
    opacity: 0.8;
}

.dismissed-match-card:hover {
    border-color: #6c757d;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.15);
    transform: translateY(-1px);
    opacity: 1;
}

/* Empty state styling */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state .icon {
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

/* Action buttons */
.btn-group-modern {
    gap: 0.5rem;
    display: flex;
    flex-wrap: wrap;
}

.btn-modern {
    border-radius: 0.5rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.btn-modern:hover {
    transform: translateY(-1px);
}

/* Section transition */
#dismissed-matches-section {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Badge styling */
.badge-sm {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
}

.badge-light-success {
    background: rgba(80, 205, 137, 0.1);
    color: #50cd89;
}

.badge-light-primary {
    background: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
}

/* Dark mode support */
[data-bs-theme="dark"] .modal-body h5 {
    border-bottom-color: rgba(var(--bs-primary-rgb), 0.2);
}

[data-bs-theme="dark"] .modal-body .mb-4:not(:last-child) {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .match-card {
    background: #1e1e2d;
    border-color: #2d2d3a;
}

[data-bs-theme="dark"] .dismissed-match-card {
    background: #1a1a24;
    border-color: #2d2d3a;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn-group-modern {
        flex-direction: column;
    }
}