/* Custom styles for the create chat modal */

/* Search Section */
.create-chat-search-section {
    padding: 16px 20px;
    border-bottom: 1px solid var(--background-modifier-accent);
}

.create-chat-search-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

.create-chat-search-input {
    width: 100%;
    padding: 10px;
    background-color: var(--background-secondary);
    border: 1px solid var(--background-modifier-accent);
    border-radius: 4px;
    color: var(--text-normal);
    font-family: var(--font-main);
    font-size: 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.create-chat-search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--highlight-color);
}

.create-chat-search-input::placeholder {
    color: var(--text-muted);
}

/* Friends List */
.create-chat-friends-list {
    flex-grow: 1;
    overflow-y: auto;
    max-height: 300px;
    padding: 8px;
    margin: 0;
    list-style: none;
}

.create-chat-friends-list::-webkit-scrollbar {
    width: 6px;
}

.create-chat-friends-list::-webkit-scrollbar-track {
    background: transparent;
}

.create-chat-friends-list::-webkit-scrollbar-thumb {
    background: var(--background-accent);
    border-radius: 3px;
}

.create-chat-friends-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.create-chat-friend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.create-chat-friend-item:hover {
    background: var(--background-modifier-hover);
}

.create-chat-friend-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.create-chat-friend-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.create-chat-friend-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.create-chat-friend-username {
    color: var(--text-normal);
    font-size: 16px;
    font-weight: 500;
}

/* Custom Checkbox */
.create-chat-friend-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-left: 12px;
}

.create-chat-friend-select {
    display: none;
}

.create-chat-friend-checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-muted);
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.create-chat-friend-select:checked+.create-chat-friend-checkmark {
    background: var(--brand);
    border-color: var(--brand-solid);
}

.create-chat-friend-select:checked+.create-chat-friend-checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid var(--header-primary);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}