@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

html { font-size: 16px; background-color: var(--bg-color); }

:root {
  --primary-color: #0b1a30; 
  --secondary-color: #1e3a5f;
  --accent-color: #005ce6;  
  --bg-color: #ffffff;     
  --sidebar-bg: #f8fafc;
  --panel-bg: #ffffff;
  --border-color: #e2e8f0; 
  --text-main: #0f172a;    
  --text-muted: #64748b;
  --input-bg: #ffffff;
  --hover-bg: #f1f5f9;
  --active-chat-bg: #e2e8f0;
}

[data-theme="dark"] {
  --primary-color: #0f172a; 
  --secondary-color: #1e3a5f; 
  --accent-color: #3b82f6; 
  --bg-color: #0f172a;     
  --sidebar-bg: #1e293b;
  --panel-bg: #1e293b;
  --border-color: #334155; 
  --text-main: #f8fafc;    
  --text-muted: #94a3b8;
  --input-bg: #334155;
  --hover-bg: #334155;
  --active-chat-bg: #475569;
}

*, *::before, *::after { box-sizing: border-box; }
body, input, button, textarea, select { font-family: 'Inter', sans-serif; }
body { background-color: var(--bg-color); color: var(--text-main); margin: 0; padding: 0; min-height: 100dvh; height: 100dvh; overflow: hidden; }

/* BARRA DE ROLAGEM MÁGICA (Acompanha o Light/Dark mode nativamente) */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
* { scrollbar-width: thin; scrollbar-color: var(--border-color) var(--bg-color); }

/* TELAS DE AUTH - PROTEGIDAS CONTRA DARK MODE */
#login-screen { 
  position: absolute; top: 0; left: 0; width: 100vw; height: 100dvh; z-index: 99999; overflow-y: auto; overflow-x: hidden; 
  --auth-primary: #0b1a30; --auth-accent: #005ce6; --auth-text: #0f172a; --auth-text-muted: #64748b; --auth-border: #e2e8f0;
  background: radial-gradient(circle at center, #f0f7ff 0%, #ffffff 80%);
  background-attachment: fixed; 
  color: var(--auth-text);
}
.auth-view { width: 100%; min-height: 100dvh; display: flex; animation: fadeIn 0.4s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.landing-layout { flex-direction: column; padding: 40px 6vw 0 6vw; max-width: 1400px; margin: 0 auto; position: relative; }
.landing-header { display: flex; justify-content: space-between; align-items: center; width: 100%; z-index: 10;}
.landing-logo { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 1.5rem; font-weight: 800; color: var(--auth-primary); line-height: 1; }
.landing-logo img { width: 45px; height: auto; }

/* HERO SECTION */
.landing-body { display: flex; flex-direction: row; justify-content: space-between; align-items: center; width: 100%; min-height: calc(100vh - 120px); gap: 40px; z-index: 10; padding-bottom: 40px;}
.landing-content { flex: 1; max-width: 600px; }
.landing-content h1 { font-size: 3.5rem; color: var(--auth-primary); margin: 0 0 20px 0; font-weight: 700; line-height: 1.15; letter-spacing: -0.5px;}
.text-highlight { color: var(--auth-accent); font-weight: 800; }
.landing-subtitle { font-size: 1.2rem; color: var(--auth-text-muted); line-height: 1.6; margin-bottom: 40px; }
.landing-actions { display: flex; gap: 15px; margin-bottom: 50px; }
.btn-primary-auth { padding: 16px 32px; background-color: var(--auth-accent); color: white; border: none; border-radius: 12px; font-weight: 600; font-size: 1.05rem; cursor: pointer; transition: 0.3s; box-shadow: 0 10px 25px rgba(0, 92, 230, 0.3); display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-primary-auth:hover { filter: brightness(1.15); transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0, 92, 230, 0.4); }
.btn-secondary-auth { padding: 16px 40px; background-color: transparent; color: var(--auth-primary); border: 1.5px solid var(--auth-primary); border-radius: 12px; font-weight: 600; font-size: 1.05rem; cursor: pointer; transition: 0.2s; }
.btn-secondary-auth:hover { background-color: var(--auth-primary); color: white; }
.landing-image-area { flex: 1; display: flex; justify-content: center; align-items: center; position: relative; height: 600px;}
.floating-ai-image { position: relative; z-index: 5; max-width: 90%; height: auto; max-height: 550px; object-fit: contain; animation: floatImage 6s ease-in-out infinite; }
@keyframes floatImage { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }
.orbital-glow { position: absolute; width: 450px; height: 450px; top: 50%; left: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(0, 92, 230, 0.15) 0%, transparent 60%); z-index: 1; }

/* NOVAS SEÇÕES DA LANDING PAGE */
.landing-features, .landing-demo { width: 100%; z-index: 10; margin-bottom: 80px; }
.section-title { font-size: 2.2rem; color: var(--auth-primary); text-align: center; font-weight: 800; margin-bottom: 15px; }
.section-subtitle { font-size: 1.1rem; color: var(--auth-text-muted); text-align: center; max-width: 700px; margin: 0 auto 50px auto; line-height: 1.6; }

.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card { background: white; border: 1px solid rgba(0,0,0,0.04); border-radius: 20px; padding: 35px 20px; text-align: center; box-shadow: 0 15px 35px rgba(0, 20, 60, 0.04); transition: 0.3s; }
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 25px 50px rgba(0, 92, 230, 0.1); border-color: rgba(0, 92, 230, 0.2); }
.feature-card i { font-size: 2.2rem; color: var(--auth-accent); margin-bottom: 18px; background: rgba(0, 92, 230, 0.05); width: 70px; height: 70px; line-height: 70px; border-radius: 50%; display: inline-block;}
.feature-card h3 { font-size: 1.2rem; color: var(--auth-primary); font-weight: 700; margin-bottom: 15px; }
.feature-card p { font-size: 0.9rem; color: var(--auth-text-muted); line-height: 1.6; margin: 0;}

.demo-wrapper { max-width: 1000px; margin: 0 auto; padding: 20px;}

.landing-cta-bottom { text-align: center; margin: 40px 0 80px 0; padding: 50px 30px; background: rgba(0, 92, 230, 0.03); border-radius: 24px; border: 1px solid rgba(0, 92, 230, 0.1); width: 100%; }
.landing-footer { text-align: center; padding: 20px 0; color: var(--auth-text-muted); font-size: 0.9rem; border-top: 1px solid rgba(0,0,0,0.05); width: 100%; margin-top: auto;}

/* --- SISTEMA DE LOGIN E CADASTRO --- */
.center-auth { flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
.auth-card { background-color: #ffffff; width: 100%; max-width: 450px; padding: 45px; border-radius: 24px; box-shadow: 0 20px 50px rgba(0, 20, 60, 0.08); border: 1px solid rgba(0, 0, 0, 0.03); text-align: center; position: relative; z-index: 10; }
.auth-header { margin-bottom: 30px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.login-logo.justify-center { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 1.4rem; font-weight: 800; color: var(--auth-primary); margin: 0 auto 10px auto; width: 100%; line-height: 1; }
.login-logo img { width: 40px; }
.auth-header h2 { color: var(--auth-text); font-size: 1.6rem; margin: 5px 0 0 0; font-weight: 700; }
.input-wrapper { position: relative; margin-bottom: 16px; width: 100%; }
.input-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--auth-text-muted); font-size: 1rem;}
.input-wrapper input { width: 100%; padding: 16px 45px; border: 1.5px solid var(--auth-border); border-radius: 12px; font-size: 0.95rem; background-color: #fafafa; color: var(--auth-text); font-weight: 500; outline: none; transition: 0.3s; }
.input-wrapper input:focus { border-color: var(--auth-accent); background-color: #ffffff; box-shadow: 0 0 0 4px rgba(0,92,230,0.1); }
.btn-toggle-senha { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: var(--auth-text-muted); cursor: pointer; font-size: 1.1rem; }
.btn-entrar { width: 100%; padding: 16px; background-color: var(--auth-accent); color: white; border: none; border-radius: 12px; font-weight: 600; font-size: 1.05rem; cursor: pointer; transition: 0.3s; margin-top: 10px; box-shadow: 0 8px 20px rgba(0, 92, 230, 0.25); }
.btn-entrar:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 12px 25px rgba(0, 92, 230, 0.35); }
.error-msg { color: #ef4444; font-size: 0.85rem; margin-top: 15px; display: none; background: #fef2f2; padding: 10px; border-radius: 8px; border: 1px solid #fecaca; }
.toggle-link { margin-top: 25px; font-size: 0.95rem; color: var(--auth-text-muted); }
.toggle-link a { color: var(--auth-accent); text-decoration: none; font-weight: 700; }
.btn-voltar-inicio { margin-top: 25px; padding: 12px 20px; background: white; color: var(--auth-text-muted); border: 1.5px solid var(--auth-border); border-radius: 20px; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: 0.2s; display: inline-flex; align-items: center; gap: 8px; }

/* --- ESTRUTURA PRINCIPAL --- */
#app-container { position: absolute; top: 0; left: 0; display: none; width: 100vw; height: 100dvh; background: var(--bg-color); flex-direction: row; z-index: 5; overflow: hidden; }
.sidebar-overlay { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100dvh; background: rgba(0,0,0,0.5); z-index: 90; opacity: 0; transition: opacity 0.3s; }
.sidebar-clean { width: 320px; background: var(--sidebar-bg); border-right: 1px solid var(--border-color); display: flex; flex-direction: column; transition: transform 0.3s ease, width 0.3s ease; z-index: 100; flex-shrink: 0; }
.sidebar-clean.collapsed { width: 0; transform: translateX(-320px); }
.sidebar-top { padding: 20px 15px 10px 15px; display: none; } 
.btn-novo-chat-clean { width: 100%; background: var(--panel-bg); border: 1px solid var(--border-color); padding: 12px 15px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; color: var(--text-main); display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: 0.2s; }
.btn-novo-chat-clean:hover { background: var(--hover-bg); border-color: var(--secondary-color); color: var(--secondary-color); }
.sidebar-scroll { flex: 1; overflow-y: auto; padding: 0 15px 20px 15px; position: relative;}

.history-category-label { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); margin: 20px 0 10px 5px; text-transform: uppercase; letter-spacing: 0.5px; }
.history-disclaimer { font-size: 0.75rem; color: #9ca3af; text-align: center; margin-top: 25px; padding: 10px; border-top: 1px solid var(--border-color); font-style: italic;}

.chat-item { position: relative; padding: 12px 15px; border-radius: 8px; margin-bottom: 6px; cursor: pointer; color: var(--text-main); font-size: 0.9rem; font-weight: 500; display: flex; flex-direction: column; gap: 4px; border: 1px solid transparent; transition: 0.2s; background: var(--panel-bg);}
.chat-item:hover { border-color: var(--secondary-color); transform: translateX(2px); }
.chat-item.active { background: rgba(30, 58, 95, 0.05); border-color: var(--secondary-color); }
.chat-item-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item-meta { font-size: 0.75rem; color: var(--text-muted); }
.btn-deletar-chat-lista { position: absolute; right: 10px; top: 12px; background: transparent; border: none; color: var(--text-muted); cursor: pointer; display: none; font-size: 0.9rem; transition: 0.2s; }
.chat-item:hover .btn-deletar-chat-lista { display: block; }
.btn-deletar-chat-lista:hover { color: #ef4444; }

.sidebar-footer { padding: 15px; border-top: 1px solid var(--border-color); position: relative; }
.user-profile-btn { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 10px; border-radius: 8px; transition: 0.2s; }
.user-profile-btn:hover { background: var(--hover-bg); }
.user-avatar { width: 32px; height: 32px; background: var(--primary-color); color: white; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 0.8rem; }
.user-name-text { flex: 1; font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-popup-menu { position: absolute; bottom: 70px; left: 15px; width: calc(100% - 30px); background: var(--panel-bg); border: 1px solid var(--border-color); border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); padding: 8px; display: none; z-index: 200; transform-origin: bottom left;}
.profile-popup-menu.show { display: block; animation: popUpMenu 0.2s ease forwards; }
@keyframes popUpMenu { from { opacity: 0; transform: translateY(10px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.profile-popup-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: var(--text-main); text-decoration: none; font-size: 0.9rem; font-weight: 500; border-radius: 6px; transition: 0.2s; cursor: pointer;}
.profile-popup-menu a:hover { background: var(--hover-bg); }

.main-chat-area { flex: 1; display: flex; flex-direction: column; position: relative; width: 100%; background: var(--bg-color); height: 100dvh; overflow: hidden; }
.header-clean { padding: 0 20px; display: flex; align-items: center; justify-content: space-between; height: 65px; border-bottom: 1px solid var(--border-color); background: var(--panel-bg); flex-shrink: 0; z-index: 10;}
.header-left { display: flex; align-items: center; gap: 15px; }
.btn-toggle-sidebar { background: transparent; border: none; font-size: 1.2rem; color: var(--text-muted); cursor: pointer; padding: 5px; }
.brand-clean { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--primary-color); line-height: 1; }
.brand-clean img { width: 25px; }
.btn-nova-conversa-header { display: flex; align-items: center; gap: 8px; background: var(--secondary-color); border: 1px solid var(--secondary-color); color: white; padding: 7px 18px; border-radius: 20px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: 0.3s; }
.btn-nova-conversa-header:hover { filter: brightness(1.2); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3); }

/* SISTEMA DE VIEWS (SETUP, PLAYER, SUMMARY) */
.app-view { display: none; flex: 1; flex-direction: column; overflow-y: auto; width: 100%; }
.app-view.active { display: flex; animation: slideFadeIn 0.3s ease forwards; }
@keyframes slideFadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

/* SETUP VIEW (Gerador) */
.setup-wrapper-main { max-width: 800px; width: 100%; margin: 40px auto; padding: 0 20px; }
.welcome-header-gen { text-align: center; margin-bottom: 40px; }
.welcome-header-gen h2 { font-size: 2rem; color: var(--text-main); margin-bottom: 10px; font-weight: 800;}
.welcome-header-gen p { color: var(--text-muted); font-size: 1.05rem; }

.config-panel { background: var(--panel-bg); border: 1px solid var(--border-color); border-radius: 16px; padding: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.02); display: flex; flex-direction: column; gap: 20px;}
.config-row { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-end; } 
.input-box-gen { display: flex; flex-direction: column; gap: 8px; flex: 1; justify-content: flex-end; }
.input-box-gen label { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px;}
.input-box-gen input, .input-box-gen textarea { width: 100%; padding: 14px; border: 1px solid var(--border-color); border-radius: 10px; background: var(--input-bg); color: var(--text-main); font-family: inherit; font-size: 0.95rem; outline: none; transition: 0.2s;}
.input-box-gen input:focus, .input-box-gen textarea:focus { border-color: var(--secondary-color); box-shadow: 0 0 0 3px rgba(30,58,95,0.1); }
.input-box-gen textarea { resize: vertical; min-height: 80px; }

/* SLIDER */
.slider-group { background: var(--bg-color); padding: 15px 20px; border-radius: 12px; border: 1px solid var(--border-color); }
.slider-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.slider-label { font-weight: 700; color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px;}
.range-value { background: rgba(30, 58, 95, 0.1); color: var(--secondary-color); font-weight: 800; font-size: 1.1rem; padding: 4px 12px; border-radius: 8px; }
.range-slider { width: 100%; accent-color: var(--secondary-color); cursor: pointer; height: 6px; background: var(--border-color); border-radius: 5px; outline: none; }

/* Dropzone c/ Cor Secundária */
.drop-zone-title { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 10px;}
.drop-zone { border: 2px dashed var(--border-color); border-radius: 12px; padding: 25px 20px; text-align: center; cursor: pointer; transition: 0.3s; background: var(--hover-bg); display: flex; flex-direction: column; align-items: center; gap: 10px;}
.drop-zone:hover, .drop-zone.dragover { border-color: var(--secondary-color); background: rgba(30, 58, 95, 0.05); }
.drop-zone i { font-size: 2rem; color: var(--secondary-color); }
.drop-zone p { margin: 0; color: var(--text-main); font-weight: 600; font-size: 1rem; }
.drop-zone span { color: var(--text-muted); font-size: 0.85rem; font-weight: 400; }

.file-preview-list { display: flex; flex-direction: column; gap: 10px; margin-top: 5px; }
.file-item { display: flex; align-items: center; justify-content: space-between; background: var(--bg-color); border: 1px solid var(--border-color); padding: 10px 15px; border-radius: 8px; }
.file-item-info { display: flex; align-items: center; gap: 10px; overflow: hidden; }
.file-item-info i { color: #ef4444; font-size: 1.2rem; flex-shrink: 0;}
.file-item-info span { font-size: 0.9rem; font-weight: 500; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-remove-file { background: transparent; border: none; color: var(--text-muted); cursor: pointer; padding: 5px; font-size: 1rem; transition: 0.2s;}
.btn-remove-file:hover { color: #ef4444; }

.btn-gerar-full { background: var(--secondary-color); width: 100%; margin-top: 15px; padding: 18px; font-size: 1.1rem; box-shadow: 0 10px 25px rgba(30, 58, 95, 0.3); color: white; border: none; border-radius: 12px; font-weight: 600; cursor: pointer; transition: 0.3s;}
.btn-gerar-full:hover { filter: brightness(1.2); box-shadow: 0 15px 30px rgba(30, 58, 95, 0.4); }
.geracao-loader { text-align: center; color: var(--secondary-color); font-weight: 600; font-size: 0.95rem; margin-top: 15px; }


/* PLAYER VIEW & ANOTAÇÕES (LAYOUT FLEX) */
.player-layout-container { display: flex; gap: 20px; max-width: 1200px; width: 100%; margin: 0 auto; align-items: flex-start; justify-content: center;}
.player-wrapper { max-width: 850px; width: 100%; margin: 20px 0 150px 0; display: flex; flex-direction: column; gap: 20px; transition: 0.3s; flex: 1;}

.notes-panel { width: 350px; background: var(--panel-bg); border: 1px solid var(--border-color); border-radius: 12px; margin-top: 20px; display: flex; flex-direction: column; height: 500px; position: sticky; top: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); animation: fadeIn 0.3s ease;}
.notes-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--border-color); font-weight: 700; color: var(--secondary-color); }
.notes-header button { background: transparent; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.1rem; }
.notes-header button:hover { color: #ef4444; }
.notes-panel textarea { flex: 1; border: none; padding: 20px; background: transparent; color: var(--text-main); font-family: inherit; font-size: 0.95rem; resize: none; outline: none; line-height: 1.6;}

.player-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 25px; background: var(--panel-bg); border: 1px solid var(--border-color); border-radius: 12px; flex-wrap: wrap; gap: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.02);}
.dots-container { position: relative; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.dots-visible { display: flex; gap: 8px; }
.dots-indicator { display: flex; align-items: center; justify-content: center; color: var(--text-muted); padding: 0 5px; transition: 0.3s; font-size: 0.9rem; }
.dots-dropdown-wrapper { position: absolute; top: 100%; left: 0; padding-top: 15px; z-index: 100; opacity: 0; visibility: hidden; transition: 0.2s; pointer-events: none; }
.dots-container:hover .dots-dropdown-wrapper { opacity: 1; visibility: visible; pointer-events: auto; }
.dots-dropdown-wrapper.show { opacity: 1; visibility: visible; pointer-events: auto; }
.dots-dropdown { background: var(--panel-bg); border: 1px solid var(--border-color); padding: 15px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; max-height: 250px; overflow-y: auto; }
.q-dot { width: 34px; height: 34px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 0.85rem; font-weight: 600; background: var(--hover-bg); color: var(--text-muted); cursor: pointer; border: 2px solid transparent; flex-shrink: 0; transition: 0.2s;}
.q-dot.active { border-color: var(--secondary-color); color: var(--secondary-color); font-weight: 800; background: rgba(30,58,95,0.05); transform: scale(1.1);}
.q-dot.correct { background: #10b981; color: white; border-color: #10b981; }
.q-dot.wrong { background: #ef4444; color: white; border-color: #ef4444; }

.player-tools { display: flex; align-items: center; gap: 15px; }
.tool-btn { background: transparent; border: none; color: var(--text-muted); font-size: 1.1rem; cursor: pointer; padding: 8px; border-radius: 50%; transition: 0.2s; }
.tool-btn:hover { background: var(--hover-bg); color: var(--secondary-color); }
.timer-badge { display: flex; align-items: center; gap: 8px; background: var(--bg-color); border: 1px solid var(--border-color); padding: 8px 14px; border-radius: 20px; font-weight: 600; font-size: 0.9rem; color: var(--text-main); cursor: pointer; transition: 0.2s;}
.timer-badge:hover { background: var(--hover-bg); border-color: var(--secondary-color); }
.toggle-simulado { display: inline-flex; align-items: center; cursor: pointer; margin: 0; }
.toggle-simulado input { display: none; }
.simulado-btn-inner { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); background: var(--bg-color); border: 1px solid var(--border-color); padding: 8px 14px; border-radius: 20px; transition: 0.2s; }
.toggle-simulado input:checked + .simulado-btn-inner { background: rgba(30, 58, 95, 0.1); color: var(--secondary-color); border-color: rgba(30, 58, 95, 0.3); }
.btn-finalizar-topo { background: transparent; color: #ef4444; border: 1px solid #ef4444; padding: 6px 14px; border-radius: 20px; font-weight: 600; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 8px; font-size: 0.85rem;}
.btn-finalizar-topo:hover { background: rgba(239, 68, 68, 0.1); }

.pause-overlay-container { position: relative; width: 100%; border-radius: 12px; }
.pause-overlay { display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 50; background: rgba(255,255,255,0.3); backdrop-filter: blur(4px); flex-direction: column; justify-content: center; align-items: center; cursor: pointer; border-radius: 12px; }
.pause-overlay i { font-size: 4rem; color: var(--secondary-color); margin-bottom: 15px; }
.question-card { background: var(--bg-color); border-radius: 12px; transition: 0.3s; }
.question-card.paused-blur { filter: blur(8px); pointer-events: none; user-select: none; opacity: 0.7; }

.tags-container { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.tag { background: var(--secondary-color); color: white; padding: 6px 14px; border-radius: 8px; font-size: 0.85rem; font-weight: 700; border: none; text-transform: uppercase;}
.enunciado-box { background: var(--panel-bg); padding: 25px 30px; border-radius: 12px; border: 1px solid var(--border-color); margin-bottom: 25px; font-size: 1.05rem; line-height: 1.7; color: var(--text-main); }
.alternativas-list { display: flex; flex-direction: column; gap: 12px; }

/* NOVA ESTRUTURA PARA AS ALTERNATIVAS + GABARITO INLINE */
.alternativa-wrapper { display: flex; flex-direction: column; width: 100%; }
.alternativa-item { display: flex; align-items: stretch; background: var(--panel-bg); border: 2px solid var(--border-color); border-radius: 12px; cursor: pointer; transition: 0.2s; overflow: hidden; position: relative; z-index: 2;}
.alternativa-item:hover { border-color: var(--secondary-color); }
.alt-letra { display: flex; justify-content: center; align-items: center; width: 45px; background: var(--hover-bg); font-weight: 700; color: var(--text-muted); flex-shrink: 0; border-right: 1px solid var(--border-color); }
.alt-texto { padding: 15px; flex: 1; font-size: 0.95rem; color: var(--text-main); display: flex; align-items: center; line-height: 1.5; }

/* GABARITO (RATIONALE) TIPO ACORDEÃO (DROPDOWN SUAVE) */
.alt-rationale {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 16px;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.6;
    border-left: 4px solid var(--border-color);
    background: var(--hover-bg);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    margin-top: -10px; 
    margin-bottom: 10px; 
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease, margin-bottom 0.3s ease;
    z-index: 1;
    position: relative;
}

.alternativa-wrapper.show-rationale .alt-rationale {
    max-height: 800px; 
    padding: 20px 16px 16px 16px;
    opacity: 1;
    margin-top: -4px; 
    margin-bottom: 4px;
}

.alternativa-wrapper.show-rationale .alternativa-item {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Ícone da setinha */
.alt-expand-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    color: var(--text-muted);
    font-size: 1rem;
    transition: transform 0.3s ease;
    border-left: 1px solid var(--border-color);
}

.alternativa-wrapper.show-rationale .alt-expand-icon {
    transform: rotate(180deg);
}

/* Efeitos do Risco (Strikethrough) */
.btn-riscar { display: flex; justify-content: center; align-items: center; width: 40px; background: transparent; border: none; border-left: 1px solid var(--border-color); color: var(--text-muted); cursor: pointer; transition: 0.2s; }
.btn-riscar:hover { color: #ef4444; background: rgba(239, 68, 68, 0.05); }
.alternativa-item.riscada .alt-texto { text-decoration: line-through; opacity: 0.5; }
.alternativa-item.riscada .alt-letra { opacity: 0.5; }

.alternativa-item.selected { border-color: var(--secondary-color); background: rgba(30, 58, 95, 0.05); }
.alternativa-item.selected .alt-letra { background: var(--secondary-color); color: white; border-color: var(--secondary-color); }
.alternativa-item.correct-answer { border-color: #10b981; background: rgba(16, 185, 129, 0.08); }
.alternativa-item.correct-answer .alt-letra { background: #10b981; color: white; border-color: #10b981; }
.alternativa-item.correct-answer .alt-texto { font-weight: 600; color: #047857; }
.alternativa-item.wrong-answer { border-color: #ef4444; background: rgba(239, 68, 68, 0.05); }
.alternativa-item.wrong-answer .alt-letra { background: #ef4444; color: white; border-color: #ef4444; }
.alternativa-item.disabled { pointer-events: none; }

.nav-buttons-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 35px; padding-top: 20px; flex-wrap: nowrap; gap: 10px;}
.btn-nav { padding: 12px 25px; border-radius: 10px; font-weight: 600; font-size: 0.95rem; cursor: pointer; border: none; transition: 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px;}
.btn-nav.secundary { background: var(--hover-bg); color: var(--text-muted); border: 1px solid var(--border-color); }
.btn-nav.primary { background: var(--panel-bg); color: var(--secondary-color); border: 2px solid var(--secondary-color); }
.btn-nav.primary:hover { background: var(--secondary-color); color: white; }
.btn-nav.finish-btn { background: #ef4444; color: white; border-color: #ef4444; }
.btn-nav.finish-btn:hover { filter: brightness(1.1); }
.center-actions { display: flex; gap: 10px; align-items: center; flex: 1; justify-content: center;}
.btn-responder { background: #10b981; color: white; padding: 12px 25px; border-radius: 10px; font-weight: 600; font-size: 0.95rem; cursor: pointer; border: none; transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-responder:hover { filter: brightness(1.1); }

/* MODAIS GERAIS (CONTA, SENHA, COMPARTILHAMENTO) */
.aleixo-modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100dvh; background: rgba(0, 0, 0, 0.4); z-index: 9999; backdrop-filter: blur(3px); }

.aleixo-modal-box { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--panel-bg); border: 1px solid var(--border-color); border-radius: 20px; padding: 30px; width: 90%; max-width: 420px; box-shadow: 0 20px 40px rgba(0,0,0,0.15); z-index: 10000; text-align: center; animation: popUpModal 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.modal-box { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--panel-bg); border: 1px solid var(--border-color); border-radius: 16px; padding: 30px; width: 90%; max-width: 450px; z-index: 10000; display: none; box-shadow: 0 15px 40px rgba(0,0,0,0.2); text-align: center; animation: popUpModal 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
@keyframes popUpModal { 
    0% { opacity: 0; transform: translate(-50%, calc(-50% + 20px)) scale(0.95); } 
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 
}

.aleixo-modal-box h3 { margin: 0 0 25px 0; font-size: 1.25rem; font-weight: 700; color: var(--text-main); }
.aleixo-modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 25px; }
.aleixo-modal-footer button { padding: 12px 20px; border-radius: 10px; font-size: 0.9rem; font-weight: 600; cursor: pointer; border: none; transition: 0.2s; }
.btn-modal-cancel { background: transparent; color: var(--text-muted); border: 1px solid var(--border-color) !important; }
.btn-modal-cancel:hover { background: var(--hover-bg); color: var(--text-main); }
.btn-modal-save { background: var(--accent-color); color: white; }
.btn-modal-save:hover { filter: brightness(1.1); }
.aleixo-modal-box .input-wrapper input { background-color: var(--input-bg); color: var(--text-main); border: 1.5px solid var(--border-color); }
.aleixo-modal-box .input-wrapper input:focus { border-color: var(--accent-color); background-color: var(--bg-color); }
.aleixo-modal-box .input-wrapper input:disabled { background-color: var(--hover-bg); opacity: 0.7; cursor: not-allowed; }
.aleixo-modal-box .input-icon, .aleixo-modal-box .btn-toggle-senha { color: var(--text-muted); }

.chave-tabs { display: flex; gap: 10px; margin-bottom: 20px; background: var(--hover-bg); padding: 5px; border-radius: 12px; }
.chave-tab { flex: 1; padding: 10px; border: none; background: transparent; color: var(--text-muted); font-weight: 600; border-radius: 8px; cursor: pointer; transition: 0.2s; font-size: 0.85rem;}
.chave-tab.active { background: var(--panel-bg); color: var(--text-main); box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.aba-chave { animation: fadeIn 0.3s ease forwards; }

.modal-logout-box { max-width: 500px; text-align: left; }
.logout-header-title { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; font-weight: 800; color: #ef4444; margin-bottom: 8px; }
.logout-subtitle { font-size: 0.95rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 25px; }
.logout-options-container { display: flex; flex-direction: column; gap: 15px; }
.logout-option-card { display: flex; align-items: center; gap: 15px; padding: 18px; border: 2px solid var(--border-color); border-radius: 14px; cursor: pointer; transition: 0.2s; background: var(--panel-bg); }
.logout-option-card:hover { border-color: var(--accent-color); background: var(--hover-bg); }
.logout-icon { width: 45px; height: 45px; border-radius: 50%; background: var(--hover-bg); display: flex; justify-content: center; align-items: center; font-size: 1.2rem; color: var(--text-main); flex-shrink: 0; }
.logout-option-card:hover .logout-icon { background: rgba(0, 92, 230, 0.1); color: var(--accent-color); }
.logout-text { display: flex; flex-direction: column; gap: 4px; }
.logout-text strong { font-size: 1.05rem; color: var(--text-main); }
.logout-text span { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }

.modal-box h3 { margin: 0 0 15px 0; font-size: 1.3rem; color: var(--text-main); display: flex; align-items: center; justify-content: center; gap: 10px;}
.modal-box p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 25px; line-height: 1.5; }
.share-link-wrapper { display: flex; gap: 10px; align-items: center; }
.share-link-wrapper input { flex: 1; padding: 12px 15px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--input-bg); color: var(--text-main); font-size: 0.9rem; outline: none; }
.share-link-wrapper button { background: var(--secondary-color); color: white; border: none; padding: 12px 20px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 8px; }
.share-link-wrapper button:hover { filter: brightness(1.15); }
.btn-modal-close { background: transparent; border: 1px solid var(--border-color); color: var(--text-muted); padding: 10px 25px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.btn-modal-close:hover { background: var(--hover-bg); color: var(--text-main); }

/* SUMMARY & IMPORT VIEWS */
#view-import, #view-summary { flex-direction: column; justify-content: center; align-items: center; padding: 20px; }
#view-import.active, #view-summary.active { display: flex; }

.summary-card { background: var(--panel-bg); border: 1px solid var(--border-color); border-radius: 16px; padding: 40px; max-width: 800px; width: 100%; box-shadow: 0 10px 30px rgba(0,0,0,0.05); text-align: center; margin: 0 auto; }
.summary-title-wrapper { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 10px; }
.summary-title-wrapper i { color: #f97316; font-size: 1.8rem; }
.summary-title { font-size: 1.6rem; font-weight: 800; color: var(--text-main); margin: 0; }
.summary-subtitle { color: var(--text-muted); font-size: 1rem; margin-bottom: 35px; }
.summary-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 35px; }
.summary-stat-box { background: var(--bg-color); border: 1px solid var(--border-color); border-radius: 12px; padding: 20px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.summary-stat-box i { font-size: 1.2rem; margin-bottom: 12px; color: var(--text-muted); }
.summary-stat-box.acerto i { color: #ef4444; }
.summary-stat-box.corretas i { color: #10b981; }
.summary-stat-box.incorrect i { color: #f97316; }
.summary-stat-value { font-size: 1.8rem; font-weight: 800; color: var(--text-main); line-height: 1; margin-bottom: 6px; }
.summary-stat-label { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); letter-spacing: 0.5px; text-transform: uppercase; }
.summary-footer-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--text-muted); font-weight: 600; margin-bottom: 8px; padding: 0 4px; }
.summary-progress-bg { height: 6px; background: var(--border-color); border-radius: 3px; width: 100%; overflow: hidden; margin-bottom: 40px; }
.summary-progress-fill { height: 100%; background: #ef4444; width: 0%; transition: width 0.5s ease; }
.summary-actions { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.btn-summary-home { padding: 14px 40px; background: var(--panel-bg); color: var(--secondary-color); border: 2px solid var(--secondary-color); border-radius: 10px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: 0.2s; }
.btn-summary-home:hover { background: rgba(30, 58, 95, 0.05); }
.btn-summary-review { padding: 14px 40px; background: var(--secondary-color); color: white; border: none; border-radius: 10px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: 0.2s; box-shadow: 0 4px 12px rgba(30,58,95,0.2); }
.btn-summary-review:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* HIGHLIGHTER TOOLBAR */
#highlight-toolbar { position: fixed; z-index: 100000; background: var(--panel-bg); border: 1px solid var(--border-color); box-shadow: 0 8px 25px rgba(0,0,0,0.15); border-radius: 12px; padding: 8px 12px; display: flex; gap: 12px; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.2s, transform 0.2s; transform: translateX(-50%) translateY(10px) scale(0.95); pointer-events: none; }
#highlight-toolbar.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0) scale(1); pointer-events: auto; }
.hl-color-btn { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; transition: 0.2s; padding: 0; }
.hl-color-btn:hover { transform: scale(1.15); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.hl-color-yellow { background: #fef08a; border-color: #eab308; }
.hl-color-green { background: #bbf7d0; border-color: #22c55e; }
.hl-color-blue { background: #bfdbfe; border-color: #3b82f6; }
.hl-color-pink { background: #fbcfe8; border-color: #ec4899; }
.hl-action-btn { background: transparent; color: var(--text-main); border: none; font-size: 1.1rem; cursor: pointer; padding: 6px; border-radius: 8px; transition: 0.2s; display: flex; align-items: center; justify-content: center; }
.hl-action-btn:hover { background: var(--hover-bg); }
.hl-divider { width: 1px; height: 24px; background: var(--border-color); }
mark.aleixo-highlight { border-radius: 4px; padding: 2px 4px; cursor: pointer; transition: filter 0.2s, box-shadow 0.2s; color: #0f172a !important; font-weight: 500; }
mark.aleixo-highlight:hover { filter: brightness(0.92); box-shadow: 0 0 5px rgba(0,0,0,0.1); }

/* CHAT CONTEXTUAL */
.fab-chat {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: auto;
    height: 48px;
    padding: 0 20px 0 12px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 92, 230, 0.35);
    z-index: 999;
    border: 1px solid rgba(255,255,255,0.15);
    transition: 0.3s ease;
    letter-spacing: 0.3px;
}
.fab-chat img { 
    width: 28px; 
    height: 28px; 
    object-fit: cover; 
    border-radius: 50%; 
    background: #ffffff; 
    padding: 3px; 
    box-shadow: 0 2px 6px rgba(0,0,0,0.15); 
}
.fab-chat:hover { transform: scale(1.05) translateY(-4px); box-shadow: 0 12px 30px rgba(0, 92, 230, 0.45); }

.chat-modal { position: fixed; bottom: 90px; right: 30px; width: 380px; height: 550px; max-height: calc(100vh - 120px); background: var(--bg-color); border: 1px solid var(--border-color); border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); display: flex; flex-direction: column; z-index: 1000; opacity: 0; visibility: hidden; transform: translateY(20px) scale(0.95); transition: 0.3s ease; overflow: hidden; }
.chat-modal.active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.chat-header { background: linear-gradient(135deg, #1e3a5f, #0b1a30); color: white; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.chat-header-info { display: flex; align-items: center; gap: 12px; }
.chat-header-info img { width: 36px; height: 36px; background: white; border-radius: 50%; padding: 2px; }
.chat-title { font-weight: 700; font-size: 1.05rem; margin:0;}
.chat-badge { background: rgba(255,255,255,0.2); font-size: 0.7rem; padding: 2px 8px; border-radius: 12px; font-weight: 600;}
.btn-close-chat { background: rgba(255,255,255,0.2); border: none; color: white; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: 0.2s;}
.chat-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 15px; }
.chat-bubble { padding: 12px 15px; border-radius: 16px; font-size: 0.9rem; line-height: 1.4; word-wrap: break-word; }
.chat-bubble.user { max-width: 85%; background: var(--hover-bg); color: var(--text-main); align-self: flex-end; border-bottom-right-radius: 4px; border: 1px solid var(--border-color); }
.chat-bubble.ai { max-width: 95%; background: rgba(30, 58, 95, 0.05); color: var(--text-main); align-self: flex-start; border-bottom-left-radius: 4px; border: 1px solid rgba(30, 58, 95, 0.2); }
.chat-footer { padding: 15px; border-top: 1px solid var(--border-color); background: var(--panel-bg); display: flex; gap: 10px; align-items: center;}
.chat-input { flex: 1; padding: 12px 15px; border: 1px solid var(--border-color); border-radius: 20px; background: var(--bg-color); color: var(--text-main); font-size: 0.95rem; outline: none; }
.btn-send-chat { background: var(--secondary-color); color: white; border: none; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; }

/* GERAIS E LOADER */
#global-loader { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--bg-color); z-index: 9999999; display: flex; justify-content: center; align-items: center; transition: opacity 0.5s ease, visibility 0.5s; }
.loader-content { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 25px; }
.loader-logo { width: 100px; height: auto; animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.loader-text-container { position: relative; display: inline-block; }
.loader-text-ghost { font-size: 4rem; font-weight: 800; margin: 0; visibility: hidden; white-space: nowrap; padding-right: 4px; }
.loader-text { position: absolute; top: 0; left: 0; font-size: 4rem; font-weight: 800; color: var(--primary-color); margin: 0; white-space: nowrap; overflow: hidden; border-right: 4px solid var(--secondary-color); width: 0; animation: typing 1.5s steps(11, end) 0.5s forwards, blink-caret 0.5s step-end 4 forwards; }

@keyframes typing { from { width: 0; } to { width: 100%; } }
@keyframes popIn { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes blink-caret { from, to { border-color: transparent; } 50% { border-color: var(--secondary-color); } }

/* RESPONSIVO MOBILE E LAYOUT DOS PAINÉIS */
@media (max-width: 992px) {
  .landing-layout { padding: 30px 20px 0 20px; }
  .landing-body { flex-direction: column-reverse; text-align: center; gap: 20px; min-height: auto; }
  .landing-content h1 { font-size: 2.5rem; }
  .landing-actions { flex-direction: column; width: 100%; }
  .btn-primary-auth, .btn-secondary-auth { width: 100%; justify-content: center; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-wrapper { padding: 20px; }
  
  .sidebar-clean { position: fixed; left: 0; top: 0; height: 100dvh; width: 85vw; max-width: 320px; transform: translateX(-100%); z-index: 1001; border-right: none; box-shadow: 5px 0 15px rgba(0,0,0,0.1); }
  .sidebar-clean.open { transform: translateX(0); }
  .sidebar-overlay.show { display: block; opacity: 1; }
  .header-actions { display: none !important; }
  .sidebar-top { display: block; } 
  .config-row { flex-direction: row; gap: 15px; flex-wrap: wrap; align-items: flex-end;}
  .input-box-gen[style] { max-width: 100% !important; flex: 1; min-width: 120px;}
  
  .player-layout-container { flex-direction: column; gap: 0; }
  .notes-panel { width: 100%; position: static; height: 350px; margin-bottom: 80px; }
}

@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .hide-mobile-text { display: none; }
  
  #view-player { padding: 15px 15px 100px 15px !important; box-sizing: border-box; width: 100%; }
  .player-wrapper { width: 100% !important; max-width: 100%; margin: 0 auto 20px auto !important; box-sizing: border-box; gap: 15px; }
  
  /* CORREÇÃO DA BARRA SUPERIOR MOBILE - LINHA ÚNICA */
  .player-header { 
      padding: 8px 10px; 
      gap: 6px; 
      justify-content: space-between; 
      flex-wrap: nowrap !important; /* Força tudo na mesma linha */
      width: 100%; 
      box-sizing: border-box; 
      border-radius: 12px; 
      overflow: visible !important; /* PERMITE O MENU VAZAR PRA FORA DA BARRA */
  }
  
  .dots-container { width: auto; justify-content: flex-start; flex-shrink: 0; gap: 4px; }
  .player-tools { width: auto; flex-wrap: nowrap; justify-content: flex-end; gap: 4px; flex-shrink: 0; }
  .tool-btn { padding: 5px; font-size: 1.05rem; }
  .timer-badge { padding: 5px 8px; font-size: 0.85rem; }
  .simulado-btn-inner { padding: 5px 8px; }
  .btn-finalizar-topo { padding: 5px 8px; font-size: 0.85rem; }
  .dots-visible .q-dot:not(.active) { display: none; }

  .pause-overlay-container { width: 100%; box-sizing: border-box; }
  .question-card { width: 100%; box-sizing: border-box; }
  
  .loader-content { flex-direction: column !important; justify-content: center; align-items: center; gap: 15px; width: 100%; }
  .loader-text-container { display: inline-block; width: auto; text-align: left; }
  .loader-text-ghost, .loader-text { font-size: 2.8rem; margin: 0; text-align: left; border-right: 3px solid var(--secondary-color); }

  .features-grid { grid-template-columns: 1fr; }

  .nav-buttons-bottom { flex-direction: row; flex-wrap: nowrap; gap: 4px; }
  .btn-nav, .btn-ia-analise, .btn-responder { flex: 1; padding: 10px 8px; justify-content: center; font-size: 0.9rem;}
  .center-actions { flex: 2; gap: 4px; }
  
  .fab-chat { bottom: 15px; right: 15px; height: 44px; padding: 0 18px 0 10px; font-size: 0.9rem; }
  .fab-chat img { width: 26px; height: 26px; padding: 2px; }
  .chat-modal { bottom: 0; right: 0; width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; transform: translateY(100%); }
  
  .summary-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .summary-actions { flex-direction: column; }
  .btn-summary-home, .btn-summary-review, .btn-importar-sessao { width: 100%; font-size: 1rem; padding: 14px;}
  .modal-box { width: 95%; padding: 20px;}
  .aleixo-modal-box { padding: 20px; }
}

/* --- CLASSE PARA IMPRESSÃO NATIVA MOBILE/DESKTOP --- */
@media print {
    body, html { 
        background: white !important; 
        height: auto !important; 
        overflow: visible !important; 
        min-height: auto !important; 
    }
    #app-container, #login-screen, #aleixo-modal-overlay, #modal-overlay, 
    .aleixo-modal-box, .modal-box, .fab-chat, .chat-modal, 
    #highlight-toolbar, #global-loader { 
        display: none !important; 
    }
    #print-section { 
        display: block !important; 
        width: 100%; 
        background: white; 
        padding: 0; 
        margin: 0; 
    }
}
@media screen {
    #print-section { 
        display: none !important; 
    }
}