* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    background: #F2F2F2;
    color: #333;
    height: 100%;
    overflow: hidden;
    width: 100%;
}
body {
    margin: 0;
    padding: 0;
}
.app-container {
    display: flex;
    height: 100%;
    width: 100%;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 侧边栏样式 */
.sidebar {
    width: 280px;
    background: #f8f9fa;
    border-right: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    z-index: 100;
    overflow: hidden;
}

/* 聊天标签样式 */
.chat-tabs {
    display: flex;
    margin: 10px 15px;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 聊天标签按钮样式 */
.chat-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    border: none;
    background: none;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

/* 激活的聊天标签样式 */
.chat-tab.active {
    background: #07C160;
    color: white;
    font-weight: 500;
}

/* 群聊和私聊内容区域样式 */
#groupChatSection,
#privateChatSection {
    flex: 1;
    overflow-y: auto;
    padding: 0 15px 20px;
}

/* 优化滚动条样式 */
#groupChatSection::-webkit-scrollbar,
#privateChatSection::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

#groupChatSection::-webkit-scrollbar-track,
#privateChatSection::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#groupChatSection::-webkit-scrollbar-thumb,
#privateChatSection::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

#groupChatSection::-webkit-scrollbar-thumb:hover,
#privateChatSection::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
.sidebar-header {
    padding: 15px;
    background: #ffffff;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}
.chat-tabs {
    display: flex;
    margin: 10px 15px;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}
.chat-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    border: none;
    background: none;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}
.chat-tab.active {
    background: #07C160;
    color: white;
    font-weight: 500;
}
.online-users-section {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}
.section-title {
    font-size: 12px;
    color: #999;
    margin: 10px 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.user-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin: 5px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ffffff;
    border: 1px solid transparent;
}
.user-item:hover {
    background: #e8f5e8;
    border-color: #07C160;
    transform: translateX(5px);
}
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    font-weight: bold;
    margin-right: 12px;
}

/* 确保群聊列表中的头像正确显示 */
#groupChatList .user-avatar {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.user-info {
    flex: 1;
}
.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}
.user-status {
    font-size: 12px;
    color: #666;
}
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #07C160;
    margin-right: 5px;
}
.private-chat-btn {
    padding: 6px 12px;
    background: #07C160;
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.private-chat-btn:hover {
    background: #06b058;
    transform: scale(1.05);
}

/* 主聊天区样式 */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}
.header {
    background: #ffffff;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #eaeaea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 10;
}
.header-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f0fbf4;
    display: flex;
    align-items: center;
    justify-content: center;
}
.group-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.group-name {
    font-size: 17px;
    font-weight: 600;
    color: #333333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.group-desc {
    font-size: 12px;
    color: #999999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background: #f5f5f5;
    padding-bottom: 100px;
    box-sizing: border-box;
}

/* 自定义滚动条样式 */
.chat-content::-webkit-scrollbar,
.private-chat-content::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.chat-content::-webkit-scrollbar-track,
.private-chat-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.chat-content::-webkit-scrollbar-thumb,
.private-chat-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.chat-content::-webkit-scrollbar-thumb:hover,
.private-chat-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Firefox滚动条样式 */
.chat-content,
.private-chat-content {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}
.message {
    display: flex;
    margin: 15px 0;
}

/* 系统消息样式 */
.message.system-message {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
}

.system-message-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 80%;
}

.system-message-text {
    background-color: #e8f5e8;
    color: #07C160;
    padding: 8px 16px;
    border-radius: 18px;
    font-size: 14px;
    text-align: center;
    margin-bottom: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.system-message-time {
    font-size: 10px;
    color: #999;
    text-align: center;
}
.message.self {
    flex-direction: row-reverse;
}
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    font-weight: bold;
}
.message-content {
    max-width: 60%;
    margin: 0 10px;
    width: auto;
    display: flex;
    flex-direction: column;
}
.message-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}
.username {
    font-size: 12px;
    color: #666;
}
.message-time {
    font-size: 10px;
    color: #999;
    margin: 0;
}

/* 消息元信息（时间等）样式 */
.message-meta {
    display: flex;
    margin-top: 4px;
    justify-content: flex-start;
}

/* 自己发送的消息，时间右对齐 */
.message.self .message-meta {
    justify-content: flex-end;
}
.message-status {
    font-size: 10px;
    color: #999;
    margin-left: 5px;
}
.message-status.read {
    color: #07C160;
}
.message-bubble {
    background: white;
    border-radius: 4px;
    padding: 8px 12px;
    position: relative;
    word-break: break-word;
    align-self: flex-start;
    width: fit-content;
    max-width: 100%;
}
.message.self .message-bubble {
    background: #95EC69;
    align-self: flex-end;
}
.message-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    width: 0;
    height: 0;
    border-style: solid;
}
.message.other .message-bubble::before {
    left: -6px;
    border-width: 6px 6px 0 0;
    border-color: white transparent transparent transparent;
}
.message.self .message-bubble::before {
    right: -6px;
    border-width: 0 6px 6px 0;
    border-color: transparent #95EC69 transparent transparent;
}
.media-message {
    max-width: 100%;
    border-radius: 4px;
    margin-top: 5px;
}
.media-message img, .media-message video, .message-media {
    max-width: 100%;
    max-height: 300px;
    border-radius: 4px;
}

.file-btn {
    margin-right: 8px;
    background: #f0f0f0;
    color: #666;
    transition: all 0.2s ease;
}

.file-btn:hover {
    background: #e0e0e0;
    color: #333;
}
.identity-info {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 1000;
    transition: opacity 1s ease;
}
.emoji-picker {
    position: fixed;
    bottom: 60px;
    right: 10px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    width: 300px;
    max-height: 400px;
    z-index: 1001;
    display: none;
    flex-direction: column;
}
.emoji-picker.show {
    display: flex;
}
.emoji-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
}
.emoji-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
}
.emoji-tab.active {
    background: #f5f5f5;
}
.emoji-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
    padding: 10px;
    overflow-y: auto;
    max-height: 300px;
}
.emoji-item {
    font-size: 24px;
    padding: 5px;
    text-align: center;
    cursor: pointer;
    border-radius: 5px;
}
.emoji-item:hover {
    background: #f5f5f5;
}
.emoji-category {
    display: contents;
}
.chat-container {
    position: relative;
}
.input-area {
    background: #ffffff;
    padding: 12px 15px;
    border-top: 1px solid #eaeaea;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.02);
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 998;
    margin-left: 0;
    max-width: 100%;
    outline: none;
    flex-shrink: 0;
}
.message-input {
    flex: 1;
    background: #f8f8f8;
    border: 1px solid #eaeaea;
    border-radius: 20px;
    padding: 12px 18px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    min-height: 42px;
    resize: none;
    overflow-y: auto;
    max-height: 120px;
}
.message-input:focus {
    border-color: #07C160;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(7, 193, 96, 0.1);
}
.send-btn {
    width: 80px;
    height: 42px;
    border-radius: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #07C160;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(7, 193, 96, 0.2);
    flex-shrink: 0;
}
.send-btn.plus {
    background: #f8f8f8;
    color: #666666;
    border: 1px solid #eaeaea;
    width: 42px;
    border-radius: 50%;
    font-size: 18px;
}
.send-btn:hover:not(.plus) {
    background: #06b058;
    transform: scale(1.05);
}
#file-input {
    display: none;
}

/* 私聊窗口样式 */
.app-container {
    display: flex;
    height: 100%;
    position: relative;
}
.private-chat-window {
    position: absolute;
    top: 0;
    left: 280px;
    right: 0;
    width: calc(100% - 280px);
    height: 100%;
    background: white;
    display: none;
    flex-direction: column;
    z-index: 999;
    pointer-events: none;
}
.private-chat-window.active {
    display: flex;
    pointer-events: auto;
}
.private-chat-header {
    background: #ffffff;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #eaeaea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.back-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    padding: 5px;
}
.private-chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    font-weight: bold;
}
.private-chat-user-info {
    flex: 1;
}
.private-chat-username {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}
.private-chat-status {
    font-size: 12px;
    color: #07C160;
}
.private-chat-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background: #f5f5f5;
    padding-bottom: 80px;
}
.private-chat-input-area {
    background: #ffffff;
    padding: 12px 15px;
    border-top: 1px solid #eaeaea;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.02);
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    margin-left: 0;
    max-width: 100%;
    outline: none;
}

/* ========== 美化自定义弹窗样式 ========== */
.custom-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    padding: 24px 30px;
    max-width: 400px;
    width: 90%;
    z-index: 9999; /* 最高层级，不被遮挡 */
    border: 1px solid #f0f0f0;
    display: none; /* 默认隐藏 */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.custom-alert.show {
    display: flex; /* 显示弹窗 */
    animation: fadeIn 0.3s ease-in-out; /* 淡入动画 */
}
.alert-icon {
    font-size: 40px;
    margin-bottom: 16px;
    color: #ff4d4f; /* 错误图标红色 */
}
.alert-message {
    font-size: 16px;
    color: #333333;
    line-height: 1.5;
    margin-bottom: 20px;
    font-weight: 500;
}
.alert-close {
    padding: 8px 20px;
    background: #07C160;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}
.alert-close:hover {
    background: #06b058;
}
/* 弹窗遮罩（可选，暗化背景） */
.alert-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 9998;
    display: none;
}
.alert-mask.show {
    display: block;
    animation: fadeMask 0.3s ease-in-out;
}
/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}
@keyframes fadeMask {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 移动端响应式设计 */
@media (max-width: 768px) {
    /* 基础布局调整 */
    .app-container {
        width: 100%;
        margin: 0;
        border-radius: 0;
    }
    
    /* 移动端菜单按钮 */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 8px;
        background: #f0fbf4;
        border: none;
        font-size: 18px;
        cursor: pointer;
    }
    
    /* 侧边栏适配 */
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        width: 260px;
        transform: translateX(-100%);
        z-index: 1000;
        background: #ffffff;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
    }
    .sidebar.active {
        transform: translateX(0);
    }
    
    /* 侧边栏遮罩层 */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
        transition: opacity 0.3s ease;
    }
    .sidebar-overlay.active {
        display: block;
        opacity: 1;
    }
    
    /* 主聊天区适配 */
    .chat-container {
        width: 100%;
    }
    
    /* 聊天内容区域 */
    .chat-content {
        padding: 10px;
        padding-bottom: 80px;
    }
    
    /* 侧边栏内容区域滚动 */
    #groupChatSection,
    #privateChatSection {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* 消息气泡适配 */
    .message {
        margin: 10px 0;
    }
    .message-content {
        max-width: 75%;
    }
    .message-bubble {
        padding: 10px 15px;
        font-size: 15px;
    }
    
    /* 输入区域适配 */
    .input-area {
        padding: 10px 15px;
        gap: 6px;
    }
    .message-input {
        padding: 10px 16px;
        font-size: 15px;
    }
    .send-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    /* 私聊窗口适配 */
    .private-chat-window {
        left: 0;
        width: 100%;
        position: fixed;
    }
    
    /* 私聊返回按钮 */
    .back-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 8px;
        background: #f0fbf4;
    }
    
    /* 在线用户列表适配 */
    .online-users-section {
        padding: 5px;
    }
    .user-item {
        padding: 10px 12px;
        margin: 4px 0;
    }
    .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 11px;
    }
    .user-name {
        font-size: 14px;
    }
    .user-status {
        font-size: 11px;
    }
    
    /* 群组信息适配 */
    .group-name {
        font-size: 16px;
    }
    .group-desc {
        font-size: 11px;
    }
    
    /* 表情选择器适配 */
    .emoji-picker {
        width: 100%;
        right: 0;
        left: 0;
        max-height: 350px;
        border-radius: 20px 20px 0 0;
    }
    .emoji-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 4px;
    }
    
    /* 身份信息提示适配 */
    .identity-info {
        top: 10px;
        right: 10px;
        bottom: auto;
        left: auto;
        text-align: left;
    }
    
    /* 设置按钮移动端优化 */
    .settings-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .settings-btn:active {
        background: #e0e0e0;
        transform: scale(0.95);
    }
    
    .settings-popup {
        right: 10px;
        bottom: 70px;
        min-width: 160px;
    }
    
    .settings-menu-item {
        padding: 14px 18px;
        font-size: 15px;
        min-height: 44px;
        touch-action: manipulation;
    }
}

/* 极小屏幕适配 */
@media (max-width: 480px) {
    .sidebar {
        width: 240px;
    }
    .message-content {
        max-width: 80%;
    }
    .message-bubble {
        padding: 8px 12px;
        font-size: 14px;
    }
    .input-area {
        padding: 8px 12px;
    }
    .message-input {
        padding: 8px 14px;
        font-size: 14px;
    }
    .send-btn {
        width: 38px;
        height: 38px;
    }
}

/* 登录页面样式 */
#login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    background-color: #f2f2f2;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

/* 聊天页面样式 */
#chat-screen {
    display: none;
    height: 100%;
    width: 100%;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 0 20px;
}

.login-form {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #07C160;
    font-size: 24px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 14px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #07C160;
    box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.1);
    background-color: #f9fff9;
}

/* 颜色选择器 */
.color-picker {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
}

.color-option:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.color-option.selected {
    border-color: #07C160;
    transform: scale(1.15);
    box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.2);
}

.color-option.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.login-btn {
    width: 100%;
    padding: 14px;
    background-color: #07C160;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 16px;
    box-shadow: 0 2px 8px rgba(7, 193, 96, 0.3);
}

.login-btn:hover {
    background-color: #06b058;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.4);
}

.send-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(7, 193, 96, 0.3);
}

.settings-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.settings-btn:hover {
    background: #e8e8e8;
    color: #333;
}

.settings-popup {
    position: absolute;
    bottom: 60px;
    right: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1001;
    overflow: hidden;
    min-width: 150px;
}

.settings-popup.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

.settings-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: left;
}

.settings-menu-item:hover {
    background: #f5f5f5;
}

.logout-btn {
    color: #e74c3c;
}

.logout-btn:hover {
    background: #fef0ef;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-tabs {
    display: flex;
    margin-bottom: 20px;
    border-radius: 8px;
    background: #f5f5f5;
    overflow: hidden;
}

.login-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    border: none;
    background: none;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.login-tab.active {
    background: #07C160;
    color: white;
    font-weight: 500;
}

#login-form .form-group {
    margin-bottom: 15px;
}