/* glulando — Agent Bubble + Dashboard v3.1 CSS */

/* ═══ FLOATING BUBBLE ═══ */
#gl-agent-bubble-wrap{position:fixed;bottom:20px;right:20px;z-index:9999;font-family:inherit}
.gl-bubble-btn{width:56px;height:56px;border-radius:50%;border:none;background:linear-gradient(135deg,#1E40AF,#3B82F6);color:#fff;font-size:24px;cursor:pointer;box-shadow:0 4px 20px rgba(30,64,175,.4);display:flex;align-items:center;justify-content:center;transition:transform .2s,box-shadow .2s;position:relative}
.gl-bubble-btn:hover{transform:scale(1.08);box-shadow:0 6px 28px rgba(30,64,175,.5)}
.gl-bubble-btn.gl-bubble-active{transform:scale(.92);background:#1E3A8A}
.gl-bubble-pulse{position:absolute;inset:-4px;border-radius:50%;border:2px solid #3B82F6;animation:gl-pulse 2s infinite}
.gl-bubble-active .gl-bubble-pulse{display:none}
@keyframes gl-pulse{0%{transform:scale(1);opacity:.6}70%{transform:scale(1.3);opacity:0}100%{transform:scale(1.3);opacity:0}}

/* ═══ PANEL ═══ */
.gl-bubble-panel{position:absolute;bottom:70px;right:0;width:370px;max-width:calc(100vw - 32px);background:var(--bg,#fff);border-radius:16px;box-shadow:0 12px 48px rgba(0,0,0,.18);overflow:hidden;display:flex;flex-direction:column;max-height:520px;border:1px solid var(--border,#e2e8f0);animation:gl-slide-up .25s ease}
.gl-bubble-panel.hidden{display:none}
@keyframes gl-slide-up{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
.gl-bubble-header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:linear-gradient(135deg,#1E40AF,#3B82F6);color:#fff;font-weight:600;font-size:14px}
.gl-bubble-close{background:none;border:none;color:#fff;font-size:18px;cursor:pointer;opacity:.7;padding:0 4px}
.gl-bubble-close:hover{opacity:1}
.gl-bubble-actions{display:flex;flex-wrap:wrap;gap:6px;padding:10px 12px;border-bottom:1px solid var(--border,#e2e8f0);background:var(--bg-secondary,#f8fafc)}
.gl-quick-chip{padding:6px 12px;border-radius:20px;border:1px solid var(--border,#e2e8f0);background:var(--bg,#fff);font-size:12px;cursor:pointer;transition:all .15s;white-space:nowrap;color:var(--text,#1e293b)}
.gl-quick-chip:hover{background:#1E40AF;color:#fff;border-color:#1E40AF;transform:translateY(-1px)}
.gl-bubble-messages{flex:1;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:8px;min-height:180px;max-height:300px}
.gl-bmsg{padding:10px 14px;border-radius:12px;font-size:13px;line-height:1.5;max-width:88%;word-wrap:break-word}
.gl-bmsg-user{background:#1E40AF;color:#fff;align-self:flex-end;border-bottom-right-radius:4px}
.gl-bmsg-ai{background:var(--bg-secondary,#f1f5f9);color:var(--text,#1e293b);align-self:flex-start;border-bottom-left-radius:4px}
.gl-bmsg-typing{opacity:.5;animation:gl-blink 1s infinite}
@keyframes gl-blink{50%{opacity:.3}}
.gl-bubble-input-row{display:flex;gap:8px;padding:10px 12px;border-top:1px solid var(--border,#e2e8f0);background:var(--bg,#fff)}
.gl-bubble-input-row input{flex:1;border:1px solid var(--border,#e2e8f0);border-radius:20px;padding:8px 14px;font-size:13px;background:var(--bg,#fff);color:var(--text,#1e293b);outline:none}
.gl-bubble-input-row input:focus{border-color:#3B82F6;box-shadow:0 0 0 2px rgba(59,130,246,.15)}
.gl-bubble-input-row button{width:36px;height:36px;border-radius:50%;border:none;background:#1E40AF;color:#fff;font-size:16px;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.gl-bubble-input-row button:hover{background:#1E3A8A}
.dark .gl-bubble-panel{background:#0f172a;border-color:#1e293b}
.dark .gl-bubble-header{background:linear-gradient(135deg,#1e3a8a,#1d4ed8)}
.dark .gl-bubble-actions{background:#1e293b;border-color:#334155}
.dark .gl-quick-chip{background:var(--bg-secondary,#1e293b);border-color:#334155;color:#e2e8f0}
.dark .gl-quick-chip:hover{background:#3B82F6;border-color:#3B82F6}
.dark .gl-bmsg-ai{background:#1e293b;color:#e2e8f0}
.dark .gl-bubble-input-row{background:#0f172a;border-color:#1e293b}
.dark .gl-bubble-input-row input{background:#1e293b;border-color:#334155;color:#e2e8f0}
@media(max-width:480px){
    #gl-agent-bubble-wrap{bottom:12px;right:12px}
    .gl-bubble-panel{width:calc(100vw - 24px);right:-8px;bottom:64px;max-height:70vh}
    .gl-bubble-btn{width:50px;height:50px;font-size:22px}
}

/* ═══════════════════════════════════════════════════════
   DASHBOARD V3.1 — Coach-curated
   ═══════════════════════════════════════════════════════ */

/* Welcome Card (einmalig) */
.gl-dash-welcome-card{background:linear-gradient(135deg,var(--primary,#1E40AF) 0%,var(--accent,#7C3AED) 100%);border-radius:16px;padding:24px;color:#fff;margin-bottom:20px;position:relative;transition:opacity .3s}
.gl-welcome-close{position:absolute;top:12px;right:14px;background:rgba(255,255,255,.2);border:none;color:#fff;width:28px;height:28px;border-radius:50%;cursor:pointer;font-size:14px;display:flex;align-items:center;justify-content:center}
.gl-welcome-close:hover{background:rgba(255,255,255,.35)}
.gl-welcome-inner{display:flex;gap:20px;align-items:flex-start}
.gl-welcome-video{flex:0 0 280px;max-width:100%}
.gl-welcome-text h2{font-size:20px;font-weight:700;margin:0 0 8px}
.gl-welcome-text p{font-size:14px;opacity:.85;margin:0;line-height:1.5}

/* Hero — Gradient Card */
.gl-dash-hero{margin-bottom:20px}
.gl-hero-gradient{background:linear-gradient(135deg,var(--primary,#1E40AF) 0%,var(--accent,#7C3AED) 100%);border-radius:16px;padding:24px;color:#fff}
.gl-hero-click{cursor:pointer;transition:transform .15s,box-shadow .15s}
.gl-hero-click:hover{transform:translateY(-2px);box-shadow:0 8px 28px rgba(30,64,175,.35)}
.gl-hero-top h2{font-size:20px;font-weight:700;margin:0 0 14px}
.gl-hero-body{display:flex;gap:16px;align-items:flex-start}
.gl-hero-thumb{width:110px;height:72px;object-fit:cover;border-radius:10px;flex-shrink:0;box-shadow:0 4px 12px rgba(0,0,0,.2)}
.gl-hero-info{flex:1;min-width:0}
.gl-hero-badge{display:inline-block;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;background:rgba(255,255,255,.2);padding:3px 10px;border-radius:20px;margin-bottom:6px}
.gl-hero-info h3{font-size:17px;font-weight:600;margin:0 0 4px}
.gl-hero-info p{font-size:13px;opacity:.8;margin:0;line-height:1.4}
.gl-hero-btn{display:inline-block;background:rgba(255,255,255,.2);border:1px solid rgba(255,255,255,.3);color:#fff;padding:7px 18px;border-radius:8px;font-size:13px;font-weight:600;text-decoration:none;margin-top:10px;transition:background .15s}
.gl-hero-btn:hover{background:rgba(255,255,255,.3)}
.gl-hero-prog{display:flex;align-items:center;gap:8px;margin-top:10px}
.gl-hero-prog-bar{flex:1;height:6px;background:rgba(255,255,255,.2);border-radius:3px;overflow:hidden}
.gl-hero-prog-fill{height:100%;background:#fff;border-radius:3px;transition:width .5s}
.gl-hero-prog span{font-size:12px;font-weight:700;opacity:.9}

/* Content Grid */
.gl-dash-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.gl-dash-section{overflow:hidden}
.gl-dash-section .card-header h3{font-size:15px;margin:0}

/* Posts */
.gl-dash-posts{display:flex;flex-direction:column;gap:12px}
.gl-dash-post{padding:10px 0;border-bottom:1px solid var(--border,#e2e8f0);cursor:pointer;transition:background .1s}
.gl-dash-post:last-child{border-bottom:none}
.gl-dash-post:hover{background:var(--bg-secondary,#f8fafc);margin:0 -12px;padding:10px 12px;border-radius:8px}
.gl-dash-post-head{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.gl-dash-avatar{width:28px;height:28px;border-radius:50%;object-fit:cover}
.gl-dash-avatar-placeholder{width:28px;height:28px;border-radius:50%;background:var(--border,#e2e8f0);display:flex;align-items:center;justify-content:center;font-size:14px}
.gl-dash-post-head strong{font-size:13px;color:var(--text,#1e293b)}
.gl-dash-space{font-size:11px;color:var(--text-muted,#64748b);margin-left:4px}
.gl-dash-time{font-size:11px;color:var(--text-muted,#64748b);margin-left:auto;white-space:nowrap}
.gl-dash-post p{font-size:13px;color:var(--text,#1e293b);line-height:1.4;margin:0}
.gl-dash-post-meta{display:flex;gap:12px;margin-top:6px;font-size:12px;color:var(--text-muted,#64748b)}
.gl-dash-link{display:block;padding:10px 14px;text-align:center;font-size:13px;color:var(--primary,#1E40AF);text-decoration:none;border-top:1px solid var(--border,#e2e8f0)}
.gl-dash-link:hover{background:var(--bg-secondary,#f8fafc)}

/* Webinar */
.gl-dash-webinar{cursor:pointer;transition:box-shadow .15s}
.gl-dash-webinar:hover{box-shadow:0 4px 16px rgba(0,0,0,.08)}
.gl-dash-webinar-img{width:100%;height:120px;object-fit:cover;border-radius:8px;margin-bottom:10px}
.gl-dash-webinar h4{font-size:15px;font-weight:600;margin:0 0 4px;color:var(--text,#1e293b)}
.gl-dash-webinar-date{font-size:13px;font-weight:600;color:var(--primary,#1E40AF);margin:0 0 6px}

/* Action Cards (immer sichtbar) */
.gl-dash-action-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.gl-dash-action-card{display:flex;align-items:center;gap:12px;padding:16px;border-radius:12px;background:var(--bg-card,#fff);border:1px solid var(--border,#e2e8f0);text-decoration:none;color:var(--text,#1e293b);transition:all .15s}
.gl-dash-action-card:hover{border-color:var(--primary,#1E40AF);box-shadow:0 4px 16px rgba(0,0,0,.06);transform:translateY(-2px)}
.gl-dash-action-icon{width:42px;height:42px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0}
.gl-dash-action-card strong{display:block;font-size:14px;font-weight:600}
.gl-dash-action-card span{display:block;font-size:12px;color:var(--text-muted,#64748b);margin-top:1px}

/* Skeleton */
.skeleton-box{background:linear-gradient(90deg,var(--border,#e2e8f0) 25%,var(--bg-secondary,#f1f5f9) 50%,var(--border,#e2e8f0) 75%);background-size:200% 100%;animation:gl-shimmer 1.5s infinite;border-radius:14px}
@keyframes gl-shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}

/* ═══ DASHBOARD MOBILE ═══ */
@media(max-width:768px){
    .gl-dash-action-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
    .gl-welcome-inner{flex-direction:column}
    .gl-welcome-video{flex:none;width:100%}
    .gl-dash-grid{grid-template-columns:1fr}
    .gl-hero-body{flex-direction:column}
    .gl-hero-thumb{width:100%;height:auto;max-height:140px}
    .gl-hero-gradient{padding:18px}
    .gl-dash-action-grid{grid-template-columns:1fr}
    .gl-dash-action-card{padding:14px}
}

/* ═══ ONBOARDING V2 ═══ */
.gl-onboard-chat{max-width:640px;margin:0 auto;padding:20px;display:flex;flex-direction:column;height:calc(100vh - 80px)}
.gl-onboard-header{text-align:center;padding:20px 0}
.gl-onboard-header h1{font-size:28px;font-weight:800;margin:0 0 6px}
.gl-onboard-header p{color:var(--text-muted,#64748b);font-size:15px;margin:0}
.gl-onboard-msgs{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:10px;padding:12px 0}
.gl-onboard-chips{display:flex;flex-wrap:wrap;gap:8px;padding:12px 0}
.gl-onboard-chip{padding:10px 18px;border-radius:24px;border:2px solid var(--primary,#1E40AF);background:transparent;color:var(--primary,#1E40AF);font-size:14px;font-weight:600;cursor:pointer;transition:all .15s}
.gl-onboard-chip:hover{background:var(--primary,#1E40AF);color:#fff;transform:translateY(-2px)}
.gl-onboard-input-row{display:flex;gap:10px;padding:12px 0}
.gl-onboard-input-row input{flex:1;border:2px solid var(--border,#e2e8f0);border-radius:24px;padding:12px 18px;font-size:15px;outline:none;background:var(--bg,#fff);color:var(--text,#1e293b)}
.gl-onboard-input-row input:focus{border-color:var(--primary,#1E40AF)}
.gl-onboard-input-row button{width:44px;height:44px;border-radius:50%;border:none;background:var(--primary,#1E40AF);color:#fff;font-size:18px;cursor:pointer}
