    @import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css");

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: scale(0.9);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    .badge {
        animation: fadeIn 0.3s ease;
    }

    .group-search-container {
        position: relative;
    }

    .group-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: 300px;
        overflow-y: auto;
        background: white;
        border: 1px solid #ddd;
        border-radius: 4px;
        z-index: 1000;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        display: none;
    }

    .group-dropdown.show {
        display: block;
    }

    .group-item {
        padding: 12px 15px;
        cursor: pointer;
        border-bottom: 1px solid #f0f0f0;
        transition: background-color 0.2s;
    }

    .group-item:hover {
        background-color: #f8f9fa;
    }

    .group-item.selected {
        background-color: #e7f5ff;
        color: #0066cc;
    }

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

    .no-results {
        padding: 20px;
        text-align: center;
        color: #999;
    }

    .selected-groups-container {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 15px;
    }

    .group-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 100%);
        color: white;
        padding: 10px 15px;
        border-radius: 20px;
        font-size: 0.9rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .group-badge:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
    }

    .group-badge .remove-btn {
        background: rgba(255, 255, 255, 0.3);
        border: none;
        color: white;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 14px;
        transition: background 0.2s;
    }

    .group-badge .remove-btn:hover {
        background: rgba(255, 255, 255, 0.5);
    }

    .empty-groups-message {
        padding: 20px;
        text-align: center;
        color: #999;
        border: 2px dashed #ddd;
        border-radius: 8px;
        margin-top: 15px;
    }

    .save-to-group-section {
        background: #f8f9fa;
        border-radius: 8px;
        padding: 20px;
        margin-top: 20px;
        border: 2px dashed #dee2e6;
    }

    .save-to-group-section:hover {
        border-color: #667eea;
        background: #f0f4ff;
    }

    #loadingOverlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 9999;
        display: flex;
        justify-content: center;
        align-items: center;
        backdrop-filter: blur(5px);
    }

    .spinner-container {
        background: white;
        padding: 40px 60px;
        border-radius: 15px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        text-align: center;
        animation: slideIn 0.3s ease;
        transition: all 0.4s ease;
        min-width: 400px;
    }

    @keyframes slideIn {
        from {
            transform: scale(0.8);
            opacity: 0;
        }
        to {
            transform: scale(1);
            opacity: 1;
        }
    }

    .spinner-container .spinner-border {
        width: 4rem;
        height: 4rem;
        border-width: 0.4rem;
    }

    .spinner-content h4 {
        color: #333;
        font-weight: 600;
        transition: all 0.4s ease;
    }

    .spinner-content p {
        font-size: 0.95rem;
        margin-bottom: 0;
        transition: all 0.4s ease;
    }
