/* Styles for the program selector modal */
.program-card {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.program-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.15);
    transform: translateY(-1px);
}

.program-card.selected-item {
    background-color: #e7f3ff;
    border-color: #0d6efd;
    border-width: 2px;
}

.program-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.program-card.disabled:hover {
    border-color: #dee2e6;
    box-shadow: none;
    transform: none;
}

.program-icon,
.program-icon-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    flex-shrink: 0;
}

.program-icon {
    object-fit: cover;
    background-color: #f8f9fa;
}

.program-icon-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.program-info {
    flex-grow: 1;
    min-width: 0;
}

.program-name {
    font-weight: 500;
    margin-bottom: 2px;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.program-category {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
}

.category-group-header {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    margin: 15px 0 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid #dee2e6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-group-header:first-child {
    margin-top: 0;
}

#programSelectorModal .modal-dialog {
    max-width: 1200px;
}

.program-list::-webkit-scrollbar {
    width: 8px;
}

.program-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.program-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.program-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

@media (max-width: 768px) {
    #programSelectorModal .modal-body .col-md-2 {
        flex-direction: row !important;
        margin: 15px 0;
    }

    #programSelectorModal .modal-body .col-md-2 button {
        width: auto !important;
        flex: 1;
        margin: 0 5px !important;
    }

    #programSelectorModal .modal-body .col-md-2 button i {
        transform: rotate(90deg);
    }
}
