/* Modern Selection Display */
.selection-display {
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selection-display:hover {
    border-color: #0d6efd;
    background: #e7f1ff;
    transform: translateY(-2px);
}

.selected-item {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.selected-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.selected-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.selected-name {
    font-weight: 600;
    font-size: 16px;
    color: #212529;
}

.selected-meta {
    font-size: 14px;
    color: #6c757d;
}

.btn-change {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #0d6efd;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-change:hover {
    background: #0b5ed7;
    transform: scale(1.1);
}

.empty-selection {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #adb5bd;
    font-size: 16px;
}

.empty-selection i {
    font-size: 24px;
}

/* Search Box */
.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 18px;
    pointer-events: none;
}

.search-box input {
    padding-right: 48px;
    border-radius: 12px;
    border: 2px solid #dee2e6;
    font-size: 15px;
}

.search-box input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

/* Selection List */
.selection-list {
    max-height: 500px;
    overflow-y: auto;
    padding: 4px;
}

.selection-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.selection-card:hover {
    border-color: #0d6efd;
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.selection-card.selected {
    border-color: #0d6efd;
    background: linear-gradient(to right, #e7f1ff, #ffffff);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

.selection-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    flex-shrink: 0;
}

.selection-card.selected .selection-icon {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
}

.selection-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.selection-name {
    font-weight: 600;
    font-size: 17px;
    color: #212529;
    line-height: 1.4;
}

.selection-card.selected .selection-name {
    color: #0d6efd;
    font-weight: 700;
}

.selection-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: #6c757d;
}

.selection-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.selection-meta i {
    font-size: 16px;
}

.selection-check {
    width: 32px;
    height: 32px;
    color: #198754;
    font-size: 32px;
    flex-shrink: 0;
    animation: checkmark 0.3s ease;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Empty State */
.empty-state-small {
    text-align: center;
    padding: 48px 24px;
    color: #adb5bd;
}

.empty-state-small i {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-small p {
    font-size: 16px;
    margin: 0;
}

/* Scrollbar Styling */
.selection-list::-webkit-scrollbar {
    width: 8px;
}

.selection-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.selection-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.selection-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive */
@media (max-width: 768px) {
    .selection-card {
        padding: 12px;
        gap: 12px;
    }

    .selection-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .selection-name {
        font-size: 14px;
    }

    .selection-meta {
        font-size: 12px;
        gap: 12px;
    }

    .selected-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .selected-name {
        font-size: 14px;
    }

    .selected-meta {
        font-size: 12px;
    }
}
