* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
body { background-color: #F4F4F6; color: #0A0A0C; display: flex; min-height: 100vh; }

/* Login e Cadastro */
.login-container, .register-container { margin: auto; display: flex; width: 100%; max-width: 1000px; min-height: 600px; background-color: #ffffff; border-radius: 12px; overflow: hidden; border: 1px solid #e4e4e7; box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
.register-container { min-height: 650px; }
.brand-side { flex: 1.2; background-color: #0A0A0C; color: #FFFFFF; padding: 60px; display: flex; flex-direction: column; justify-content: center; }
.register-container .brand-side { flex: 1; }
.brand-side h1 { font-size: 38px; font-weight: 700; letter-spacing: 3px; margin-bottom: 20px; }
.brand-side p { font-size: 16px; line-height: 1.6; color: #a1a1aa; margin-bottom: 30px; }
.brand-quote, .rules-brief { border-top: 1px solid #27272a; padding-top: 20px; margin-top: 10px; }
.brand-quote p { font-size: 14px; color: #d4d4d8; margin-bottom: 0; font-style: italic; }
.rules-brief { font-size: 14px; color: #71717a; }
.rules-brief ul { list-style: none; margin-top: 10px; }
.rules-brief li { margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.form-side { flex: 1; padding: 50px 60px; display: flex; flex-direction: column; justify-content: center; overflow-y: auto; }
.register-container .form-side { flex: 1.2; padding: 50px 60px; }
.form-side h2 { font-size: 24px; margin-bottom: 10px; font-weight: 600; }
.form-side p { color: #71717a; font-size: 14px; margin-bottom: 25px; }

/* Formulários */
.input-group { margin-bottom: 15px; }
.input-row { display: flex; gap: 15px; flex-wrap: wrap; }
.input-row .input-group { flex: 1; min-width: 200px; }
.input-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #3f3f46; }
.input-group input, .input-group select, .input-group textarea { width: 100%; padding: 10px 14px; border: 1px solid #d4d4d8; border-radius: 6px; background-color: #fafafa; font-size: 14px; transition: border 0.2s; font-family: inherit; }
.input-group input:focus, .input-group select:focus, .input-group textarea:focus { outline: none; border-color: #FFC100; background-color: #ffffff; }
.checkbox-group { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; margin-bottom: 20px; }
.checkbox-group input { margin-top: 3px; cursor: pointer; accent-color: #FFC100; width: auto; }
.checkbox-group label { font-size: 13px; color: #52525b; line-height: 1.5; cursor: pointer; }
.btn-login, .btn-register, .btn-submit, .btn-action, .btn-enter-room, .btn-aprovar { background-color: #FFC100; color: #0A0A0C; padding: 12px 18px; border: none; border-radius: 6px; font-size: 14px; font-weight: 700; cursor: pointer; text-align: center; display: inline-block; transition: background 0.2s; text-decoration: none; width: 100%; }
.btn-login:hover, .btn-register:hover, .btn-submit:hover, .btn-action:hover, .btn-enter-room:hover, .btn-aprovar:hover { background-color: #e6ad00; }
.btn-secondary { background-color: #18181b; color: #ffffff; padding: 10px 16px; border: none; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; transition: opacity 0.2s; }
.btn-secondary:hover { opacity: 0.9; }
.btn-outline { background-color: #ffffff; color: #0A0A0C; padding: 8px 14px; border: 1px solid #d4d4d8; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; }
.btn-outline:hover { border-color: #FFC100; background-color: #fffbeb; }
.footer-link { text-align: center; margin-top: 20px; font-size: 13px; color: #71717a; }
.footer-link a { color: #0A0A0C; text-decoration: none; font-weight: 600; transition: color 0.2s; }
.footer-link a:hover { color: #FFC100; }

/* Dashboard, Início e Demais Telas - Layout com Sidebar */
.sidebar { width: 260px; flex-shrink: 0; background-color: #ffffff; border-right: 1px solid #e4e4e7; padding: 30px 20px; display: flex; flex-direction: column; }
.logo { font-size: 26px; font-weight: 700; letter-spacing: 2px; margin-bottom: 30px; color: #0A0A0C; text-align: center; }
.nav-link, .sidebar-item { padding: 12px 15px; margin-bottom: 8px; color: #52525b; text-decoration: none; border-radius: 6px; font-weight: 500; transition: all 0.2s; display: block; border-left: 3px solid transparent; font-size: 14px; }
.nav-link:hover, .nav-link.active, .sidebar-item:hover, .sidebar-item.active { background-color: #F4F4F6; color: #0A0A0C; border-left-color: #FFC100; font-weight: 600; }
.main-content { flex: 1; padding: 35px 50px; overflow-y: auto; display: flex; flex-direction: column; min-width: 0; }

/* Cabeçalhos */
.header-title, .header, .profile-header { margin-bottom: 25px; border-bottom: 1px solid #e4e4e7; padding-bottom: 20px; }
.profile-header { background-color: #ffffff; padding: 25px 30px; border-radius: 12px; border: 1px solid #e4e4e7; display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 20px; }
.header-title h1, .header h1, .user-info h2 { font-size: 26px; color: #0A0A0C; margin-bottom: 8px; }
.header-title p, .header p, .user-info p { color: #71717a; font-size: 14px; }
.level-badge { background-color: #FFC100; color: #0A0A0C; padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; display: inline-block; }
.stats { display: flex; gap: 25px; text-align: center; flex-wrap: wrap; }
.stat-item h3 { font-size: 24px; color: #0A0A0C; background: #FFC100; padding: 4px 12px; border-radius: 6px; display: inline-block; }
.stat-item p { font-size: 11px; text-transform: uppercase; color: #71717a; letter-spacing: 1px; margin-top: 6px; font-weight: 600; }
.section-title { font-size: 18px; margin-bottom: 16px; color: #0A0A0C; font-weight: 700; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Grid de Debates, Grupos e Artigos */
.debates-grid, .articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-bottom: 30px; }
.debate-card, .article-card, .panel-card { background-color: #ffffff; border: 1px solid #e4e4e7; border-radius: 10px; padding: 24px; transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; }
.debate-card:hover, .article-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.debate-category, .article-tag { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #0A0A0C; margin-bottom: 10px; display: inline-block; background-color: #FFC100; padding: 4px 8px; border-radius: 4px; font-weight: 700; align-self: flex-start; }
.debate-card h3, .article-title { font-size: 18px; margin-bottom: 10px; line-height: 1.4; color: #0A0A0C; font-weight: 600; }
.debate-card p, .article-desc { font-size: 14px; color: #52525b; margin-bottom: 18px; line-height: 1.5; flex: 1; }

/* Alertas e Mensagens */
.alert-box { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; font-weight: 500; border: 1px solid transparent; }
.alert-success { background-color: #dcfce7; color: #166534; border-color: #86efac; }
.alert-error { background-color: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.alert-info { background-color: #fef9c3; color: #854d0e; border-color: #fde047; }

/* Tabelas e Registros Estruturados de Argumentos (Seção 3.3) */
.table-responsive { width: 100%; overflow-x: auto; background: #ffffff; border: 1px solid #e4e4e7; border-radius: 10px; margin-bottom: 25px; }
.mov-table { width: 100%; border-collapse: collapse; font-size: 13.5px; text-align: left; }
.mov-table th { background-color: #0A0A0C; color: #ffffff; padding: 12px 15px; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.mov-table td { padding: 14px 15px; border-bottom: 1px solid #e4e4e7; vertical-align: top; color: #27272a; line-height: 1.5; }
.mov-table tr:last-child td { border-bottom: none; }
.mov-table tr:hover td { background-color: #fafafa; }

.badge { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.badge-yellow { background-color: #FFC100; color: #0A0A0C; }
.badge-dark { background-color: #18181b; color: #ffffff; }
.badge-green { background-color: #dcfce7; color: #166534; }
.badge-blue { background-color: #dbeafe; color: #1e40af; }
.badge-gray { background-color: #f4f4f5; color: #52525b; border: 1px solid #d4d4d8; }

/* Chat e Consenso */
.chat-area { flex: 1; padding: 25px; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; background: #ffffff; border: 1px solid #e4e4e7; border-radius: 10px; margin-bottom: 20px; min-height: 300px; }
.message { background-color: #fafafa; padding: 20px; border-radius: 8px; border: 1px solid #e4e4e7; border-left: 4px solid #FFC100; max-width: 90%; }
.message.opponent { align-self: flex-end; border-left: 1px solid #e4e4e7; border-right: 4px solid #0A0A0C; }
.user-name { font-weight: 700; font-size: 13px; margin-bottom: 8px; color: #0A0A0C; display: flex; justify-content: space-between; gap: 15px; flex-wrap: wrap; }
.message-text { font-size: 14.5px; line-height: 1.6; margin-bottom: 12px; color: #18181b; }
.source-link { font-size: 12px; background-color: #f4f4f5; padding: 6px 10px; border-radius: 4px; display: inline-block; color: #3f3f46; margin-top: 6px; }
.input-area { padding: 20px 25px; background-color: #ffffff; border: 1px solid #e4e4e7; border-radius: 10px; display: flex; flex-direction: column; gap: 12px; }
textarea { width: 100%; padding: 12px 15px; border: 1px solid #d1d1d1; border-radius: 6px; resize: vertical; min-height: 80px; font-family: inherit; font-size: 14px; }
.source-input { width: 100%; padding: 10px 15px; border: 1px solid #d1d1d1; border-radius: 6px; font-family: inherit; }
.consenso-container { display: flex; gap: 25px; flex: 1; flex-wrap: wrap; }
.argumentos-validados { flex: 1; min-width: 300px; background-color: #ffffff; border: 1px solid #e4e4e7; border-radius: 8px; padding: 20px; overflow-y: auto; }
.editor-colaborativo { flex: 1.5; min-width: 320px; display: flex; flex-direction: column; gap: 15px; }
.acoes-acordo { display: flex; justify-content: space-between; align-items: center; background-color: #ffffff; padding: 20px; border: 1px solid #e4e4e7; border-radius: 8px; flex-wrap: wrap; gap: 15px; }
.arg-card { background: #fafafa; border: 1px solid #e4e4e7; border-left: 4px solid #FFC100; padding: 15px; border-radius: 6px; margin-bottom: 15px; }
.arg-autor { font-size: 12px; color: #71717a; margin-top: 8px; font-weight: 600; }

/* Outros Componentes */
.search-bar { display: flex; gap: 12px; margin-bottom: 30px; background-color: #ffffff; padding: 15px; border-radius: 8px; border: 1px solid #e4e4e7; flex-wrap: wrap; }
.search-bar input { flex: 1; min-width: 200px; border: none; outline: none; font-size: 15px; }
.filter-btn { background-color: #f4f4f5; border: 1px solid #e4e4e7; padding: 8px 15px; border-radius: 4px; font-size: 13px; cursor: pointer; text-decoration: none; color: #0A0A0C; }
.filter-btn.active { background-color: #FFC100; color: #0A0A0C; border-color: #FFC100; font-weight: 600; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; width: 100%; margin-bottom: 30px; }
.info-card, .rule-card { background-color: #ffffff; border: 1px solid #e4e4e7; border-radius: 10px; padding: 26px; }
.info-card h2 { font-size: 19px; color: #0A0A0C; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.info-card p { font-size: 14px; color: #52525b; line-height: 1.6; margin-bottom: 14px; }
.rule-card { border-left: 4px solid #FFC100; }
.cta-section { background-color: #0A0A0C; color: #FFFFFF; padding: 35px; border-radius: 12px; text-align: center; width: 100%; border-bottom: 4px solid #FFC100; margin-top: 10px; }
.cta-section h3 { font-size: 22px; margin-bottom: 8px; }
.cta-section p { color: #a1a1aa; font-size: 14.5px; margin-bottom: 18px; }

/* Passos Numerados e Cards da Tela de Início */
.step-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.step-item { display: flex; align-items: flex-start; gap: 14px; background: #fafafa; padding: 14px 16px; border-radius: 8px; border: 1px solid #e4e4e7; }
.step-number { width: 32px; height: 32px; border-radius: 50%; background-color: #FFC100; color: #0A0A0C; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.step-text h4 { font-size: 14.5px; font-weight: 700; color: #0A0A0C; margin-bottom: 4px; }
.step-text p { font-size: 13.5px; color: #52525b; line-height: 1.5; margin-bottom: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; width: 100%; margin-bottom: 30px; }
.feature-card { background: #ffffff; border: 1px solid #e4e4e7; border-top: 4px solid #FFC100; border-radius: 10px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.feature-card h3 { font-size: 16.5px; color: #0A0A0C; font-weight: 700; }
.feature-card p { font-size: 13.5px; color: #52525b; line-height: 1.55; }
.feature-list { list-style: none; padding: 0; margin: 6px 0 0 0; display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: #3f3f46; }
.feature-list li { display: flex; align-items: flex-start; gap: 8px; line-height: 1.45; }
.feature-list li::before { content: "▸"; color: #FFC100; font-weight: 900; }
.quiz-wrapper { max-width: 700px; width: 100%; background-color: #ffffff; border: 1px solid #e4e4e7; border-radius: 12px; padding: 35px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); margin-top: 20px; }
.option-label { display: flex; align-items: flex-start; padding: 15px 20px; border: 1px solid #e4e4e7; border-radius: 8px; margin-bottom: 12px; cursor: pointer; transition: all 0.2s; }
.option-label:hover { background-color: #f4f4f5; }

/* Responsividade Mobile e Tablet (Seção 7: Computadores e Celulares) */
@media (max-width: 900px) {
    body { flex-direction: column; height: auto; }
    .sidebar { width: 100%; border-right: none; border-bottom: 1px solid #e4e4e7; padding: 15px; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
    .logo { margin-bottom: 0; font-size: 20px; margin-right: 15px; }
    .nav-link, .sidebar-item { margin-bottom: 0; padding: 8px 12px; font-size: 13px; }
    .main-content { padding: 20px 16px; }
    .login-container, .register-container { flex-direction: column; width: 95%; margin: 20px auto; height: auto; }
    .brand-side, .form-side, .register-container .form-side { padding: 30px 20px; }
    .profile-header { flex-direction: column; align-items: flex-start; }
}
