/* public/css/style.css */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, sans-serif; background-color: #ededed; display: flex; flex-direction: column; height: 100vh; max-width: 600px; margin: 0 auto; box-shadow: 0 0 10px rgba(0,0,0,0.1); }
header { background: #f7f7f7; padding: 15px; text-align: center; font-size: 17px; font-weight: 600; border-bottom: 1px solid #e5e5e5; color: #333; position: relative; }
.logout-btn { position: absolute; right: 15px; top: 15px; font-size: 14px; color: #dc3545; cursor: pointer; font-weight: normal; }

/* 登录页和面板页共用样式 */
.center-container { flex: 1; display: flex; align-items: center; justify-content: center; background: #ededed; padding: 20px;}
.card-box { background: white; padding: 30px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); width: 100%; max-width: 320px; text-align: center; }
.card-box h2 { margin-bottom: 20px; color: #333; }
.card-box input { width: 100%; margin-bottom: 15px; padding: 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 16px; outline: none; }
.card-box button.primary-btn { width: 100%; padding: 12px; background: #07c160; color: white; border: none; border-radius: 6px; font-size: 16px; font-weight: bold; cursor: pointer; margin-bottom: 15px;}
.card-box button.secondary-btn { width: 100%; padding: 12px; background: #3498db; color: white; border: none; border-radius: 6px; font-size: 16px; font-weight: bold; cursor: pointer; }

/* 聊天界面通用样式 */
#chat-box { flex: 1; padding: 15px; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; }
.msg-row { display: flex; align-items: flex-start; max-width: 100%; }
.msg-row.me { justify-content: flex-end; }
.avatar { width: 40px; height: 40px; border-radius: 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; font-size: 14px; overflow: hidden; background-color: #f39c12;}
.msg-row.me .avatar { background-color: #3498db; margin-left: 12px; }
.msg-row.other .avatar { margin-right: 12px; }
.bubble { max-width: 70%; padding: 10px 14px; border-radius: 8px; font-size: 16px; line-height: 1.5; word-wrap: break-word; }
.msg-row.other .bubble { background-color: #fff; border-top-left-radius: 0; }
.msg-row.me .bubble { background-color: #95ec69; border-top-right-radius: 0; }
.bubble img, .bubble video { max-width: 100%; border-radius: 4px; margin-top: 5px; cursor: pointer;}
.muyu-alert { font-size: 12px; color: #999; margin-top: 6px; font-weight: normal;}

/* 底部输入区 */
#input-area { background: #f7f7f7; padding: 10px; border-top: 1px solid #e5e5e5; display: flex; gap: 8px; align-items: center; position: relative;}
.icon-btn { font-size: 26px; color: #555; cursor: pointer; padding: 0 5px; position: relative;}
input[type="text"].chat-input { flex: 1; padding: 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 16px; outline: none; }
.btn-send { background: #07c160; color: white; border: none; padding: 10px 15px; border-radius: 6px; font-weight: bold; cursor: pointer; white-space: nowrap; }
.btn-burn { background: #e6a23c; color: white; border: none; padding: 10px 15px; border-radius: 6px; font-weight: bold; cursor: pointer; white-space: nowrap; }

/* 隐藏真实的文件上传按钮 */
#file-upload { display: none; }
/* 表情面板 */
#emoji-picker { display: none; position: absolute; bottom: 60px; left: 10px; background: white; border: 1px solid #ddd; border-radius: 8px; padding: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); width: 200px; flex-wrap: wrap; gap: 10px; z-index: 100;}
.emoji-item { font-size: 24px; cursor: pointer; }

/* ========================================== */
/* Cabin-AI 侧边栏历史记录的操作按钮 (重命名/删除) */
/* ========================================== */
.nav-actions { display: flex; gap: 10px; opacity: 0; transition: opacity 0.2s; font-size: 14px;}
.nav-item:hover .nav-actions { opacity: 1; }
.nav-actions span { color: #888; cursor: pointer; transition: color 0.2s; }
.nav-actions span:hover { color: #3498db; }
.nav-actions span.del-btn:hover { color: #e74c3c; }

