/* 在线聊天工具样式 */

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* 聊天容器 */
.chat-container {
    display: flex;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
    height: 600px;
}

/* 用户列表 */
.user-list {
    width: 300px;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

.user-list-header {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
}

.user-list-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.header-buttons {
    display: flex;
    gap: 0.5rem;
}

/* 标签切换样式 */
.tab-buttons {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f9f9f9;
}

.tab-btn {
    flex: 1;
    padding: 0.8rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    background-color: #f0f0f0;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background-color: white;
}

.tab-content {
    display: none;
}

.tab-content.show {
    display: block;
}

/* 群聊列表样式 */
.group-item {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 0.5rem;
}

.group-item:hover {
    background-color: #f0f0f0;
}

.group-item.active {
    background-color: #e3f2fd;
}

.group-actions {
    margin-left: auto;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}

@keyframes modalSlideIn {
    from {
        transform: translate(-50%, -60%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    border-color: #667eea;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* 用户选择列表样式 */
.user-selection {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0.5rem;
    background-color: #f9f9f9;
}

.user-select-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.user-select-item:hover {
    background-color: #f0f0f0;
}

.user-select-item input[type="checkbox"] {
    margin-right: 0.8rem;
    width: 16px;
    height: 16px;
}

/* 群成员列表样式 */
.current-members {
    margin-bottom: 1.5rem;
}

.current-members h4 {
    margin-bottom: 1rem;
    color: #333;
}

.members-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.member-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #f9f9f9;
    border-radius: 20px;
    font-size: 0.9rem;
}

.user-avatar.small {
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

/* 群聊消息样式 */
.message-sender {
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    opacity: 0.8;
}

.user-list-content {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.user-item {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 0.5rem;
}

.user-item:hover {
    background-color: #f0f0f0;
}

.user-item.active {
    background-color: #e3f2fd;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 1rem;
    position: relative;
}

.unread-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #f44336;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.latest-message {
    margin-left: 1rem;
    font-size: 0.8rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    display: inline-block;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.user-status {
    font-size: 0.8rem;
    color: #666;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 0.5rem;
}

.status-online {
    background-color: #4caf50;
}

.status-offline {
    background-color: #9e9e9e;
}

/* 聊天区域 */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
}

.chat-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.chat-actions {
    display: flex;
    gap: 0.5rem;
}

.message-container {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 70%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    position: relative;
}

.message.sent {
    align-self: flex-end;
    background-color: #667eea;
    color: white;
    border-bottom-right-radius: 4px;
}

.message.received {
    align-self: flex-start;
    background-color: white;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 0.3rem;
    text-align: right;
}

.message-input-area {
    padding: 1rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 0.5rem;
    background-color: white;
}

.message-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
}

.input-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.message-input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.message-input:focus {
    border-color: #667eea;
}

/* 按钮样式 */
.btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.small-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.send-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    padding: 0 1.5rem;
}

.send-btn:hover {
    opacity: 0.9;
}

/* 历史记录部分 */
.history-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.history-section h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.history-item {
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.1);
}

.history-item h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: #333;
}

.history-item p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.history-time {
    font-size: 0.8rem;
    color: #999;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
    transition: all 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #667eea;
}

/* 模态框滚动条 */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #d1d3e2;
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #667eea;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .chat-container {
        flex-direction: column;
        height: auto;
    }

    .user-list {
        width: 100%;
        max-height: 200px;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .message-container {
        min-height: 400px;
    }
}

/* 加载动画 */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #666;
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 空状态 */
.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    flex-direction: column;
    gap: 1rem;
}

.empty-state i {
    font-size: 3rem;
    opacity: 0.5;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification.success {
    background-color: #4caf50;
}

.notification.error {
    background-color: #f44336;
}

.notification.info {
    background-color: #2196f3;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 右键菜单样式 */
.context-menu {
    position: fixed;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    display: none;
    min-width: 150px;
}

.context-menu-item {
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 4px;
    margin: 0.2rem;
}

.context-menu-item:hover {
    background-color: #f0f0f0;
}

/* 消息提示样式 */
.message-notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 400px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.message-notification-content {
    padding: 1rem;
}

.message-notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.message-notification-sender {
    font-weight: 600;
    color: #333;
}

.message-notification-time {
    font-size: 0.8rem;
    color: #999;
}

.message-notification-body {
    margin-top: 0.5rem;
}

.message-notification-body p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 页脚样式 */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
    border-top: 4px solid #667eea;
}

footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* AI聊天相关样式 */
.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background-color: #667eea;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* 警告通知样式 */
.notification.warning {
    background-color: #ff9800;
}

/* AI聊天模式特殊样式 */
.chat-area.ai-chat-mode {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.chat-area.ai-chat-mode .chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: none;
}

.chat-area.ai-chat-mode .chat-header h3 {
    color: white;
}

.chat-area.ai-chat-mode .message-container {
    background: transparent;
}

/* AI消息气泡样式 */
.chat-area.ai-chat-mode .message.received {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 16px 16px 16px 4px;
    max-width: 80%;
}

.chat-area.ai-chat-mode .message.sent {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px 16px 4px 16px;
    max-width: 80%;
}

/* AI聊天输入区域样式 */
.chat-area.ai-chat-mode .message-input-area {
    background: white;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    padding: 1rem 1.5rem;
}

.chat-area.ai-chat-mode .message-input-wrapper {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 24px;
    background: white;
    transition: all 0.3s ease;
    min-height: 52px;
}

.chat-area.ai-chat-mode .message-input-wrapper:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.chat-area.ai-chat-mode .input-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chat-area.ai-chat-mode .input-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
    animation: tagSlideIn 0.2s ease;
}

@keyframes tagSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.chat-area.ai-chat-mode .input-tag-close {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.chat-area.ai-chat-mode .input-tag-close:hover {
    background: rgba(102, 126, 234, 0.4);
}

.chat-area.ai-chat-mode .message-input {
    flex: 1;
    min-width: 150px;
    border: none;
    padding: 0.5rem 0;
    background: transparent;
    outline: none;
    font-size: 1rem;
}

.chat-area.ai-chat-mode .send-btn {
    border-radius: 50%;
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* AI快捷操作栏 */
.ai-quick-actions {
    display: none;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.ai-quick-actions.show {
    display: flex;
}

.ai-quick-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(102, 126, 234, 0.06);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 24px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-quick-action:hover {
    background: rgba(102, 126, 234, 0.12);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.ai-quick-action .action-icon {
    font-size: 1.1rem;
}

.ai-quick-action .action-label {
    font-weight: 500;
}

.ai-quick-action .action-arrow {
    font-size: 1.2rem;
    opacity: 0.6;
    margin-left: 0.25rem;
    transition: transform 0.2s ease;
}

.ai-quick-action:hover .action-arrow {
    transform: translateX(2px);
    opacity: 1;
}

/* AI快捷操作菜单 */
.ai-quick-action-menu {
    position: fixed;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1002;
    min-width: 180px;
    padding: 0.5rem 0;
    animation: menuSlideIn 0.2s ease;
}

@keyframes menuSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-quick-action-menu-item {
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.9rem;
    color: #333;
}

.ai-quick-action-menu-item:hover {
    background: rgba(102, 126, 234, 0.08);
    color: #667eea;
}

/* AI聊天头像动画 */
.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background-color: #667eea;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* AI思考过程样式 */
.ai-thinking {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.thinking-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.thinking-indicator span {
    width: 8px;
    height: 8px;
    background-color: #667eea;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.thinking-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.thinking-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

.thinking-text {
    color: #667eea;
    font-weight: 500;
    font-size: 0.9rem;
}

.ai-thinking-content {
    margin-top: 10px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-thinking-content strong {
    color: #667eea;
    font-weight: 600;
}

.ai-thinking-content div {
    margin-top: 5px;
}

.ai-thinking-content div br {
    margin-bottom: 4px;
}

/* 视频通话样式 */
.video-call-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.video-call-modal.show {
    display: flex;
}

.video-call-content {
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 16px;
    overflow: hidden;
}

.video-call-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #52c41a 0%, #3cb371 100%);
    color: white;
}

.video-call-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.video-call-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    opacity: 0.8;
}

.video-call-close:hover {
    opacity: 1;
}

.video-call-body {
    padding: 0;
    background: #0a0a0a;
}

.video-call-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remote-video-wrapper {
    z-index: 1;
}

.local-video-wrapper {
    z-index: 2;
    width: 200px;
    height: 150px;
    bottom: 1rem;
    right: 1rem;
    border: 3px solid #52c41a;
    border-radius: 8px;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.placeholder-icon {
    font-size: 64px;
    margin-bottom: 1rem;
}

.placeholder-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.video-call-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #1a1a1a;
}

.call-control-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.call-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.call-control-btn.active {
    background: rgba(82, 196, 26, 0.3);
}

.call-control-btn.inactive {
    opacity: 0.5;
}

.call-control-btn .icon {
    font-size: 1.5rem;
}

.call-control-btn .label {
    font-size: 0.8rem;
}

.call-control-btn.hangup-btn {
    background: #f5222d;
}

.call-control-btn.hangup-btn:hover {
    background: #dc143c;
}

.call-timer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    z-index: 10;
}

.call-timer.show {
    display: flex;
}

.video-call-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.video-call-btn:hover {
    background: #3cb371 !important;
}
