/* Custom styles for SweetAlert2 content */
.swal2-user-container {
    font-family: 'Inter', sans-serif;
}
.swal2-html-user-container {
    max-height: 400px; /* Limit height of user list container */
    overflow-y: auto; /* Enable scrolling for long lists */
    padding-right: 10px; /* Space for scrollbar */
}
.user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    margin-bottom: 8px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.search-dark .user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    margin-bottom: 8px;
    background-color: black;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.user-info {
    display: flex;
    align-items: center;
}
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 2px solid #a78bfa; /* Purple border */
}
.remove-btn {
    background-color: #ef4444; /* Red */
    color: white;
    border: none;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    font-size: 0.875rem;
}
.search-dark .remove-btn {
    background-color: #ef4444; /* Red */
    color: black;
    border: none;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    font-size: 0.875rem;
}
.remove-btn:hover {
    background-color: #dc2626; /* Darker red */
}

.add-user-btn {
    background-color: #6366f1; /* Indigo */
    color: white;
    border: none;
    border-radius: 12px;
    padding: 10px 10px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    margin-top: 16px;
}
.search-dark .add-user-btn {
    background-color: #6366f1; /* Indigo */
    color: black;
    border: none;
    border-radius: 12px;
    padding: 10px 10px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    margin-top: 16px;
}
.add-user-btn:hover {
    background-color: #4f46e5; /* Darker indigo */
}

.search-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 1rem;
}
.search-dark .search-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #2c2c2c;
    border-radius: 8px;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 1rem;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 5px;
    background-color: #f9fafb;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}
.search-dark .search-result-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 5px;
    background-color: #2c2c2c;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}
.search-result-item:hover {
    background-color: #eff6ff;
}
.search-dark .search-result-item:hover {
    background-color: #3a3a3a;
}