/* Home Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

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

.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

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

.header p {
    font-size: 1.2em;
    opacity: 0.9;
}

.selection-panel {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 30px;
    transform: translateY(20px);
    animation: slideUp 0.6s ease-out forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 1.1em;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(45deg, #2a5298, #1e3c72);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 82, 152, 0.3);
}

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

.text-center {
    text-align: center;
}

.analysis-container {
    display: none;
    animation: fadeIn 0.6s ease-out;
}

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

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

.analysis-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.analysis-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.card-header i {
    font-size: 1.5em;
    margin-right: 10px;
    color: #2a5298;
}

.card-header h3 {
    color: #333;
    font-size: 1.3em;
    flex-grow: 1;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination-btn {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.9em;
}

.pagination-btn:hover {
    background: #e0e0e0;
}

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

.page-indicator {
    font-size: 0.8em;
    font-weight: 600;
    color: #666;
    min-width: 50px;
    text-align: center;
}

.navigation-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-btn {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: #e0e0e0;
    border-color: #2a5298;
}

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

.nav-indicator {
    font-size: 0.8em;
    font-weight: 600;
    color: #666;
    min-width: 40px;
    text-align: center;
}

.distribution-view {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.distribution-view.active {
    display: block;
}

/* Advanced Statistics Styles - Melhorado */
.advanced-stat-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
}

.stat-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 600;
    color: #495057;
}

.stat-title {
    font-size: 1em;
    margin-left: 5px;
}

.stat-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.85em;
    color: #6c757d;
    font-weight: 500;
    text-align: center;
    flex: 1;
}

.stat-values {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.stat-value {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1em;
    color: #495057;
    flex: 1;
    transition: all 0.2s ease;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-value:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Cores específicas para dúzias */
.advanced-stat-section:first-child .stat-value:nth-child(1) {
    border-color: #E91E63;
    color: #E91E63;
}

.advanced-stat-section:first-child .stat-value:nth-child(2) {
    border-color: #3F51B5;
    color: #3F51B5;
}

.advanced-stat-section:first-child .stat-value:nth-child(3) {
    border-color: #FF5722;
    color: #FF5722;
}

/* Cores específicas para colunas */
.advanced-stat-section:last-child .stat-value:nth-child(1) {
    border-color: #9C27B0;
    color: #9C27B0;
}

.advanced-stat-section:last-child .stat-value:nth-child(2) {
    border-color: #FF9800;
    color: #FF9800;
}

.advanced-stat-section:last-child .stat-value:nth-child(3) {
    border-color: #4CAF50;
    color: #4CAF50;
}

.transition-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.transition-item:last-child {
    border-bottom: none;
}

.transition-item:hover {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding-left: 8px;
    padding-right: 8px;
}

.transition-sequence {
    display: flex;
    align-items: center;
    gap: 12px;
}

.transition-arrow {
    color: #666;
    font-size: 1.1em;
}

.transition-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.count-value {
    font-size: 1.3em;
    font-weight: 700;
    color: #2a5298;
}

.count-label {
    font-size: 0.8em;
    color: #666;
    font-weight: 500;
}

.destination-block {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.destination-block:last-child {
    margin-bottom: 0;
}

.destination-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.destination-arrow {
    color: #666;
    font-size: 1.2em;
    font-weight: bold;
}

.destination-total {
    font-size: 0.9em;
    color: #666;
    font-weight: 500;
}

.destination-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.destination-item {
    display: flex;
    align-items: center;
    gap: 5px;
    background: white;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.destination-item .number-cell {
    width: 24px;
    height: 24px;
    font-size: 0.75em;
}

.destination-count {
    font-size: 0.8em;
    color: #666;
    font-weight: 600;
}

.terminal-transition-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 12px 15px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.terminal-transition-item:hover {
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: #2a5298;
}

.terminal-transition-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.terminal-numbers {
    display: flex;
    align-items: center;
    gap: 5px;
}

.terminal-number {
    background: #2a5298;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.terminal-count {
    font-weight: bold;
    color: #2a5298;
    font-size: 1rem;
}

.terminal-details-btn {
    color: #6c757d;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.terminal-details-btn:hover {
    color: #2a5298;
}

/* Estilos antigos removidos - não mais necessários com o novo layout */

/* Estilos específicos para exemplos e seções de terminais - mantidos para modal */
.terminal-examples {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.terminal-examples .number-cell {
    width: 24px;
    height: 24px;
    font-size: 0.75em;
}

.terminal-arrow {
    color: #666;
    font-size: 1.5em;
    margin: 0 10px;
}

.terminal-examples-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.examples-label {
    font-weight: 600;
    color: #555;
    font-size: 0.9em;
    margin-bottom: 8px;
    display: block;
}

.examples-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.example-transition {
    display: flex;
    align-items: center;
    gap: 6px;
    background: white;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.example-transition .number-cell {
    width: 26px;
    height: 26px;
    font-size: 0.8em;
}

.example-transition .fas {
    color: #999;
    font-size: 0.8em;
}

.zones-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    padding: 18px;
    background: #f0f4f8;
    border-radius: 8px;
}

.zone-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e0e6ed;
}

.zone-summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 600;
    color: #333;
}

.summary-value {
    font-weight: 700;
    color: #2a5298;
    font-size: 1.1em;
}

.zones-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.zone-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.zone-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.zone-item.zone-hot {
    background: linear-gradient(135deg, #fff5f5, #f8f9fa);
}

.zone-item.zone-cold {
    background: linear-gradient(135deg, #f0f8ff, #f8f9fa);
}

.zone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.zone-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.zone-hot-icon {
    color: #ff5722;
    font-size: 1.1em;
}

.zone-cold-icon {
    color: #2196F3;
    font-size: 1.1em;
}

.zone-title {
    font-weight: 700;
    color: #333;
    font-size: 1.1em;
}

.zone-description {
    color: #666;
    font-size: 0.9em;
    font-style: italic;
}

.zone-stats {
    display: flex;
    align-items: center;
    gap: 10px;
}

.zone-count {
    font-size: 1.4em;
    font-weight: 700;
    color: #2a5298;
}

.zone-percentage {
    font-size: 1em;
    font-weight: 600;
    color: #666;
}

.zone-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.zone-numbers .number-cell {
    width: 28px;
    height: 28px;
    font-size: 0.8em;
}

@media (max-width: 768px) {
    .zones-summary {
        gap: 10px;
        padding: 12px;
    }
    
    .zone-summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 6px 0;
    }
    
    .zone-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .zone-stats {
        gap: 5px;
    }
}

.math-summary, .pattern-summary, .strategy-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.math-item, .pattern-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.math-label, .pattern-label {
    font-weight: 600;
    color: #333;
}

.math-value, .pattern-value {
    font-weight: 700;
    color: #2a5298;
}

.strategy-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.strategy-recommendation, .strategy-risk, .strategy-confidence {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.strategy-title {
    font-weight: 600;
    color: #333;
    margin-right: 8px;
}

.strategy-value {
    font-weight: 700;
    color: #2a5298;
}

.strategy-suggestions {
    background: #f0f4f8;
    border-radius: 8px;
    padding: 15px;
}

.suggestions-title {
    margin: 0 0 12px 0;
    font-size: 1.1em;
    color: #333;
}

.strategy-suggestion {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.95em;
    color: #555;
}

.strategy-suggestion:last-child {
    border-bottom: none;
}

/* Strategy Validation Styles */
.strategy-validation-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.strategy-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.strategy-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.strategy-item.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.strategy-item.failure {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}

.strategy-item.neutral {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
}

.strategy-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.strategy-name {
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
}

.strategy-tooltip {
    position: relative;
    display: inline-block;
}

.strategy-tooltip .fas {
    color: #6c757d;
    cursor: help;
    font-size: 0.85em;
}

.strategy-tooltip:hover .fas {
    color: #495057;
}

.strategy-tooltip .tooltip-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.8em;
    line-height: 1.4;
    white-space: nowrap;
    max-width: 300px;
    white-space: normal;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.strategy-tooltip:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}

.strategy-tooltip .tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
}

.strategy-result {
    display: flex;
    align-items: center;
    gap: 8px;
}

.strategy-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
}

.strategy-status.success {
    background: #28a745;
    color: white;
}

.strategy-status.failure {
    background: #dc3545;
    color: white;
}

.strategy-status.neutral {
    background: #ffc107;
    color: #333;
}

.strategy-performance {
    font-size: 0.9em;
    color: #666;
    font-weight: 500;
}

.strategy-expand-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 1.2em;
    margin-left: 8px;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.strategy-expand-btn:hover {
    background: rgba(108, 117, 125, 0.1);
    color: #495057;
}

.strategy-expand-btn.expanded {
    transform: rotate(45deg);
    color: #dc3545;
}

.strategy-details {
    margin-top: 15px;
    padding: 15px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    display: none;
    animation: slideDown 0.3s ease;
}

.strategy-details.expanded {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-section {
    margin-bottom: 20px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h5 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1em;
    font-weight: 600;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 5px;
}

.sequence-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85em;
    margin-bottom: 15px;
}

.sequence-table th,
.sequence-table td {
    padding: 6px 8px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.sequence-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.sequence-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.win-row {
    background: #d4edda !important;
    color: #155724;
}

.loss-row {
    background: #f8d7da !important;
    color: #721c24;
}

.balance-cell {
    font-weight: 700;
    text-align: center;
}

.balance-positive {
    color: #28a745;
}

.balance-negative {
    color: #dc3545;
}

.sequence-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.summary-item {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
}

.summary-item.positive {
    background: #d4edda;
}

.summary-item.negative {
    background: #f8d7da;
}

.summary-value {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

.summary-label {
    font-size: 0.8em;
    color: #666;
    margin-top: 4px;
}

.recommendation-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #2196f3;
    border-radius: 8px;
    padding: 15px;
}

.recommendation-box.success {
    background: linear-gradient(135deg, #e8f5e8 0%, #c3e6cb 100%);
    border-color: #28a745;
}

.recommendation-box.failure {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    border-color: #e17055;
}

.recommendation-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.recommendation-title i {
    margin-right: 8px;
    font-size: 1.1em;
}

.recommendation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recommendation-list li {
    padding: 5px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.recommendation-list li:last-child {
    border-bottom: none;
}

.recommendation-list li:before {
    content: "→";
    color: #2196f3;
    margin-right: 8px;
    font-weight: bold;
}

.unit-explanation {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 12px;
    margin: 10px 0;
}

.unit-explanation h6 {
    margin: 0 0 8px 0;
    color: #856404;
    font-size: 0.9em;
    font-weight: 600;
}

.unit-explanation p {
    margin: 0;
    font-size: 0.85em;
    color: #856404;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .math-item, .pattern-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .strategy-recommendation, .strategy-risk, .strategy-confidence {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.metric:last-child {
    border-bottom: none;
}

.metric-label {
    font-weight: 500;
    color: #666;
}

.metric-value {
    font-weight: 600;
    color: #2a5298;
}

.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-online {
    background: #4CAF50;
    animation: pulse 2s infinite;
}

.status-offline {
    background: #f44336;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2a5298;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.uptime-bar {
    background: #e0e0e0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.uptime-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    transition: width 0.3s ease;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.numbers-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
    max-height: 250px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    background: #fafafa;
}

.number-with-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transition: transform 0.2s ease;
}

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

.numbers-horizontal::-webkit-scrollbar {
    width: 6px;
}

.numbers-horizontal::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.numbers-horizontal::-webkit-scrollbar-thumb {
    background: #2a5298;
    border-radius: 3px;
}

.numbers-horizontal::-webkit-scrollbar-thumb:hover {
    background: #1e3c72;
}

.recent-number {
    position: relative;
}

.recent-number::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #ffd700;
    border-radius: 8px;
    animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

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

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

.number-cell {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1em;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 0 auto;
}

.number-cell:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.number-with-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.number-count {
    font-size: 0.9em;
    font-weight: 600;
    color: #2a5298;
    background: #f0f4f8;
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid #e0e6ed;
}

.number-time {
    font-size: 0.7em;
    color: #666;
    font-weight: 500;
}

.number-date {
    font-size: 0.6em;
    color: #999;
    font-weight: 400;
}

.number-red { background: #d32f2f; }
.number-black { background: #424242; }
.number-green { background: #388e3c; }

.row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.col-md-6 {
    flex: 1;
}

@media (max-width: 768px) {
    .row {
        flex-direction: column;
    }
    
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
    }
    
    .numbers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 8px;
    }
    
    .numbers-horizontal {
        max-height: 200px;
        padding: 5px;
        gap: 5px;
    }
    
    .number-with-time {
        gap: 2px;
    }
    
    .number-cell {
        width: 40px;
        height: 40px;
        font-size: 1em;
    }
    
    .number-time {
        font-size: 0.6em;
    }
    
    .number-date {
        font-size: 0.5em;
    }
}

@media (max-width: 480px) {
    .numbers-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .number-cell {
        width: 50px;
        height: 50px;
        font-size: 1.2em;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 90vw;
    max-height: 90vh;
    width: 800px;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    color: white;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3em;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-body {
    padding: 25px;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #2a5298;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #1e3c72;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 95vw;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-body {
        padding: 20px;
        max-height: 80vh;
    }
    
    .modal-header h3 {
        font-size: 1.1em;
    }
}

/* Zone Timeline Styles */
.zone-timeline-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.timeline-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.2em;
    font-weight: 600;
}

.zone-legend {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
    font-weight: 500;
    color: #555;
}

.timeline-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 12px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 15px;
}

.timeline-legend .legend-item {
    background: white;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.timeline-legend .legend-item:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.zone-color-voisins,
.zone-color-tiers,
.zone-color-orphelins,
.zone-color-zero {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid rgba(255,255,255,0.8);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.zone-color-voisins { background: #2196F3; }
.zone-color-tiers { background: #FF9800; }
.zone-color-orphelins { background: #9C27B0; }
.zone-color-zero { background: #4CAF50; }

.zone-timeline {
    background: white;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.timeline-direction-label {
    text-align: center;
    font-size: 0.8em;
    color: #666;
    margin: 8px 0;
    font-weight: 500;
}

.timeline-numbers-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
    padding: 15px;
    background: #fafafa;
    border-radius: 6px;
    max-height: 400px;
    overflow-y: auto;
    align-items: flex-start;
    align-content: flex-start;
}

.timeline-numbers-container::-webkit-scrollbar {
    width: 8px;
}

.timeline-numbers-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.timeline-numbers-container::-webkit-scrollbar-thumb {
    background: #2a5298;
    border-radius: 4px;
}

.timeline-numbers-container::-webkit-scrollbar-thumb:hover {
    background: #1e3c72;
}

.timeline-number {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    width: 60px;
    height: 75px;
    justify-content: flex-start;
}

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

.timeline-number.timeline-recent::after {
    content: 'NOVO';
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4444;
    color: white;
    font-size: 0.6em;
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 3px;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

.timeline-number-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    height: 100%;
    justify-content: flex-start;
}

.zone-number {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1em;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    border: 3px solid rgba(255,255,255,0.9);
    transition: all 0.3s ease;
}

.zone-number:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.timeline-number-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    height: 35px;
    justify-content: flex-start;
    width: 100%;
}

.timeline-zone {
    font-size: 0.7em;
    font-weight: 600;
    color: #333;
    background: rgba(255,255,255,0.9);
    padding: 2px 6px;
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.timeline-time {
    font-size: 0.65em;
    color: #666;
    font-weight: 500;
    min-height: 12px;
    line-height: 1;
    margin-top: 1px;
}

.zone-timeline-empty {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
    background: white;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

@media (max-width: 768px) {
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .zone-legend {
        gap: 10px;
    }
    
    .timeline-numbers-container {
        gap: 6px;
        padding: 8px;
    }
    
    .zone-number {
        width: 38px;
        height: 38px;
        font-size: 1em;
    }
    
    .timeline-zone {
        font-size: 0.6em;
        padding: 1px 4px;
    }
    
    .timeline-time {
        font-size: 0.6em;
    }
}

@media (max-width: 480px) {
    .zone-timeline-section {
        padding: 15px;
    }
    
    .timeline-numbers-container {
        gap: 4px;
        padding: 6px;
    }
    
    .zone-number {
        width: 35px;
        height: 35px;
        font-size: 0.9em;
        border-width: 2px;
    }
    
    .legend-item {
        font-size: 0.8em;
    }
    
    .zone-color-voisins,
    .zone-color-tiers,
    .zone-color-orphelins,
    .zone-color-zero {
        width: 14px;
        height: 14px;
    }
}

/* Full Width Section Styles */
.full-width-section {
    width: 100%;
    margin-bottom: 30px;
}

.full-width-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    width: 100%;
}

.full-width-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.full-width-card .card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.full-width-card .card-header i {
    font-size: 1.5em;
    margin-right: 10px;
    color: #2a5298;
}

.full-width-card .card-header h3 {
    color: #333;
    font-size: 1.3em;
    margin: 0;
    flex-grow: 1;
}

/* Sequence Timeline Styles */
.sequence-controls {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.sequence-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.sequence-selector label {
    font-weight: 600;
    color: #333;
    margin: 0;
    white-space: nowrap;
}

.sequence-selector .form-control {
    min-width: 200px;
    flex: 1;
}

.sequence-timeline-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.sequence-timeline {
    background: white;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sequence-timeline-empty {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
    background: white;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

.timeline-group {
    font-size: 0.6em;
    font-weight: 600;
    color: #333;
    background: rgba(255,255,255,0.9);
    padding: 1px 4px;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    min-height: 16px;
    max-width: 55px;
    line-height: 1.1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sequence-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8em;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.9);
    transition: all 0.3s ease;
}

.sequence-number:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid rgba(255,255,255,0.8);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .full-width-card {
        padding: 15px;
        margin: 0 -10px;
        border-radius: 8px;
    }
    
    .full-width-card .card-header h3 {
        font-size: 1.1em;
    }
    
    .sequence-controls {
        padding: 12px;
    }
    
    .sequence-selector {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .sequence-selector .form-control {
        min-width: 100%;
    }
    
    .sequence-timeline-section {
        padding: 15px;
    }
    
    .timeline-number {
        width: 55px;
        height: 70px;
    }
    
    .sequence-number {
        width: 28px;
        height: 28px;
        font-size: 0.7em;
    }
    
    .timeline-group {
        font-size: 0.5em;
        padding: 1px 3px;
        max-width: 50px;
        min-height: 14px;
    }
    
    .timeline-number-info {
        height: 32px;
    }
}

@media (max-width: 480px) {
    .full-width-card {
        padding: 12px;
        margin: 0 -5px;
    }
    
    .full-width-card .card-header h3 {
        font-size: 1em;
    }
    
    .timeline-number {
        width: 50px;
        height: 65px;
    }
    
    .sequence-number {
        width: 26px;
        height: 26px;
        font-size: 0.7em;
        border-width: 1px;
    }
    
    .timeline-group {
        font-size: 0.5em;
        max-width: 45px;
        min-height: 12px;
    }
    
    .timeline-number-info {
        height: 30px;
    }
    
    .legend-color {
        width: 14px;
        height: 14px;
    }
}

/* Timeline Numbers Styles - Melhorado */
.timeline-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
}

.timeline-numbers::-webkit-scrollbar {
    width: 8px;
}

.timeline-numbers::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.timeline-numbers::-webkit-scrollbar-thumb {
    background: #2a5298;
    border-radius: 4px;
}

.timeline-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9em;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.2s ease;
    cursor: pointer;
}

.timeline-number:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Cores para timeline - Regiões */
.timeline-number.voisins {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.timeline-number.tiers {
    background: linear-gradient(135deg, #FF9800, #F57C00);
}

.timeline-number.orphelins {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
}

.timeline-number.zero {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
}

/* Cores para timeline - Dúzias */
.timeline-number.primeira {
    background: linear-gradient(135deg, #E91E63, #C2185B);
}

.timeline-number.segunda {
    background: linear-gradient(135deg, #3F51B5, #303F9F);
}

.timeline-number.terceira {
    background: linear-gradient(135deg, #FF5722, #D84315);
}

/* Cores para timeline - Cores dos números */
.timeline-number.red {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.timeline-number.black {
    background: linear-gradient(135deg, #495057, #343a40);
}

.timeline-number.green {
    background: linear-gradient(135deg, #28a745, #218838);
}

/* Timeline Legend Melhorada */
.timeline-legend {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin: 10px 0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 20px;
    border: 1px solid #dee2e6;
    font-size: 0.85em;
    font-weight: 500;
    color: #495057;
    transition: all 0.2s ease;
}

.legend-item:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.8);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.legend-color.voisins {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.legend-color.tiers {
    background: linear-gradient(135deg, #FF9800, #F57C00);
}

.legend-color.orphelins {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
}

.legend-color.zero {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
}

.legend-color.primeira {
    background: linear-gradient(135deg, #E91E63, #C2185B);
}

.legend-color.segunda {
    background: linear-gradient(135deg, #3F51B5, #303F9F);
}

.legend-color.terceira {
    background: linear-gradient(135deg, #FF5722, #D84315);
}

.legend-color.red {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.legend-color.black {
    background: linear-gradient(135deg, #495057, #343a40);
}

.legend-color.green {
    background: linear-gradient(135deg, #28a745, #218838);
}

/* Timeline Info */
.timeline-info {
    text-align: center;
    font-size: 0.85em;
    color: #6c757d;
    margin-top: 10px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

/* Number Cell Melhorado */
.number-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.95em;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border: 2px solid rgba(255,255,255,0.2);
    transition: all 0.2s ease;
    position: relative;
}

.number-cell:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Cores dos números da roleta */
.number-cell.red {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.number-cell.black {
    background: linear-gradient(135deg, #495057, #343a40);
}

.number-cell.green {
    background: linear-gradient(135deg, #28a745, #218838);
}

/* Frequency Badge */
.frequency-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #007bff;
    color: white;
    font-size: 0.7em;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.frequency-badge.cold {
    background: #6c757d;
}

/* Recent Numbers Styles */
.numbers-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    max-height: 200px;
    overflow-y: auto;
}

.number-with-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.number-with-time:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.number-with-time.recent-number {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 2px solid #ffc107;
}

.number-time {
    font-size: 0.75em;
    color: #6c757d;
    font-weight: 500;
}

.number-date {
    font-size: 0.7em;
    color: #868e96;
}

/* Responsive */
@media (max-width: 768px) {
    .timeline-numbers {
        gap: 3px;
        padding: 10px;
    }
    
    .timeline-number {
        width: 28px;
        height: 28px;
        font-size: 0.8em;
    }
    
    .number-cell {
        width: 32px;
        height: 32px;
        font-size: 0.85em;
    }
    
    .timeline-legend {
        gap: 10px;
    }
    
    .legend-item {
        padding: 4px 8px;
        font-size: 0.8em;
    }
}

/* Distribution Charts - Melhorado */
.distribution-chart {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.color-section, .parity-section, .range-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.2s ease;
    min-height: 45px;
}

.color-section:hover, .parity-section:hover, .range-section:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Cores específicas para cada seção */
.color-section:nth-child(1) {
    background: linear-gradient(90deg, #dc3545 0%, #dc3545 var(--percentage), #f8f9fa var(--percentage));
    color: white;
    font-weight: 700;
}

.color-section:nth-child(2) {
    background: linear-gradient(90deg, #495057 0%, #495057 var(--percentage), #f8f9fa var(--percentage));
    color: white;
    font-weight: 700;
}

.color-section:nth-child(3) {
    background: linear-gradient(90deg, #28a745 0%, #28a745 var(--percentage), #f8f9fa var(--percentage));
    color: white;
    font-weight: 700;
}

.parity-section:nth-child(1) {
    background: linear-gradient(90deg, #007bff 0%, #007bff var(--percentage), #f8f9fa var(--percentage));
    color: white;
    font-weight: 700;
}

.parity-section:nth-child(2) {
    background: linear-gradient(90deg, #fd7e14 0%, #fd7e14 var(--percentage), #f8f9fa var(--percentage));
    color: white;
    font-weight: 700;
}

.parity-section:nth-child(3) {
    background: linear-gradient(90deg, #28a745 0%, #28a745 var(--percentage), #f8f9fa var(--percentage));
    color: white;
    font-weight: 700;
}

.range-section:nth-child(1) {
    background: linear-gradient(90deg, #6f42c1 0%, #6f42c1 var(--percentage), #f8f9fa var(--percentage));
    color: white;
    font-weight: 700;
}

.range-section:nth-child(2) {
    background: linear-gradient(90deg, #e83e8c 0%, #e83e8c var(--percentage), #f8f9fa var(--percentage));
    color: white;
    font-weight: 700;
}

.range-section:nth-child(3) {
    background: linear-gradient(90deg, #28a745 0%, #28a745 var(--percentage), #f8f9fa var(--percentage));
    color: white;
    font-weight: 700;
}

.color-label, .parity-label, .range-label {
    font-size: 0.9em;
    font-weight: 600;
}

.color-count, .parity-count, .range-count {
    font-size: 1.1em;
    font-weight: 700;
    min-width: 40px;
    text-align: right;
}

/* Zero Tracking Styles - Melhorado */
.zero-tracking-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.last-zero-time, .time-without-zero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.last-zero-time:hover, .time-without-zero:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.last-zero-time label, .time-without-zero label {
    font-size: 0.9em;
    color: #6c757d;
    font-weight: 500;
    margin: 0;
}

#lastZeroTime, #timeWithoutZero {
    font-size: 1.1em;
    font-weight: 700;
    color: #495057;
}

/* Informações extras dos zeros */
#quantidadeZeros, #intervaloMedioZero, #penultimoZeroTime {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    margin-bottom: 8px;
    font-size: 0.85em;
    color: #6c757d;
    transition: all 0.2s ease;
}

#quantidadeZeros:hover, #intervaloMedioZero:hover, #penultimoZeroTime:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

/* Destaque para tempo sem zero alto */
#timeWithoutZero {
    transition: all 0.3s ease;
}

.time-without-zero[data-high-time="true"] #timeWithoutZero {
    color: #dc3545;
    font-weight: 900;
    animation: pulse-attention 2s infinite;
}

@keyframes pulse-attention {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Destination Groups - Melhor espaçamento */
.destination-group {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.destination-group:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.source-number {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.destination-numbers {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Recent Numbers - Altura aumentada */
.numbers-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    min-height: 300px; /* Altura mínima aumentada */
    max-height: 400px; /* Altura máxima aumentada */
    overflow-y: auto;
}

/* Strategy Validation - Layout melhorado */
.strategy-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.strategy-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.strategy-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #e9ecef;
}

.strategy-name {
    font-weight: 700;
    font-size: 1.1em;
    color: #495057;
}

.strategy-performance {
    font-weight: 700;
    font-size: 1.1em;
    padding: 4px 12px;
    border-radius: 20px;
    background: #e9ecef;
    color: #495057;
}

.strategy-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.strategy-status.positive {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-color: #28a745;
    font-weight: 700;
}

.strategy-status.negative {
    background: linear-gradient(135deg, #f8d7da 0%, #f1b0b7 100%);
    color: #721c24;
    border-color: #dc3545;
    font-weight: 700;
}

.strategy-status.neutral {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-color: #ffc107;
    font-weight: 700;
}

.strategy-expand-btn {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.strategy-expand-btn:hover {
    background: #0056b3;
    transform: scale(1.1);
}

.strategy-description {
    padding: 15px 20px;
    color: #6c757d;
    font-size: 0.9em;
    line-height: 1.5;
}

.strategy-controls {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Modal Styles - Melhorado */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 90vw;
    max-height: 90vh;
    width: 800px;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: #495057;
    font-size: 1.25em;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #6c757d;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #e9ecef;
    color: #495057;
}

.modal-body {
    padding: 25px;
}

/* Estilos para detalhes da estratégia */
.detail-section {
    margin-bottom: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.detail-section h5 {
    margin-bottom: 15px;
    color: #495057;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sequence-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.summary-item {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.summary-value {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 5px;
}

.summary-item.positive .summary-value {
    color: #28a745;
}

.summary-item.negative .summary-value {
    color: #dc3545;
}

.summary-label {
    font-size: 0.85em;
    color: #6c757d;
}

.sequence-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.sequence-table th,
.sequence-table td {
    padding: 8px 12px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.sequence-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.win-row {
    background: rgba(40, 167, 69, 0.1);
}

.loss-row {
    background: rgba(220, 53, 69, 0.1);
}

.balance-positive {
    color: #28a745;
    font-weight: 600;
}

.balance-negative {
    color: #dc3545;
    font-weight: 600;
}

.recommendation-box {
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid;
}

.recommendation-box.success {
    background: rgba(40, 167, 69, 0.1);
    border-left-color: #28a745;
}

.recommendation-box.neutral {
    background: rgba(255, 193, 7, 0.1);
    border-left-color: #ffc107;
}

.recommendation-box.failure {
    background: rgba(220, 53, 69, 0.1);
    border-left-color: #dc3545;
}

.recommendation-title {
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recommendation-list {
    margin: 0;
    padding-left: 20px;
}

.recommendation-list li {
    margin-bottom: 5px;
    line-height: 1.4;
}

/* Timeline Numbers - Números visíveis em branco */
.timeline-number {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    color: white !important;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.3);
    line-height: 1;
}

.timeline-number:hover {
    transform: scale(1.3);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Cores específicas para timeline */
.timeline-number.red {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.timeline-number.black {
    background: linear-gradient(135deg, #343a40, #212529);
}

.timeline-number.green {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

/* Container da timeline */
.timeline-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    justify-content: center;
    align-items: center;
}

/* Strategy Validation - Design Premium */
.strategy-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    position: relative;
}

.strategy-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.strategy-item:hover {
    box-shadow: 0 8px 25px rgba(0,123,255,0.15);
    transform: translateY(-2px);
    border-color: #007bff;
}

.strategy-item:hover::before {
    opacity: 1;
}

.strategy-header {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 15px;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e9ecef;
}

.strategy-name {
    font-weight: 700;
    font-size: 1.2em;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.strategy-name::before {
    content: '📊';
    margin-right: 10px;
    font-size: 1.1em;
}

.strategy-performance {
    font-weight: 700;
    font-size: 1.1em;
    padding: 8px 16px;
    border-radius: 25px;
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    color: #495057;
    border: 2px solid #dee2e6;
    min-width: 80px;
    text-align: center;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.strategy-performance[class*="R$"] {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-color: #28a745;
}

.strategy-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid;
}

.strategy-status.positive {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-color: #28a745;
}

.strategy-status.negative {
    background: linear-gradient(135deg, #f8d7da 0%, #f1b0b7 100%);
    color: #721c24;
    border-color: #dc3545;
}

.strategy-status.neutral {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-color: #ffc107;
}

.strategy-expand-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
    position: relative;
    overflow: hidden;
}

.strategy-expand-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.strategy-expand-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: scale(1.1) rotate(180deg);
    box-shadow: 0 4px 15px rgba(0,123,255,0.4);
}

.strategy-expand-btn:hover::before {
    width: 100%;
    height: 100%;
}

.strategy-description {
    padding: 20px 25px;
    color: #6c757d;
    font-size: 0.95em;
    line-height: 1.6;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-top: 1px solid #f0f0f0;
}

.strategy-controls {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
}

.strategy-target-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.strategy-target-selector label {
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    margin: 0;
}

.strategy-target-selector select {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9em;
    color: #495057;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.strategy-target-selector select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
    outline: none;
}

/* Timeline Numbers - Compacto e melhorado */
.timeline-number {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    color: white !important;
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.2);
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.timeline-number:hover {
    transform: scale(2);
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    border: 2px solid white;
}

/* Container da timeline - Mais compacto */
.timeline-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    padding: 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 1px solid #dee2e6;
    justify-content: flex-start;
    align-items: center;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.timeline-container {
    background: white;
    border-radius: 12px;
    padding: 15px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.timeline-info {
    margin-top: 10px;
    text-align: center;
    color: #6c757d;
    font-size: 0.85em;
    font-style: italic;
}

/* Timeline Header */
.timeline-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 15px;
}

.timeline-header h5 {
    margin: 0 0 5px 0;
    color: #495057;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-header small {
    color: #6c757d;
    font-size: 0.85em;
    display: block;
    margin-top: 5px;
}

/* Strategy Validation - Design Premium Vertical */
.strategy-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: none;
}

.strategy-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.strategy-item:hover {
    box-shadow: 0 8px 25px rgba(0,123,255,0.15);
    transform: translateY(-2px);
    border-color: #007bff;
}

.strategy-item:hover::before {
    opacity: 1;
}

.strategy-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e9ecef;
}

.strategy-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Removido - agora está no .strategy-name-container */

.strategy-name::before {
    content: '📊';
    margin-right: 10px;
    font-size: 1.1em;
}

.strategy-expand-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.strategy-expand-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.strategy-expand-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: scale(1.1) rotate(180deg);
    box-shadow: 0 4px 15px rgba(0,123,255,0.4);
}

.strategy-expand-btn:hover::before {
    width: 100%;
    height: 100%;
}

.strategy-header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.strategy-performance {
    font-weight: 700;
    font-size: 1.2em;
    padding: 10px 20px;
    border-radius: 25px;
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    color: #495057;
    border: 2px solid #dee2e6;
    text-align: center;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    flex: 1;
    max-width: 180px;
}

.strategy-performance[class*="R$"] {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-color: #28a745;
}

.strategy-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid;
    flex: 1;
    text-align: center;
    max-width: 120px;
}

.strategy-status.positive {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-color: #28a745;
}

.strategy-status.negative {
    background: linear-gradient(135deg, #f8d7da 0%, #f1b0b7 100%);
    color: #721c24;
    border-color: #dc3545;
}

.strategy-status.neutral {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-color: #ffc107;
}

.strategy-description {
    padding: 20px 25px;
    color: #6c757d;
    font-size: 0.95em;
    line-height: 1.6;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-top: 1px solid #f0f0f0;
}

.strategy-controls {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
}

.strategy-target-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.strategy-target-selector label {
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    margin: 0;
}

.strategy-target-selector select {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 1em;
    color: #495057;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    min-width: 150px;
}

.strategy-target-selector select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
    outline: none;
}

/* Container das estratégias - largura total */
.strategies-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

/* Seção de estratégias - largura completa */
#strategyValidation {
    width: 100%;
    max-width: none;
}

/* Grid para o container principal de estratégias */
.analysis-section.strategy-validation {
    grid-column: 1 / -1; /* Ocupar toda a largura do grid */
    width: 100%;
}

.strategy-name-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.strategy-name {
    font-weight: 700;
    font-size: 1.2em;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.strategy-name::before {
    content: '📊';
    margin-right: 10px;
    font-size: 1.1em;
}

.strategy-info-icon {
    color: #6c757d;
    font-size: 1em;
    cursor: help;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0.7;
}

.strategy-info-icon:hover {
    color: #007bff;
    opacity: 1;
    transform: scale(1.2);
}

/* Tooltip customizado para descrições */
.strategy-info-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: normal;
    line-height: 1.4;
    white-space: normal;
    width: 280px;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    pointer-events: none;
}

.strategy-info-icon::before {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.strategy-info-icon:hover::after,
.strategy-info-icon:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Remover estilos antigos da descrição */
.strategy-description {
    display: none;
}

/* Strategy Validation - Layout Compacto Inline */
.strategy-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: none;
}

.strategy-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.strategy-item:hover {
    box-shadow: 0 4px 12px rgba(0,123,255,0.1);
    transform: translateY(-1px);
    border-color: #007bff;
}

.strategy-item:hover::before {
    opacity: 1;
}

.strategy-header-inline {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.strategy-name-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.strategy-name {
    font-weight: 700;
    font-size: 1em;
    color: #2c3e50;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.strategy-name::before {
    content: '📊';
    margin-right: 8px;
    font-size: 0.9em;
}

.strategy-info-icon {
    color: #6c757d;
    font-size: 0.9em;
    cursor: help;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0.7;
    flex-shrink: 0;
}

.strategy-info-icon:hover {
    color: #007bff;
    opacity: 1;
    transform: scale(1.1);
}

.strategy-performance {
    font-weight: 700;
    font-size: 1em;
    padding: 6px 12px;
    border-radius: 15px;
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    color: #495057;
    border: 1px solid #dee2e6;
    text-align: center;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
    min-width: 80px;
    flex-shrink: 0;
}

.strategy-performance[class*="R$"] {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-color: #28a745;
}

.strategy-status {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: 1px solid;
    text-align: center;
    min-width: 70px;
    flex-shrink: 0;
}

.strategy-status.positive {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-color: #28a745;
}

.strategy-status.negative {
    background: linear-gradient(135deg, #f8d7da 0%, #f1b0b7 100%);
    color: #721c24;
    border-color: #dc3545;
}

.strategy-status.neutral {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-color: #ffc107;
}

.strategy-expand-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,123,255,0.2);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.strategy-expand-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.strategy-expand-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: scale(1.05) rotate(180deg);
    box-shadow: 0 3px 10px rgba(0,123,255,0.3);
}

.strategy-expand-btn:hover::before {
    width: 100%;
    height: 100%;
}

/* Controles no topo */
.strategy-controls-top {
    margin-bottom: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
}

.strategy-target-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.strategy-target-selector label {
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 0.95em;
}

.strategy-target-selector select {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.9em;
    color: #495057;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    min-width: 130px;
}

.strategy-target-selector select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
    outline: none;
}

/* Container das estratégias - compacto */
.strategies-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

/* Tooltip ajustado para layout compacto */
.strategy-info-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.8em;
    font-weight: normal;
    line-height: 1.3;
    white-space: normal;
    width: 250px;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    pointer-events: none;
}

.strategy-info-icon::before {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.strategy-info-icon:hover::after,
.strategy-info-icon:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Strategy Validation - Layout Ultra Compacto para 33.3% */
.strategy-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: none;
}

.strategy-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.strategy-item:hover {
    box-shadow: 0 2px 8px rgba(0,123,255,0.1);
    transform: translateY(-1px);
    border-color: #007bff;
}

.strategy-item:hover::before {
    opacity: 1;
}

.strategy-header-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 40px;
}

.strategy-name-container {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.strategy-name {
    font-weight: 700;
    font-size: 0.85em;
    color: #2c3e50;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.strategy-name::before {
    content: '📊';
    margin-right: 4px;
    font-size: 0.8em;
    flex-shrink: 0;
}

.strategy-info-icon {
    color: #6c757d;
    font-size: 0.8em;
    cursor: help;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0.7;
    flex-shrink: 0;
}

.strategy-info-icon:hover {
    color: #007bff;
    opacity: 1;
    transform: scale(1.1);
}

.strategy-performance {
    font-weight: 700;
    font-size: 0.8em;
    padding: 4px 8px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    color: #495057;
    border: 1px solid #dee2e6;
    text-align: center;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
    min-width: 60px;
    flex-shrink: 0;
    white-space: nowrap;
}

.strategy-performance[class*="R$"] {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-color: #28a745;
}

.strategy-status {
    padding: 4px 6px;
    border-radius: 10px;
    font-size: 0.7em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    border: 1px solid;
    text-align: center;
    min-width: 50px;
    max-width: 60px;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.strategy-status.positive {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-color: #28a745;
}

.strategy-status.negative {
    background: linear-gradient(135deg, #f8d7da 0%, #f1b0b7 100%);
    color: #721c24;
    border-color: #dc3545;
}

.strategy-status.neutral {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-color: #ffc107;
}

.strategy-expand-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(0,123,255,0.2);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    font-size: 0.8em;
}

.strategy-expand-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.strategy-expand-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: scale(1.05) rotate(180deg);
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
}

.strategy-expand-btn:hover::before {
    width: 100%;
    height: 100%;
}

/* Controles no topo - compactos */
.strategy-controls-top {
    margin-bottom: 15px;
    padding: 12px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 6px;
    border: 1px solid #dee2e6;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
}

.strategy-target-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.strategy-target-selector label {
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 0.9em;
}

.strategy-target-selector select {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.85em;
    color: #495057;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 150px;
}

.strategy-target-selector select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
    outline: none;
}

/* Container das estratégias - ultra compacto */
.strategies-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

/* Tooltip ajustado para espaços pequenos */
.strategy-info-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    right: 0;
    transform: translateX(20%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75em;
    font-weight: normal;
    line-height: 1.3;
    white-space: normal;
    width: 200px;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    pointer-events: none;
}

.strategy-info-icon::before {
    content: '';
    position: absolute;
    bottom: 120%;
    right: 15px;
    border: 4px solid transparent;
    border-top-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.strategy-info-icon:hover::after,
.strategy-info-icon:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Responsividade para larguras pequenas */
@media (max-width: 500px) {
    .strategy-header-inline {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .strategy-name {
        max-width: 80px;
        font-size: 0.8em;
    }
    
    .strategy-performance {
        font-size: 0.75em;
        min-width: 50px;
    }
    
    .strategy-status {
        font-size: 0.65em;
        min-width: 40px;
    }
    
    .strategy-expand-btn {
        width: 24px;
        height: 24px;
        font-size: 0.7em;
    }
}

/* Botão Timeline da Estratégia */
.strategy-timeline-btn {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(23,162,184,0.2);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    font-size: 0.8em;
}

.strategy-timeline-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.strategy-timeline-btn:hover {
    background: linear-gradient(135deg, #138496 0%, #0e6b74 100%);
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(23,162,184,0.3);
}

.strategy-timeline-btn:hover::before {
    width: 100%;
    height: 100%;
}

/* Modal Timeline da Estratégia */
.strategy-timeline-modal {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.timeline-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}

.summary-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

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

.stat-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9em;
}

.stat-value {
    font-weight: 700;
    font-size: 1.1em;
}

.stat-value.positive {
    color: #28a745;
}

.stat-value.negative {
    color: #dc3545;
}

.stat-value .positive {
    color: #28a745;
    font-weight: 600;
}

.stat-value .negative {
    color: #dc3545;
    font-weight: 600;
}

.stat-value .neutral {
    color: #ffc107;
    font-weight: 600;
}

.timeline-explanation {
    background: #e7f3ff;
    border: 1px solid #b8daff;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.timeline-explanation .positive {
    color: #28a745;
    font-weight: 600;
}

.timeline-explanation .negative {
    color: #dc3545;
    font-weight: 600;
}

.timeline-explanation .neutral {
    color: #856404;
    font-weight: 600;
}

.timeline-container {
    margin-bottom: 20px;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.timeline-segment {
    background: white;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid;
}

.timeline-segment.positive {
    border-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.timeline-segment.negative {
    border-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da 0%, #f1b0b7 100%);
}

.timeline-segment.neutral {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
}

.timeline-segment:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.segment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 5px;
}

.segment-number {
    font-weight: 700;
    font-size: 1.1em;
    background: rgba(0,0,0,0.1);
    padding: 2px 8px;
    border-radius: 12px;
    color: #495057;
}

.segment-range {
    font-size: 0.8em;
    color: #6c757d;
    font-weight: 500;
}

.segment-result {
    text-align: center;
}

.segment-profit {
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 5px;
}

.segment-profit.positive {
    color: #155724;
}

.segment-profit.negative {
    color: #721c24;
}

.segment-profit.neutral {
    color: #856404;
}

.segment-stats {
    font-size: 0.9em;
    color: #6c757d;
    margin-bottom: 3px;
}

.segment-maxbet {
    font-size: 0.8em;
    color: #6c757d;
    font-style: italic;
}

.strategy-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.strategy-info h4 {
    color: #495057;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.strategy-info h4::before {
    content: '📊';
    font-size: 1.2em;
}

.strategy-info p {
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
}

/* Responsividade para Timeline */
@media (max-width: 768px) {
    .timeline-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 8px;
        padding: 10px;
    }
    
    .summary-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .strategy-timeline-modal {
        max-width: 95vw;
        margin: 20px;
    }
}

/* Strategy Validation - Layout com Nome Centralizado */
.strategy-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: none;
}

.strategy-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.strategy-item:hover {
    box-shadow: 0 2px 8px rgba(0,123,255,0.1);
    transform: translateY(-1px);
    border-color: #007bff;
}

.strategy-item:hover::before {
    opacity: 1;
}

/* Cabeçalho com nome centralizado */
.strategy-name-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px 8px 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 2px solid #dee2e6;
    position: relative;
    margin-bottom: 1px;
}

.strategy-name-centered {
    font-weight: 700;
    font-size: 1em;
    color: #2c3e50;
    display: flex;
    align-items: center;
    text-align: center;
    flex: 1;
    justify-content: center;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.strategy-name-centered::before {
    content: '📊';
    margin-right: 8px;
    font-size: 1em;
    flex-shrink: 0;
}

.strategy-info-icon {
    color: #6c757d;
    font-size: 0.85em;
    cursor: help;
    transition: all 0.3s ease;
    position: absolute;
    right: 12px;
    opacity: 0.7;
    flex-shrink: 0;
}

.strategy-info-icon:hover {
    color: #007bff;
    opacity: 1;
    transform: scale(1.1);
}

/* Linha dos valores abaixo do nome */
.strategy-values-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-top: 1px solid #f1f3f5;
    flex-wrap: nowrap;
    overflow: hidden;
}

.strategy-buttons {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.strategy-performance[class*="R$"] {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-color: #28a745;
}

.strategy-status {
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1px;
    border: 1px solid;
    text-align: center;
    min-width: 60px;
    max-width: 70px;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.strategy-status.positive {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-color: #28a745;
    font-weight: 700;
}

.strategy-status.negative {
    background: linear-gradient(135deg, #f8d7da 0%, #f1b0b7 100%);
    color: #721c24;
    border-color: #dc3545;
    font-weight: 700;
}

.strategy-status.neutral {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-color: #ffc107;
    font-weight: 700;
}

.strategy-timeline-btn {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(23,162,184,0.2);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    font-size: 0.8em;
}

.strategy-timeline-btn:hover {
    background: linear-gradient(135deg, #138496 0%, #0e6b74 100%);
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(23,162,184,0.3);
}

.strategy-expand-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(0,123,255,0.2);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    font-size: 0.8em;
}

.strategy-expand-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: scale(1.05) rotate(180deg);
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
}

/* Elementos do Modal Timeline */
.segment-numbers {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.numbers-label {
    font-size: 0.7em;
    color: #6c757d;
    margin-bottom: 4px;
    font-weight: 600;
}

.numbers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.timeline-number-item {
    background: #f8f9fa;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 0.7em;
    font-weight: 600;
    border: 1px solid #dee2e6;
}

.segment-details {
    margin-top: 10px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.details-header {
    display: grid;
    grid-template-columns: 30px 50px 60px 60px 60px;
    gap: 8px;
    font-weight: 600;
    font-size: 0.7em;
    color: #495057;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid #dee2e6;
}

.bet-detail {
    display: grid;
    grid-template-columns: 30px 50px 60px 60px 60px;
    gap: 8px;
    font-size: 0.7em;
    padding: 3px 0;
    align-items: center;
}

.bet-detail.win {
    background: rgba(40, 167, 69, 0.1);
    border-radius: 3px;
    padding: 3px 6px;
}

.bet-detail.loss {
    background: rgba(220, 53, 69, 0.1);
    border-radius: 3px;
    padding: 3px 6px;
}

.bet-number {
    font-weight: 700;
    text-align: center;
}

.bet-time {
    font-size: 0.65em;
    color: #6c757d;
}

.bet-amount, .bet-balance {
    font-weight: 600;
    text-align: right;
}

.bet-result {
    font-weight: 600;
    text-align: center;
    font-size: 0.65em;
}

.timeline-segment {
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-segment:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.strategy-performance {
    font-weight: 700;
    font-size: 0.85em;
    padding: 6px 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    color: #495057;
    border: 1px solid #dee2e6;
    text-align: center;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
    min-width: 70px;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

