/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores principais */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --danger-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    
    /* Cores neutras */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    /* Cores de status */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Bordas */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navegação Avançada */
.navbar {
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.brand-icon {
    background: var(--primary-gradient);
    color: white;
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.brand-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.brand-text p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
}

.nav-btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    background: transparent;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    transition: left 0.3s ease;
    z-index: -1;
}

.nav-btn:hover::before,
.nav-btn.active::before {
    left: 0;
}

.nav-btn:hover,
.nav-btn.active {
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Seções */
.section {
    display: none;
    min-height: calc(100vh - 80px);
}

.section.active {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero-section {
    background: var(--primary-gradient);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff, #f0f9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff, #f0f9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Análise Rápida */
.quick-analysis {
    padding: 3rem 0;
    background: var(--bg-secondary);
}

.quick-analysis h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.analysis-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.input-section {
    margin-bottom: 2rem;
}

.input-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.input-section textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s ease;
    background: var(--bg-primary);
}

.input-section textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Botões */
.btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid #e2e8f0;
}

.btn-outline:hover {
    background: var(--bg-tertiary);
    border-color: #cbd5e1;
}

/* Técnicas em Destaque */
.featured-techniques {
    padding: 3rem 0;
    background: var(--bg-primary);
}

.featured-techniques h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.techniques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.technique-highlight {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.technique-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    transition: left 0.3s ease;
}

.technique-highlight:hover::before {
    left: 0;
}

.technique-highlight:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.technique-icon {
    background: var(--primary-gradient);
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 2rem;
    box-shadow: var(--shadow-md);
}

.technique-highlight h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.effectiveness-badge {
    background: var(--success-gradient);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.technique-highlight p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.technique-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
}

.technique-stats span {
    color: var(--text-muted);
}

/* Seção Header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

/* Filtros de Técnicas */
.technique-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #e2e8f0;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-1px);
}

/* Grid de Técnicas Avançadas */
.techniques-advanced-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.technique-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.technique-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.technique-card:hover::before {
    transform: scaleX(1);
}

.technique-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.technique-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.technique-icon-large {
    background: var(--primary-gradient);
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    font-size: 1.5rem;
    color: white;
    box-shadow: var(--shadow-md);
}

.technique-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.difficulty,
.effectiveness {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.difficulty.easy {
    background: var(--success);
    color: white;
}

.difficulty.medium {
    background: var(--warning);
    color: white;
}

.difficulty.hard {
    background: var(--danger);
    color: white;
}

.effectiveness.high {
    background: var(--success-gradient);
    color: white;
}

.effectiveness.medium {
    background: var(--warning-gradient);
    color: white;
}

.ai-badge {
    background: var(--secondary-gradient);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 700;
}

.technique-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.technique-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.technique-details {
    margin-top: 1rem;
}

.effectiveness-bar {
    width: 100%;
    background: #e2e8f0;
    border-radius: 9999px;
    height: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.effectiveness-fill {
    height: 100%;
    background: var(--success-gradient);
    border-radius: 9999px;
    transition: width 0.5s ease-in-out;
}

/* Exemplos e Alertas */
.alert-words {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.alert-word {
    background: var(--danger-gradient);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.technique-example {
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border-left: 4px solid #667eea;
}

.example-question {
    margin-bottom: 0.5rem;
}

.example-analysis {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.wrong {
    color: var(--danger);
    font-weight: 600;
}

.reason {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Context Grid */
.context-grid {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.context-item {
    background: var(--bg-primary);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    border-left: 3px solid #667eea;
}

/* Principles List */
.principles-list {
    margin-bottom: 1rem;
}

.principle-item {
    background: var(--bg-primary);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    border-left: 3px solid #10b981;
}

/* Statistical Data */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stat-item {
    text-align: center;
    background: var(--bg-primary);
    padding: 0.75rem;
    border-radius: var(--radius-md);
}

.letter {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.percentage {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Trap Types */
.trap-item {
    background: var(--bg-primary);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    border-left: 3px solid #f59e0b;
}

/* Semantic Features */
.feature-item {
    background: var(--bg-primary);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    border-left: 3px solid #8b5cf6;
}

/* Simulador */
.simulator-interface {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.simulator-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: end;
}

.control-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.control-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    font-size: 1rem;
}

.simulation-area {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.simulator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.simulator-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.simulator-hints {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    border-left: 4px solid #3b82f6;
}

.hint-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.hint-icon {
    font-size: 1rem;
}

.simulator-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Análise IA */
.ai-analysis-interface {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.analysis-input h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.analysis-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.analysis-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.ai-results {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.analysis-summary {
    margin-bottom: 2rem;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.analysis-sections {
    display: grid;
    gap: 1.5rem;
}

.analysis-section {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid #667eea;
}

.analysis-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Estatísticas Dashboard */
.stats-dashboard {
    display: grid;
    gap: 2rem;
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.overview-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.overview-card h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.technique-usage {
    display: grid;
    gap: 1rem;
}

.usage-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 1rem;
}

.technique-name {
    font-size: 0.875rem;
    color: var(--text-primary);
}

.usage-bar {
    width: 100px;
    height: 0.5rem;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
}

.usage-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 9999px;
}

.usage-percentage {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Tabela de Estatísticas */
.stats-table {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    overflow-x: auto;
}

.stats-table table {
    width: 100%;
    border-collapse: collapse;
}

.stats-table th,
.stats-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.stats-table th {
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-primary);
}

.stats-table td {
    color: var(--text-secondary);
}

.performance-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.performance-badge.excellent {
    background: var(--success);
    color: white;
}

.performance-badge.good {
    background: var(--warning);
    color: white;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.modal-body {
    padding: 1.5rem;
}

/* AI Assistant */
.ai-assistant {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.ai-btn {
    background: var(--secondary-gradient);
    color: white;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.ai-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.ai-chat {
    position: absolute;
    bottom: 100%;
    right: 0;
    width: 350px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    margin-bottom: 1rem;
    overflow: hidden;
}

.chat-header {
    background: var(--primary-gradient);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header button {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 1rem;
}

.ai-message {
    background: var(--bg-primary);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.chat-input {
    display: flex;
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
}

.chat-input input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    margin-right: 0.5rem;
}

.chat-input button {
    padding: 0.5rem 1rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
}

/* Responsividade */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-btn {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

    .techniques-advanced-grid {
        grid-template-columns: 1fr;
    }

    .technique-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .simulator-controls {
        grid-template-columns: 1fr;
    }

    .simulator-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats-overview {
        grid-template-columns: 1fr;
    }

    .ai-chat {
        width: 300px;
    }

    .summary-stats {
        grid-template-columns: 1fr;
    }

    .usage-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .usage-bar {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }

    .hero-section {
        padding: 2rem 0;
    }

    .quick-analysis,
    .featured-techniques {
        padding: 2rem 0;
    }

    .analysis-card,
    .simulator-interface,
    .ai-analysis-interface {
        padding: 1rem;
    }

    .technique-card {
        padding: 1rem;
    }

    .ai-assistant {
        bottom: 1rem;
        right: 1rem;
    }

    .ai-chat {
        width: calc(100vw - 2rem);
        right: -1rem;
    }
}

/* Animações adicionais */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s infinite;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

/* Scrollbar customizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}



/* Estilos para OAB 1ª Fase */
.prova-stats {
    margin: 2rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.group-filters {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.group-filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid #667eea;
    background: transparent;
    color: #667eea;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.group-filter-btn.active,
.group-filter-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.materias-grid {
    display: grid;
    gap: 2rem;
}

.grupo-header {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0 1rem 0;
}

.grupo-header.grupo-a {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
}

.grupo-header.grupo-b {
    background: linear-gradient(135deg, #4834d4 0%, #686de0 100%);
    color: white;
}

.grupo-header.grupo-c {
    background: linear-gradient(135deg, #00d2d3 0%, #54a0ff 100%);
    color: white;
}

.materia-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-left: 5px solid;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.materia-card.grupo-a {
    border-left-color: #ff6b6b;
}

.materia-card.grupo-b {
    border-left-color: #4834d4;
}

.materia-card.grupo-c {
    border-left-color: #00d2d3;
}

.materia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.materia-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.materia-icon {
    font-size: 2rem;
}

.materia-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.questoes-count {
    background: #f8f9fa;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
}

.peso-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.peso-badge.high {
    background: #ff6b6b;
}

.peso-badge.medium {
    background: #4834d4;
}

.peso-badge.low {
    background: #00d2d3;
}

.materia-card h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.3rem;
}

.materia-card > p {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.materia-details {
    margin-top: 1rem;
}

.topicos-principais h4,
.dicas-estudo h4,
.questao-exemplo h4 {
    color: #2c3e50;
    margin: 1rem 0 0.5rem 0;
    font-size: 1rem;
}

.topico-item,
.dica-item {
    background: #f8f9fa;
    padding: 0.8rem;
    margin: 0.5rem 0;
    border-radius: 8px;
    border-left: 3px solid #667eea;
    font-size: 0.9rem;
}

.questao-exemplo {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
}

.exemplo-questao p {
    margin-bottom: 1rem;
    font-weight: 600;
}

.exemplo-opcoes {
    margin: 1rem 0;
}

.opcao {
    padding: 0.5rem;
    margin: 0.3rem 0;
    border-radius: 5px;
    background: white;
    border: 1px solid #dee2e6;
    font-size: 0.9rem;
}

.opcao.correct {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.explicacao {
    background: #e2e3e5;
    padding: 0.8rem;
    border-radius: 5px;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #383d41;
}

.materia-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.study-timer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin: 3rem 0;
}

.timer-display {
    font-size: 3rem;
    font-weight: bold;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
}

.timer-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.study-goal {
    margin-top: 1rem;
}

.study-goal label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.study-goal select {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    border: none;
    background: white;
    color: #2c3e50;
    font-weight: 600;
}

/* Responsividade para OAB 1ª Fase */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .group-filters {
        flex-direction: column;
    }
    
    .group-filter-btn {
        width: 100%;
        text-align: center;
    }
    
    .materia-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .materia-actions {
        flex-direction: column;
    }
    
    .timer-display {
        font-size: 2rem;
    }
    
    .timer-controls {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .materia-card {
        padding: 1rem;
    }
    
    .timer-display {
        font-size: 1.5rem;
    }
}

