/**
 * 聊天窗口面板 - 发起群聊弹窗样式
 * 包含：弹窗容器、对话框、表单、好友列表、复选框
 * 独立样式（仅本面板使用，不与其他面板通用）
 * 字体：Microsoft YaHei（符合项目字体规范）
 * 遵循《通用弹窗样式规范说明.md》
 */

/* ========== 发起群聊弹窗（独立样式，仅本面板） ========== */
.chat-window-panel .chat-window-create-group-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", Arial, sans-serif;
}
.chat-window-panel .chat-window-create-group-modal[hidden] {
    display: none;
}
.chat-window-panel .chat-window-create-group-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.chat-window-panel .chat-window-create-group-dialog {
    position: relative;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    background: var(--bg-secondary, #1a1a1a);
    border: 1px solid var(--border-primary, #2d2d2d);
    border-radius: var(--radius-lg, 12px);
    box-shadow: var(--shadow-xl, 0 20px 60px rgba(0, 0, 0, 0.5));
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.chat-window-panel .chat-window-create-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-primary, #2d2d2d);
    flex-shrink: 0;
}
.chat-window-panel .chat-window-create-group-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary, #ffffff);
    margin: 0;
    flex: 1;
}
.chat-window-panel .chat-window-create-group-close-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-secondary, #b3b3b3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.chat-window-panel .chat-window-create-group-close-btn:hover {
    background: var(--bg-hover, #2d2d2d);
    color: var(--text-primary, #ffffff);
    transform: rotate(90deg);
}
.chat-window-panel .chat-window-create-group-close-btn svg {
    width: 20px;
    height: 20px;
}
.chat-window-panel .chat-window-create-group-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}
.chat-window-panel .chat-window-create-group-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}
.chat-window-panel .chat-window-create-group-form-group:last-child {
    margin-bottom: 0;
}
.chat-window-panel .chat-window-create-group-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary, #ffffff);
}
.chat-window-panel .chat-window-create-group-input {
    padding: 12px 16px;
    background: var(--bg-card, #1e1e1e);
    border: 1px solid var(--border-primary, #2d2d2d);
    border-radius: var(--radius-md, 8px);
    color: var(--text-primary, #ffffff);
    font-family: inherit;
    font-size: 14px;
    transition: all 0.2s ease;
}
.chat-window-panel .chat-window-create-group-input:focus {
    outline: none;
    border-color: var(--border-accent, #667eea);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.chat-window-panel .chat-window-create-group-input::placeholder {
    color: var(--text-muted, #808080);
}
.chat-window-panel .chat-window-create-group-search-wrapper {
    margin-bottom: 12px;
}
.chat-window-panel .chat-window-create-group-search-input {
    padding: 12px 16px;
    background: var(--bg-card, #1e1e1e);
    border: 1px solid var(--border-primary, #2d2d2d);
    border-radius: var(--radius-md, 8px);
    color: var(--text-primary, #ffffff);
    font-family: inherit;
    font-size: 14px;
    width: 100%;
    transition: all 0.2s ease;
}
.chat-window-panel .chat-window-create-group-search-input:focus {
    outline: none;
    border-color: var(--border-accent, #667eea);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.chat-window-panel .chat-window-create-group-search-input::placeholder {
    color: var(--text-muted, #808080);
}
.chat-window-panel .chat-window-create-group-friends-list {
    max-height: 400px;
    overflow-y: auto;
    background: var(--bg-card, #1e1e1e);
    border: 1px solid var(--border-primary, #2d2d2d);
    border-radius: var(--radius-md, 8px);
    padding: 8px;
}
.chat-window-panel .chat-window-create-group-friend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm, 6px);
    margin-bottom: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.chat-window-panel .chat-window-create-group-friend-item:hover {
    background: var(--bg-hover, #2d2d2d);
}
.chat-window-panel .chat-window-create-group-friend-item:last-child {
    margin-bottom: 0;
}
.chat-window-panel .chat-window-create-group-friend-checkbox {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--text-accent, #667eea);
}
.chat-window-panel .chat-window-create-group-friend-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm, 6px);
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary, #2a2a2a);
}
.chat-window-panel .chat-window-create-group-friend-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.chat-window-panel .chat-window-create-group-friend-name {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary, #ffffff);
    font-weight: normal;
}
.chat-window-panel .chat-window-create-group-friends-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted, #808080);
    font-size: 13px;
}
.chat-window-panel .chat-window-create-group-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-primary, #2d2d2d);
    flex-shrink: 0;
}
.chat-window-panel .chat-window-create-group-cancel-btn {
    min-height: 38px;
    min-width: 100px;
    padding: 10px 20px;
    background: var(--bg-tertiary, #2a2a2a);
    color: var(--text-primary, #ffffff);
    border: 1px solid var(--border-primary, #2d2d2d);
    border-radius: var(--radius-md, 8px);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.chat-window-panel .chat-window-create-group-cancel-btn:hover {
    background: var(--bg-hover, #2d2d2d);
    border-color: var(--border-accent, #667eea);
}
.chat-window-panel .chat-window-create-group-submit-btn {
    min-height: 38px;
    min-width: 120px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--text-accent, #667eea) 0%, rgba(90, 111, 216, 0.8) 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md, 8px);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md, 0 4px 12px rgba(102, 126, 234, 0.3));
}
.chat-window-panel .chat-window-create-group-submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg, 0 6px 16px rgba(102, 126, 234, 0.4));
}
.chat-window-panel .chat-window-create-group-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 滚动条样式 */
.chat-window-panel .chat-window-create-group-friends-list::-webkit-scrollbar {
    width: 6px;
}
.chat-window-panel .chat-window-create-group-friends-list::-webkit-scrollbar-track {
    background: transparent;
}
.chat-window-panel .chat-window-create-group-friends-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
}
.chat-window-panel .chat-window-create-group-friends-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

