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

/* Variáveis CSS para Dark Mode */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.15);
}

[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-card: #333333;
    --text-primary: #ffffff;
    --text-secondary: #3498db;
    --border-color: #444444;
    --shadow: 0 10px 30px rgba(0,0,0,0.3);
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.4);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    transition: all 0.3s ease;
}

[data-theme="dark"] body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

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

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-text {
    flex: 1;
    min-width: 300px;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.theme-toggle {
    display: flex;
    align-items: center;
}

.theme-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.theme-btn:active {
    transform: scale(0.95);
}

/* Cards */
.config-section, .status-section, .results-section {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.config-section:hover, .status-section:hover, .results-section:hover {
    transform: translateY(-2px);
}

.config-section h2, .status-section h3, .results-section h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Configurações */
.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.config-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.config-item label {
    font-weight: 600;
    color: #4a5568;
}

.config-item input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
}

.config-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}

.config-item input[type="number"] {
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.config-item input[type="number"]:focus {
    border-color: #667eea;
    outline: none;
}

/* Controles */
.controls-section {
    text-align: center;
    margin: 30px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    min-width: 140px;
    text-decoration: none;
    gap: 8px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

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

.btn-danger:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    min-width: 140px;
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(23, 162, 184, 0.4);
    color: white;
    text-decoration: none;
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    min-width: 140px;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
    color: white;
    text-decoration: none;
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    min-width: 140px;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
    color: white;
    text-decoration: none;
}


.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(81, 207, 102, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #868e96 0%, #6c757d 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(134, 142, 150, 0.4);
}

/* Status */
.status-content {
    display: grid;
    gap: 15px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-item .label {
    font-weight: 600;
    min-width: 100px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
}

/* Resultados */
.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 10px;
    margin: 20px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.number-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
    animation: fadeInUp 0.5s ease;
}

.number-item:hover {
    transform: scale(1.1);
}

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

.game-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-item .label {
    font-weight: 600;
    color: #4a5568;
}

.info-item .value {
    font-weight: bold;
    color: #667eea;
    font-size: 1.1rem;
}

.actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}


/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e2e8f0;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.toast {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    margin-bottom: 10px;
    border-left: 4px solid #51cf66;
    animation: slideInRight 0.3s ease;
}

.toast.error {
    border-left-color: #ff6b6b;
}

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

/* Footer */
.footer {
    text-align: center;
    color: white;
    margin-top: 60px;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.95) 0%, rgba(52, 73, 94, 0.95) 100%);
    border-top: 2px solid rgba(52, 152, 219, 0.3);
    border-radius: 10px 10px 0 0;
}

.footer p {
    margin: 8px 0;
    opacity: 0.9;
}

.footer a {
    color: #3498db;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer a:hover {
    color: #5dade2;
    text-decoration: underline;
}

/* Seção de Apoio */
.support-section {
    margin: 25px 0;
    padding: 20px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.support-section h3 {
    margin: 0 0 15px 0;
    font-size: 1.2em;
    color: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.support-section p {
    margin: 10px 0;
    font-size: 0.95em;
    line-height: 1.6;
}

.support-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.support-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 0.95em;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.5);
    background: linear-gradient(135deg, #5dade2 0%, #3498db 100%);
    text-decoration: none;
    color: white;
}

.support-btn.pix {
    color: #002293;
    background: linear-gradient(135deg, #32bb77 0%, #27ae60 100%);
    box-shadow: 0 4px 15px rgba(50, 187, 119, 0.3);
}

.support-btn.pix:hover {
    color: #9e3600;
    box-shadow: 0 6px 20px rgba(50, 187, 119, 1.5);
    background: linear-gradient(135deg, #48d597 0%, #32bb77 100%);
}

.support-btn.coffee {
    color: #002293;
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.support-btn.coffee:hover {
    color: #015a1f;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 1.5);
    background: linear-gradient(135deg, #ff8c5a 0%, #ff6b35 100%);
}

.developer-link {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.developer-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
}

.developer-link i {
    font-size: 0.85em;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .support-section {
        padding: 15px;
        margin: 20px 0;
    }
    
    .support-section h3 {
        font-size: 1.1em;
    }
    
    .support-section p {
        font-size: 0.9em;
    }
    
    .support-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .support-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
    
    .footer {
        padding: 20px 15px;
        margin-top: 40px;
    }
    
    .developer-link {
        margin-top: 15px;
        padding-top: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .config-grid {
        grid-template-columns: 1fr;
    }
    
    .numbers-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .number-item {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
    
    .controls-section {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        margin: 0;
        padding: 10px 20px;
        font-size: 14px;
        min-width: 120px;
        min-height: 44px;
    }
    
    .actions {
        flex-direction: column;
        align-items: center;
    }
}

/* Estilos específicos para página Sobre */
.nav-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

[data-theme="dark"] .nav-section {
    background: var(--bg-card);
    box-shadow: var(--shadow);
}

.process-section, .technical-section, .performance-section, 
.algorithm-section, .interface-section, .tech-stack-section, .disclaimer-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

[data-theme="dark"] .process-section, 
[data-theme="dark"] .technical-section, 
[data-theme="dark"] .performance-section, 
[data-theme="dark"] .algorithm-section, 
[data-theme="dark"] .interface-section, 
[data-theme="dark"] .tech-stack-section, 
[data-theme="dark"] .disclaimer-section {
    background: var(--bg-card);
    box-shadow: var(--shadow);
}

.process-section:hover, .technical-section:hover, .performance-section:hover, 
.algorithm-section:hover, .interface-section:hover, .tech-stack-section:hover, .disclaimer-section:hover {
    transform: translateY(-5px);
}

/* Interface Section Styles */
.interface-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.interface-card {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    border-left: 4px solid #3498db;
}

.interface-card:hover {
    transform: translateY(-3px);
}

.interface-icon {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 15px;
}

.interface-content h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.interface-content p {
    color: var(--text-secondary);
    line-height: 1.5;
}

.process-section h2, .technical-section h2, .performance-section h2, 
.algorithm-section h2, .interface-section h2, .tech-stack-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

[data-theme="dark"] .process-section h2, 
[data-theme="dark"] .technical-section h2, 
[data-theme="dark"] .performance-section h2, 
[data-theme="dark"] .algorithm-section h2, 
[data-theme="dark"] .interface-section h2, 
[data-theme="dark"] .tech-stack-section h2 {
    color: var(--text-primary);
}

.process-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

[data-theme="dark"] .process-card {
    background: var(--bg-secondary);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.step {
    display: flex;
    align-items: flex-start;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

[data-theme="dark"] .step {
    background: var(--bg-secondary);
    box-shadow: var(--shadow);
}

.step:hover {
    transform: translateY(-3px);
}

.step-number {
    background: #3498db;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-content h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

[data-theme="dark"] .step-content h3 {
    color: var(--text-primary);
}

.step-content p {
    color: #666;
    line-height: 1.5;
}

[data-theme="dark"] .step-content p {
    color: var(--text-secondary);
}

.technical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tech-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #3498db;
    transition: transform 0.3s ease;
}

[data-theme="dark"] .tech-card {
    background: var(--bg-secondary);
}

.tech-card:hover {
    transform: translateY(-3px);
}

.tech-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

[data-theme="dark"] .tech-card h3 {
    color: var(--text-primary);
}

.tech-card ul {
    list-style: none;
    padding: 0;
}

.tech-card li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #666;
}

[data-theme="dark"] .tech-card li {
    color: var(--text-secondary);
    border-bottom-color: var(--border-color);
}

.tech-card li:last-child {
    border-bottom: none;
}

.tech-card strong {
    color: #2c3e50;
}

[data-theme="dark"] .tech-card strong {
    color: var(--text-primary);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.metric-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

[data-theme="dark"] .metric-card {
    background: var(--bg-secondary);
}

.metric-card:hover {
    transform: translateY(-3px);
}

.metric-icon {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 15px;
}

.metric-content h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

[data-theme="dark"] .metric-content h3 {
    color: var(--text-primary);
}

.metric-value {
    font-size: 2rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 10px;
}

[data-theme="dark"] .metric-value {
    color: #3498db;
}

.metric-content p {
    color: #666;
    font-size: 0.9rem;
}

[data-theme="dark"] .metric-content p {
    color: var(--text-secondary);
}

.algorithm-content {
    margin-top: 20px;
}

.algorithm-step {
    margin-bottom: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

[data-theme="dark"] .algorithm-step {
    background: var(--bg-secondary);
}

.algorithm-step h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

[data-theme="dark"] .algorithm-step h3 {
    color: var(--text-primary);
}

.code-block {
    background: #2c3e50;
    color: #ecf0f1;
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin-top: 15px;
}

[data-theme="dark"] .code-block {
    background: #1a1a1a;
    color: #ffffff;
}

.code-block pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stack-category {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

[data-theme="dark"] .stack-category {
    background: var(--bg-secondary);
}

.stack-category:hover {
    transform: translateY(-3px);
}

.stack-category h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

[data-theme="dark"] .stack-category h3 {
    color: var(--text-primary);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tech-tag {
    background: #3498db;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

[data-theme="dark"] .tech-tag {
    background: #3498db;
    color: white;
}

.tech-tag:hover {
    background: #2980b9;
}

.disclaimer-card {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

[data-theme="dark"] .disclaimer-card {
    background: #2d2d2d;
    border-color: #444444;
}

.disclaimer-card h3 {
    color: #856404;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

[data-theme="dark"] .disclaimer-card h3 {
    color: var(--text-primary);
}

.disclaimer-card p {
    color: #856404;
    margin-bottom: 15px;
    font-weight: 500;
}

[data-theme="dark"] .disclaimer-card p {
    color: var(--text-secondary);
}

.disclaimer-card ul {
    color: #856404;
    padding-left: 20px;
}

[data-theme="dark"] .disclaimer-card ul {
    color: var(--text-secondary);
}

.disclaimer-card li {
    margin-bottom: 8px;
}

/* Responsive para página Sobre */
@media (max-width: 768px) {
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .technical-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-stack-grid {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .code-block {
        font-size: 0.8rem;
        padding: 15px;
    }
}

/* Estilos específicos para página de Análises */
.info-section, .ranking-section, .chart-section, .faixas-section, 
.paridade-section, .stats-section, .ranking-completo-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

[data-theme="dark"] .info-section, 
[data-theme="dark"] .ranking-section, 
[data-theme="dark"] .chart-section, 
[data-theme="dark"] .faixas-section, 
[data-theme="dark"] .paridade-section, 
[data-theme="dark"] .stats-section, 
[data-theme="dark"] .ranking-completo-section {
    background: var(--bg-card);
    box-shadow: var(--shadow);
}

.info-section:hover, .ranking-section:hover, .chart-section:hover, 
.faixas-section:hover, .paridade-section:hover, .stats-section:hover, 
.ranking-completo-section:hover {
    transform: translateY(-5px);
}

.info-section h2, .ranking-section h2, .chart-section h2, 
.faixas-section h2, .paridade-section h2, .stats-section h2, 
.ranking-completo-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

[data-theme="dark"] .info-section h2, 
[data-theme="dark"] .ranking-section h2, 
[data-theme="dark"] .chart-section h2, 
[data-theme="dark"] .faixas-section h2, 
[data-theme="dark"] .paridade-section h2, 
[data-theme="dark"] .stats-section h2, 
[data-theme="dark"] .ranking-completo-section h2 {
    color: var(--text-primary);
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

[data-theme="dark"] .info-card {
    background: var(--bg-secondary);
}

.info-card:hover {
    transform: translateY(-3px);
}

.info-icon {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 15px;
}

.info-content h3 {
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.info-value {
    font-size: 2rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 5px;
}

[data-theme="dark"] .info-value {
    color: #3498db;
}

.info-content p {
    color: #666;
    font-size: 0.9rem;
}

[data-theme="dark"] .info-content p {
    color: #cccccc;
}

/* Ranking Grid */
.ranking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.ranking-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
}

[data-theme="dark"] .ranking-card {
    background: var(--bg-secondary);
}

.ranking-card:hover {
    transform: translateY(-3px);
}

.ranking-card-hot {
    border-left: 4px solid #e74c3c;
}

.ranking-card-cold {
    border-left: 4px solid #3498db;
}

.ranking-position {
    background: #3498db;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 10px;
}

.ranking-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

[data-theme="dark"] .ranking-number {
    color: #ffffff;
}

.ranking-freq {
    font-size: 1.2rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 5px;
}

[data-theme="dark"] .ranking-freq {
    color: #3498db;
}

.ranking-percent {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

[data-theme="dark"] .ranking-percent {
    color: #cccccc;
}

.ranking-deviation {
    font-size: 0.8rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    display: inline-block;
}

.ranking-card-hot .ranking-deviation {
    background: #e74c3c;
    color: white;
}

.ranking-card-cold .ranking-deviation {
    background: #3498db;
    color: white;
}

/* Chart Section */
.chart-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

[data-theme="dark"] .chart-container {
    background: var(--bg-secondary);
}

/* Faixas Grid */
.faixas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.faixa-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

[data-theme="dark"] .faixa-card {
    background: var(--bg-secondary);
}

.faixa-card:hover {
    transform: translateY(-3px);
}

.faixa-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.faixa-freq {
    font-size: 2rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 5px;
}

[data-theme="dark"] .faixa-freq {
    color: #3498db;
}

.faixa-percent {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 15px;
}

[data-theme="dark"] .faixa-percent {
    color: #cccccc;
}

.faixa-bar {
    background: #e0e0e0;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
}

[data-theme="dark"] .faixa-bar {
    background: #444444;
}

.faixa-bar-fill {
    background: linear-gradient(90deg, #3498db, #2ecc71);
    height: 100%;
    transition: width 0.3s ease;
}

/* Paridade Grid */
.paridade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.paridade-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

[data-theme="dark"] .paridade-card {
    background: var(--bg-secondary);
}

.paridade-card:hover {
    transform: translateY(-3px);
}

.paridade-icon {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 15px;
}

.paridade-content h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.paridade-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 5px;
}

[data-theme="dark"] .paridade-value {
    color: #3498db;
}

.paridade-percent {
    font-size: 1.2rem;
    color: #666;
}

[data-theme="dark"] .paridade-percent {
    color: #cccccc;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

[data-theme="dark"] .stat-card {
    background: var(--bg-secondary);
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-icon {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 15px;
}

.stat-content h3 {
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #3498db;
}

[data-theme="dark"] .stat-value {
    color: #3498db;
}

/* Ranking Completo */
.ranking-completo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.ranking-completo-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

[data-theme="dark"] .ranking-completo-card {
    background: var(--bg-secondary);
}

.ranking-completo-card:hover {
    transform: translateY(-2px);
}

.ranking-completo-card.ranking-hot {
    background: #ffe6e6;
    border-left: 3px solid #e74c3c;
}

.ranking-completo-card.ranking-cold {
    background: #e6f3ff;
    border-left: 3px solid #3498db;
}

[data-theme="dark"] .ranking-completo-card.ranking-hot {
    background: #2d1b1b;
    border-left: 3px solid #e74c3c;
}

[data-theme="dark"] .ranking-completo-card.ranking-cold {
    background: #1b2d3d;
    border-left: 3px solid #3498db;
}

.ranking-completo-position {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.ranking-completo-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 3px;
}

[data-theme="dark"] .ranking-completo-number {
    color: #3498db;
}

.ranking-completo-freq {
    font-size: 1rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 3px;
}

[data-theme="dark"] .ranking-completo-freq {
    color: #ffffff;
}

.ranking-completo-percent {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 3px;
}

[data-theme="dark"] .ranking-completo-percent {
    color: #cccccc;
}

.ranking-completo-deviation {
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 8px;
    display: inline-block;
}

.ranking-completo-deviation.positive {
    background: #e74c3c;
    color: white;
}

.ranking-completo-deviation.negative {
    background: #3498db;
    color: white;
}

/* Error Section */
.error-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

[data-theme="dark"] .error-section {
    background: var(--bg-card);
    box-shadow: var(--shadow);
}

.error-card {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

[data-theme="dark"] .error-card {
    background: #2d2d1b;
    border-color: #444444;
}

.error-card h3 {
    color: #856404;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.error-card p {
    color: #856404;
    font-size: 1.1rem;
}

[data-theme="dark"] .error-card h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .error-card p {
    color: var(--text-secondary);
}

/* Responsive para página de Análises */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .ranking-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .faixas-grid {
        grid-template-columns: 1fr;
    }
    
    .paridade-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ranking-completo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .chart-container {
        padding: 10px;
    }
}

/* Estilos específicos para página do Simulador */
.simulator-config {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.config-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.config-item label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-select, .form-input {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-select:focus, .form-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.simulation-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.info-value {
    font-weight: bold;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.jogos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.jogo-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.jogo-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.jogo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.jogo-header h3 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.2rem;
}

.jogo-count {
    background: #3498db;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.jogo-numeros {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.numero-bola {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.numero-bola:hover {
    transform: scale(1.1);
}

.jogo-actions {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.analysis-section {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.analysis-card {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.analysis-card:hover {
    transform: translateY(-3px);
}

.analysis-icon {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 15px;
}

.analysis-content h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.analysis-value {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.strategies-section {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.strategies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.strategy-card {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.strategy-card:hover {
    transform: translateY(-3px);
}

.strategy-icon {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 15px;
}

.strategy-content h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.strategy-content p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid #3498db;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

.toast-success {
    border-left-color: #2ecc71;
}

.toast-error {
    border-left-color: #e74c3c;
}

.toast-warning {
    border-left-color: #f39c12;
}

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

/* Responsive para Simulador */
@media (max-width: 768px) {
    .simulator-config {
        grid-template-columns: 1fr;
    }
    
    .simulation-info {
        grid-template-columns: 1fr;
    }
    
    .jogos-container {
        grid-template-columns: 1fr;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
    }
    
    .strategies-grid {
        grid-template-columns: 1fr;
    }
    
    .toast-container {
        left: 10px;
        right: 10px;
        top: 10px;
    }
    
    .toast {
        min-width: auto;
    }
}

/* Estilos específicos para página do Histórico */
.filters-section {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-item label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.historico-card {
    position: relative;
}

.jogo-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.jogo-strategy {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.jogo-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.jogo-date {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
}

.jogo-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 4rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.empty-state p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.performance-section {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.performance-card {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.performance-card h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.performance-chart {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-style: italic;
}

/* Responsive para Histórico */
@media (max-width: 768px) {
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .performance-grid {
        grid-template-columns: 1fr;
    }
    
    .jogo-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .jogo-meta {
        align-items: flex-start;
    }
}