/* ai-helper-modal.css — попап "AI помощник" (нав-ссылка между График и Настройки).
   28.06.2026 (#150): отдельный чат, не путать с АИ Бот (floating-chat.css) — палитра общая
   для визуальной consistency, разметка своя.
*/

.nav-ai-helper{position:relative;}
.nav-ai-helper::before{content:'🤖';margin-right:5px;font-size:11px;}

#aihelper-overlay{position:fixed;inset:0;background:rgba(0,0,0,0.72);display:flex;align-items:center;justify-content:center;z-index:1000;backdrop-filter:blur(4px);}

.aihelper-box{background:#0f0020;border:1px solid rgba(139,92,246,0.3);border-radius:16px;width:420px;max-width:92vw;height:560px;max-height:85vh;box-shadow:0 20px 60px rgba(0,0,0,0.6);display:flex;flex-direction:column;overflow:hidden;}

.aihelper-head{padding:13px 14px;border-bottom:1px solid rgba(255,255,255,.06);display:flex;align-items:center;gap:10px;background:linear-gradient(180deg,rgba(139,92,246,.1),transparent);flex-shrink:0;}
.aihelper-title{font-size:14px;font-weight:700;color:#fff;flex:1;}

.aihelper-dlcs-switch{display:flex;align-items:center;gap:6px;cursor:pointer;font-size:11px;color:rgba(255,255,255,.45);user-select:none;}
.aihelper-dlcs-switch input{position:absolute;opacity:0;width:0;height:0;}
.aihelper-dlcs-slider{width:30px;height:16px;border-radius:9px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.15);position:relative;transition:.15s;flex-shrink:0;}
.aihelper-dlcs-slider::before{content:'';position:absolute;width:12px;height:12px;border-radius:50%;background:#fff;top:1px;left:1px;transition:.15s;}
.aihelper-dlcs-switch input:checked + .aihelper-dlcs-slider{background:rgba(52,211,153,.35);border-color:rgba(52,211,153,.5);}
.aihelper-dlcs-switch input:checked + .aihelper-dlcs-slider::before{transform:translateX(14px);background:#34d399;}
.aihelper-dlcs-switch input:checked ~ .aihelper-dlcs-label{color:#34d399;font-weight:700;}

.aihelper-close{width:24px;height:24px;border-radius:6px;display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.4);cursor:pointer;font-size:13px;flex-shrink:0;}
.aihelper-close:hover{background:rgba(255,255,255,.08);color:#fff;}

.aihelper-body{flex:1;overflow-y:auto;padding:13px 14px;display:flex;flex-direction:column;gap:8px;min-height:0;}
.aihelper-body::-webkit-scrollbar{width:3px;}
.aihelper-body::-webkit-scrollbar-thumb{background:rgba(139,92,246,.3);border-radius:2px;}

.aihelper-empty{font-size:12px;color:rgba(255,255,255,.35);line-height:1.55;text-align:center;margin:auto;padding:0 10px;}

.aihelper-msg{animation:aihelper-fadein .2s;max-width:88%;font-size:12px;line-height:1.5;}
.aihelper-msg-u{align-self:flex-end;background:rgba(139,92,246,.18);border:1px solid rgba(139,92,246,.3);border-radius:10px 10px 3px 10px;padding:8px 11px;color:#e8e8e8;}
.aihelper-msg-a{align-self:flex-start;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:10px 10px 10px 3px;padding:8px 11px;color:#c4b5fd;}
@keyframes aihelper-fadein{from{opacity:0;transform:translateY(3px);}to{opacity:1;transform:none;}}

.aihelper-typing{align-self:flex-start;color:rgba(255,255,255,.3);font-size:12px;padding:8px 11px;}

.aihelper-foot{padding:10px 12px;border-top:1px solid rgba(255,255,255,.05);background:rgba(0,0,0,.2);display:flex;gap:6px;align-items:flex-end;flex-shrink:0;}
.aihelper-foot textarea{flex:1;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);border-radius:8px;padding:8px 11px;font-size:12px;color:#fff;outline:none;resize:none;font-family:inherit;min-height:36px;max-height:100px;line-height:1.4;}
.aihelper-foot textarea::placeholder{color:rgba(255,255,255,.25);}
.aihelper-foot textarea:focus{border-color:rgba(139,92,246,.4);}
.aihelper-foot button{width:36px;height:36px;border-radius:8px;background:rgba(139,92,246,.25);border:1px solid rgba(139,92,246,.5);color:#a78bfa;font-size:14px;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.aihelper-foot button:hover{background:rgba(139,92,246,.4);}
