/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 主容器 */
.admin-container {
    width: 100%;
    max-width: 1400px;
    height: 90vh;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 登录界面 */
.login-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
    color: #fff;
}

.login-header i {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.login-header h2 {
    font-size: 28px;
    font-weight: 300;
}

.input-group {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: none;
    border-radius: 25px;
    background: rgba(255,255,255,0.9);
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.login-box button {
    width: 100%;
    max-width: 320px;
    padding: 15px;
    border: none;
    border-radius: 25px;
    background: #fff;
    color: #667eea;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.error-message {
    color: #ff6b6b;
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
}

/* 主界面 */
.main-box {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 顶部导航 */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 20px;
    font-weight: 600;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logout-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logout-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* 主要内容区域 */
.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* 会话面板 */
.session-panel {
    width: 300px;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}

.panel-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.panel-header h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.session-count {
    background: #667eea;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.session-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.session-item {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.session-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.session-item.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

/* 聊天面板 */
.chat-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.chat-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.customer-info {
    font-weight: 600;
    color: #333;
}

.chat-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #c82333;
}

/* 聊天消息区域 */
.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
}

.message {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.message.user {
    align-items: flex-start;
}

.message.admin {
    align-items: flex-end;
}

.message-content {
    background: #e3f2fd;
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 70%;
    word-break: break-all;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.message.user .message-content {
    background: #e8f5e8;
}

.message img {
    max-width: 200px;
    border-radius: 12px;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 聊天输入区域 */
.chat-input-form {
    padding: 20px;
    border-top: 1px solid #e9ecef;
    background: #fff;
}

.input-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

#admin-message-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s ease;
}

#admin-message-input:focus {
    outline: none;
    border-color: #667eea;
}

.file-btn, .send-btn {
    background: #667eea;
    color: #fff;
    border: none;
    padding: 12px 16px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.file-btn:hover, .send-btn:hover {
    background: #5a6fd8;
    transform: scale(1.05);
}

.file-row {
    margin-top: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 12px;
    color: #666;
}

/* 欢迎界面 */
.welcome-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.welcome-content {
    text-align: center;
    color: #666;
}

.welcome-content i {
    font-size: 64px;
    color: #667eea;
    margin-bottom: 20px;
}

.welcome-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.welcome-content p {
    font-size: 16px;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .admin-container {
        height: 100vh;
        border-radius: 0;
        max-width: 100%;
    }
    
    .main-content {
        flex-direction: column;
        height: calc(100vh - 60px); /* 减去顶部导航的高度 */
    }
    
    .session-panel {
        width: 100%;
        height: 100%;
        display: block;
    }
    
    .chat-panel {
        width: 100%;
        height: 100%;
        display: none; /* 默认隐藏聊天面板 */
    }
    
    /* 当聊天面板显示时，隐藏会话面板 */
    .chat-panel.show {
        display: block;
    }
    
    .chat-panel.show + .session-panel,
    .chat-panel.show ~ .session-panel {
        display: none;
    }
    
    .top-nav {
        padding: 10px 15px;
        flex-wrap: wrap;
    }
    
    .nav-left span {
        display: none;
    }
    
    .nav-right {
        gap: 10px;
    }
    
    .logout-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .panel-header {
        padding: 10px 15px;
    }
    
    .panel-header h3 {
        font-size: 16px;
    }
    
    .session-item {
        padding: 12px;
        margin-bottom: 8px;
    }
    
    .chat-header {
        padding: 10px 15px;
    }
    
    .customer-info {
        padding: 10px 15px;
        font-size: 12px;
    }
    
    .chat-actions {
        gap: 8px;
    }
    
    .action-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .chat-messages {
        padding: 10px;
    }
    
    .message {
        margin-bottom: 8px;
    }
    
    .message-content {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .chat-input-form {
        padding: 10px;
    }
    
    .input-row {
        gap: 8px;
    }
    
    #admin-message-input {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .file-btn, .send-btn {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .search-container {
        padding: 10px 15px;
    }
    
    #session-search {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .modal-content {
        width: 95%;
        max-width: 400px;
        margin: 20px auto;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions button {
        width: 100%;
    }
    
    .groups-panel {
        width: 100%;
        height: 40vh;
    }
    
    .group-item {
        padding: 12px;
    }
    
    .welcome-panel {
        padding: 20px;
    }
    
    .welcome-content h2 {
        font-size: 20px;
    }
    
    .welcome-content p {
        font-size: 14px;
    }
}

/* 手机竖屏适配 */
@media (max-width: 480px) {
    .admin-container {
        height: 100vh;
        width: 100vw;
    }
    
    .main-content {
        height: calc(100vh - 50px); /* 减去顶部导航的高度 */
    }
    
    .session-panel {
        height: 100%;
        display: block;
    }
    
    .chat-panel {
        height: 100%;
        display: none;
    }
    
    /* 当聊天面板显示时，隐藏会话面板 */
    .chat-panel.show {
        display: block;
    }
    
    .chat-panel.show + .session-panel,
    .chat-panel.show ~ .session-panel {
        display: none;
    }
    
    .top-nav {
        padding: 8px 12px;
    }
    
    .nav-right {
        gap: 6px;
    }
    
    .logout-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .panel-header {
        padding: 8px 12px;
    }
    
    .panel-header h3 {
        font-size: 14px;
    }
    
    .session-item {
        padding: 10px;
        margin-bottom: 6px;
        font-size: 12px;
    }
    
    .chat-header {
        padding: 8px 12px;
    }
    
    .customer-info {
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .chat-actions {
        gap: 6px;
    }
    
    .action-btn {
        padding: 5px 8px;
        font-size: 11px;
    }
    
    .chat-messages {
        padding: 8px;
    }
    
    .message {
        margin-bottom: 6px;
    }
    
    .message-content {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .chat-input-form {
        padding: 8px;
    }
    
    .input-row {
        gap: 6px;
    }
    
    #admin-message-input {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .file-btn, .send-btn {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .search-container {
        padding: 8px 12px;
    }
    
    #session-search {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .modal-content {
        width: 98%;
        max-width: 350px;
        margin: 10px auto;
    }
    
    .form-actions {
        gap: 8px;
    }
    
    .groups-panel {
        height: 35vh;
    }
    
    .group-item {
        padding: 10px;
        font-size: 12px;
    }
    
    .welcome-panel {
        padding: 15px;
    }
    
    .welcome-content h2 {
        font-size: 18px;
    }
    
    .welcome-content p {
        font-size: 13px;
    }
    
    /* 隐藏一些非必要的元素 */
    .session-count {
        display: none;
    }
    
    .group-count {
        display: none;
    }
    
    /* 触摸优化 */
    .session-item,
    .action-btn,
    .file-btn,
    .send-btn,
    .logout-btn,
    .group-item {
        min-height: 44px; /* iOS推荐的最小触摸目标 */
        touch-action: manipulation;
    }
    
    /* 防止双击缩放 */
    input, textarea, select {
        font-size: 16px;
    }
    
    /* 优化滚动 */
    .session-list,
    .chat-messages,
    .groups-list {
        -webkit-overflow-scrolling: touch;
    }
} 

.recall-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 10px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.recall-btn:hover {
    opacity: 1;
}

/* 未读标记样式 */
.unread-badge {
    background: #dc3545;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    padding: 2px;
}

/* 会话项样式优化 */
.session-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.session-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.session-item.active {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

/* 最后消息内容样式 */
.session-item .last-message {
    font-style: italic;
    opacity: 0.8;
    margin-top: 5px;
    line-height: 1.3;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    font-size: 11px;
    color: #666;
} 

/* 搜索框样式 */
.search-container {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
}

.search-input-group i {
    position: absolute;
    left: 12px;
    color: #999;
    font-size: 14px;
    z-index: 1;
}

#session-search {
    width: 100%;
    padding: 10px 35px 10px 35px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

#session-search:focus {
    outline: none;
    border-color: #007bff;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.clear-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    display: none;
    transition: all 0.2s ease;
    z-index: 2;
}

.clear-search-btn:hover {
    background: #e9ecef;
    color: #666;
}

.clear-search-btn.show {
    display: block;
}

/* 清除按钮内的图标样式，覆盖继承的样式 */
.clear-search-btn i {
    position: static !important;
    left: auto !important;
    color: inherit !important;
    font-size: 12px !important;
    z-index: inherit !important;
}

/* 搜索按钮样式 */
.search-btn {
    background: #007bff;
    border: none;
    color: white;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.search-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.search-btn:active {
    transform: translateY(0);
}

/* 搜索框右侧间距已在上方设置 */

/* 翻译按钮样式 */
.translate-btn {
    background: #007bff !important;
    color: white !important;
    border: none !important;
    padding: 2px 6px !important;
    border-radius: 3px !important;
    font-size: 10px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
}

.translate-btn:hover {
    background: #0056b3 !important;
}

.translate-btn:active {
    transform: scale(0.95);
}

/* 撤回状态样式 */
.recall-status {
    color: #dc3545 !important;
    font-size: 11px !important;
    font-style: italic;
}

/* 谷歌验证器绑定页面样式 */
.bind-google-box, .verify-google-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bind-header, .verify-header {
    text-align: center;
    margin-bottom: 40px;
    color: #fff;
}

.bind-header i, .verify-header i {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.bind-header h2, .verify-header h2 {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 10px;
}

.bind-header p, .verify-header p {
    font-size: 16px;
    opacity: 0.9;
}

.qr-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.qr-container img {
    border-radius: 10px;
    margin-bottom: 20px;
}

.secret-info {
    color: #fff;
    font-size: 14px;
}

.secret-info p {
    margin: 5px 0;
}

.secret-info strong {
    color: #ffd700;
}

.verify-form {
    width: 100%;
    max-width: 320px;
}

.verify-form .input-group {
    margin-bottom: 20px;
}

.verify-form input {
    text-align: center;
    font-size: 18px;
    letter-spacing: 2px;
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    margin-top: 10px;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

/* 谷歌验证器页面按钮样式 */
.verify-form button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.verify-form button#verify-btn {
    background: #fff;
    color: #667eea;
}

.verify-form button#verify-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.verify-form button.secondary-btn {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.verify-form button.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-1px);
}

/* 输入框样式 */
.verify-form .input-group {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.verify-form .input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

.verify-form .input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: none;
    border-radius: 25px;
    background: rgba(255,255,255,0.9);
    font-size: 18px;
    text-align: center;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.verify-form .input-group input:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

/* 错误消息样式 */
.error-message {
    background: rgba(220, 53, 69, 0.9);
    color: #fff;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
}

/* 移动设备适配 */
@media (max-width: 768px) {
    .bind-google-box, .verify-google-box {
        padding: 20px;
    }
    
    .qr-container {
        padding: 20px;
    }
    
    .verify-form {
        max-width: 100%;
    }
    
    .verify-form button {
        padding: 12px;
        font-size: 14px;
    }
    
    .verify-form .input-group input {
        font-size: 16px;
        padding: 12px 12px 12px 40px;
    }
} 

/* 分组管理样式 */
.groups-panel {
    width: 300px;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}

.create-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.3s ease;
}

.create-btn:hover {
    background: #218838;
}

.groups-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.group-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.group-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.2);
}

.group-item.active {
    border-color: #007bff;
    background: #f8f9ff;
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.group-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.group-count {
    background: #6c757d;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.group-description {
    color: #6c757d;
    font-size: 12px;
    line-height: 1.4;
}

.group-filter {
    padding: 10px 15px;
    border-bottom: 1px solid #e9ecef;
}

.group-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.group-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

/* 模态框样式 */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 0;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    padding: 20px 24px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.cancel-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.submit-btn {
    padding: 10px 20px;
    border: none;
    background: #007bff;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background: #0056b3;
}

.assign-group-content {
    padding: 20px 24px;
}

.assign-group-content p {
    margin-bottom: 20px;
    color: #333;
    font-size: 14px;
}

.group-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.group-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.group-option:hover {
    border-color: #007bff;
    background: #f8f9ff;
}

.group-option.selected {
    border-color: #007bff;
    background: #e7f3ff;
}

.group-option input[type="radio"] {
    margin-right: 12px;
}

.group-option-label {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.group-option-description {
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
}

/* 新增分组选项样式 */
.add-new-group-option {
    border: 2px dashed #007bff !important;
    background: linear-gradient(135deg, #f8f9ff 0%, #e3f2fd 100%) !important;
    transition: all 0.3s ease;
}

.add-new-group-option:hover {
    border-color: #0056b3 !important;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,123,255,0.2);
}

/* 查看详细信息模态框样式 */
.view-details-content {
    padding: 20px 24px;
    max-height: 60vh;
    overflow-y: auto;
    margin-left: 15px;
}

.view-details-content h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.view-details-content div {
    margin-bottom: 8px;
    line-height: 1.5;
}

.view-details-content strong {
    color: #333;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .groups-panel {
        width: 100%;
        height: 100%;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
    }
} 