:root {
    --primary: #00C3FF;
    --success: #00D37A;
    --danger: #FF3B5C;
    --dark: #0A0E17;
    --light: #FFFFFF;
    --gray: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* NOVO: Estilos para cards de análise guiada */
.double-chance-cards, .analysis-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.success-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.success-content {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid var(--success);
}

.success-content i {
    font-size: 3rem;
    color: var(--success);
    margin-bottom: 15px;
}

.success-content h3 {
    color: var(--success);
    margin-bottom: 10px;
}

.analysis-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color:var(--light);
}

.analysis-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    transition: all 0.3s ease;
}

.analysis-card.high-confidence::before {
    background: linear-gradient(135deg, #00D37A, #00A85C);
}

.analysis-card.medium-confidence::before {
    background: linear-gradient(135deg, #FFD166, #FF9E6D);
}

.analysis-card.low-confidence::before {
    background: linear-gradient(135deg, #FF6B6B, #FF3B5C);
}

.analysis-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    color: var(--light);
}

.card-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--light);
    margin: 0;
    flex: 1;
}

.confidence-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.confidence-badge.high-confidence {
    background: linear-gradient(135deg, #00D37A, #00A85C);
    color: white;
}

.confidence-badge.medium-confidence {
    background: linear-gradient(135deg, #FFD166, #FF9E6D);
    color: #333;
}

.confidence-badge.low-confidence {
    background: linear-gradient(135deg, #FF6B6B, #FF3B5C);
    color: white;
}

.card-content {
    color: var(--light);
}

.main-prediction {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(0, 195, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(0, 195, 255, 0.2);
    color:var(--light);
}

.prediction-type {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary);
}

.prediction-probability {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00C3FF, #00D37A);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.probabilities-detail {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.prob-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-align: center;
}

.prob-label {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 5px;
}

.prob-value {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Cores específicas para cada tipo de probabilidade */
.prob-item:nth-child(1) .prob-value { color: #00C3FF; } /* Casa */
.prob-item:nth-child(2) .prob-value { color: #FFD166; } /* Empate */
.prob-item:nth-child(3) .prob-value { color: #FF6B6B; } /* Fora */

.no-results {
    text-align: center;
    padding: 40px;
    color: var(--gray);
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid var(--border);
}

/* Responsividade */
@media (max-width: 768px) {
    .double-chance-cards, .analysis-cards {
        grid-template-columns: 1fr;
    }
    
    .probabilities-detail {
        grid-template-columns: 1fr;
    }
    
    .main-prediction {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .card-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .confidence-badge {
        align-self: flex-start;
    }
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--dark), #05080F);
    color: var(--dark);
    min-height: 100vh;
    overflow-x: hidden;
    padding: 40px 20px;
    background-image: url('../Imagens/backgroundfutebol.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}


/* Novo estilo para o botão de detalhes */
.details-toggle-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    margin-top: 10px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.8em;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-left: 15px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.match-date-info {
    margin-left: 10px;
    margin-top: 4px;
    margin-bottom: 5px;
    color: rgb(255, 255, 255);
}

.match-media-info {
    margin-left: 10px;
    margin-top: 15px;
    margin-bottom: 5px;
    color: rgb(255, 255, 255);
}

.details-toggle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.details-toggle-btn:hover::before {
    left: 100%;
}

.details-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Container das probabilidades na vertical */
.all-probabilities-container {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.probability-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.probability-market {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    border-left: 3px solid var(--primary);
}

.probability-market-title {
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 0.9em;
    border-bottom: 1px solid var(--border);
    padding-bottom: 5px;
}

.prob-items-vertical {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.prob-item-vertical {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    transition: background 0.3s ease;
}

.prob-item-vertical:hover {
    background: rgba(0, 195, 255, 0.1);
}

/* Ajuste no header dos jogos para alinhar o botão */
.prediction-item h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.match-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

/* Status badge ajustado */
.status-live {
    background: linear-gradient(135deg, #FF3B5C, #FF6B9C);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Background Geral */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    color: var(--light);
    padding-top: 20px;
    padding-bottom :20px;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 35x;
    padding-bottom: 25px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);

}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00C3FF, #00D37A);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

h1 {
    text-align: center;
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 30px;
    background: linear-gradient(45deg, #ff6b35, #ff8e53, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 107, 53, 0.3);
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff6b35, transparent);
}



.header p {
    color: var(--light);
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Control Panel */
.control-panel {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 35px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
}

.button-group {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
    justify-content: center;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #00C3FF, #00D37A);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #FF3B5C, #FF6B9C);
    color: white;
    display:flex;
    flex-wrap:nowrap;
    padding: -20px;
}

.btn-accent {
    background: linear-gradient(135deg, #FFD166, #FF9E6D);
    color: white;
    display:none;
}

.btn-info {
    background: linear-gradient(135deg, #00C3FF, #0099CC);
    color: white;
    display:none;
}

.btn-dark {
    background: var(--dark);
    color: white;
    border: 1px solid var(--border);
    display:none;
}

.btn-guided {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    display:flex;
    flex-wrap: nowrap;
}

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

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

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

/* Loading States */
.loading-container {
    text-align: center;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 195, 255, 0.2);
    border-left: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 3s linear infinite;
    margin: 0 auto 20px;
}

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

.progress-container {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-bar {
    height: 8px;
    background: linear-gradient(135deg, #00C3FF, #00D37A);
    width: 0%;
    transition: width 0.4s ease;
}

/* Tabs */
.tab-container {
    display: flex;
    background: var(--card-bg);
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    color:var(--light);
}

.tab-button {
    flex: 1;
    padding: 25px 30px;
    background: transparent;
    border: none;
    color: var(--gray);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.tab-button.active {
    color: var(--primary);
    background: rgba(0, 195, 255, 0.1);
}

.tab-button.active::after {
    width: 80%;
}

.tab-button:hover:not(.active) {
    color: var(--light);
    background: rgba(255, 255, 255, 0.05);
}

.tab-content-container {
    background: var(--card-bg);
    border-radius: 0 0 15px 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid var(--border);
    color:var(--light);
}

.tab-content {
    display: none;
    padding: 0;
}

.tab-content.active {
    display: block;
}

/* Prediction Cards */
.prediction-grid {
    display: grid;
    gap: 25px;
    padding: 25px;
}

.prediction-card {
    background: #04b97fb5;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    color: var(--light);

}

.prediction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(135deg, #00C3FF, #00D37A);
}

.prediction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.prediction-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 15px 0;
    color: var(--light);
}

.guided-step {

    color:var(--light);
}

.match-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.match-meta {
    color: var(--gray);
    font-size: 0.9rem;
    display: flex;
    gap: 15px;
}

.live-badge {
    background: var(--danger);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ai-badge {
    background: linear-gradient(135deg, #00C3FF, #00D37A);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.prediction-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .prediction-content {
        grid-template-columns: 1fr;
    }
}

.suggestion-box, .stats-box {
    background: rgba(0, 195, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border);
}

.suggestion-box h4, .stats-box h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.prediction-list {
    list-style: none;
}

.prediction-list li {
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.prediction-text {
    font-weight: 500;
    color: var(--light);
}

.prediction-probability {
    background: linear-gradient(135deg, #00C3FF, #00D37A);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: auto;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0
}

.stats-table th, .stats-table td {
    padding: 15px 12px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    color: var(--light);
}

.stats-table th {
    font-weight: 600;
    color: var(--gray);
    font-size: 0.85rem;
}

.stats-table .stat-label {
    text-align: left;
    font-weight: 500;
    color: var(--light);
}

/* Multiple Selection */
.multiple-checkbox {
    transform: scale(1.3);
    margin-right: 10px;
    accent-color: var(--primary);
    margin-left:20px;
}

/* Results Containers */
.results-container {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    color:var(--light);
    margin-left: 20px;
}

.results-header {
    text-align: center;
    margin-bottom: 25px;
    color: #FFFFFF;
    margin-left: 20px;
    padding-top: 20px;
}

.results-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00C3FF, #00D37A);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    color:#FFFFFF;
    margin-top: 20px;
}

/* Adicionar ao CSS existente */
.suggestions-list {
    margin-top: 30px;
}

.suggestion-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin-bottom: 5px;
}

.prediction-category {
    font-size: 0.8rem;
    color: #00C3FF;
    background: rgba(0, 195, 255, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

.analysis-section {
    margin: 10px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.analysis-section h4 {
    margin-bottom: 10px;
    color: #00C3FF;
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.metric {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 6px;
    text-align: center;
}

.metric-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #00D37A;
}

.metric-label {
    font-size: 0.8rem;
    color: #ccc;
}

.complete-analysis {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
}

.probabilities, .double-chance {
    display: flex;
    justify-content: space-around;
    margin: 10px 0;
}

.prob-item, .dc-item {
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
}

.prob-home { color: #00C3FF; }
.prob-draw { color: #FFD166; }
.prob-away { color: #FF6B6B; }

.metrics-summary {
    margin-top: 15px;
}

.metric-summary {
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.multiple-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border-left: 4px solid var(--success);
}

.confidence-badge {
    background: linear-gradient(135deg, #FF3B5C, #FF6B9C);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 10px;
}

/* Status Messages */
.status-message {
    padding: 15px 20px;
    border-radius: 10px;
    margin: 15px 0;
    font-weight: 500;
}

.status-success {
    background: rgba(0, 211, 122, 0.1);
    color: var(--success);
    border: 1px solid rgba(0, 211, 122, 0.2);
}

.status-error {
    background: rgba(255, 59, 92, 0.1);
    color: var(--danger);
    border: 1px solid rgba(255, 59, 92, 0.2);
}

/* History Section */
.history-container {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
}

.history-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.history-select {
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 14px;
    min-width: 200px;
    color: var(--light);
}

/* Chatbot Styles */
.chatbot-container {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    border: 1px solid var(--border);
    display: none; /* Inicialmente escondido */
}

.chatbot-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.chatbot-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00C3FF, #00D37A);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 5px;
}

.chatbot-header p {
    color: var(--light);
    opacity: 0.8;
    font-size: 0.9rem;
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    display: flex;
    max-width: 80%;
    animation: fadeIn 0.3s ease-in;
}

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

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message.bot {
    align-self: flex-start;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    word-wrap: break-word;
    white-space: pre-wrap;
    line-height: 1.4;
}

.message.user .message-bubble {
    background: linear-gradient(135deg, #00C3FF, #00D37A);
    color: white;
    border-bottom-right-radius: 5px;
}

.message.bot .message-bubble {
    background: rgba(255,255,255,0.1);
    color: var(--light);
    border-bottom-left-radius: 5px;
    border: 1px solid var(--border);
}

.message-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 8px;
    flex-shrink: 0;
}

.message.user .message-avatar {
    background: linear-gradient(135deg, #FF3B5C, #FF6B9C);
}

.message.bot .message-avatar {
    background: linear-gradient(135deg, #00C3FF, #00D37A);
}

.chat-input-container {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.chat-input-wrapper {
    flex: 1;
    position: relative;
}

#chat-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    color: var(--light);
    font-family: 'Inter', sans-serif;
    resize: none;
    min-height: 60px;
    max-height: 120px;
    line-height: 1.4;
    transition: all 0.3s ease;
}

#chat-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 195, 255, 0.2);
}

#chat-input::placeholder {
    color: var(--gray);
}

.chat-hint {
    position: absolute;
    bottom: -20px;
    left: 0;
    font-size: 0.75rem;
    color: var(--gray);
    opacity: 0.7;
}

#send-chat-button {
    align-self: flex-end;
    padding: 12px 20px;
    height: 44px;
}

.typing-indicator {
    display: none;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-style: italic;
    margin-top: 10px;
}

.typing-dots {
    display: flex;
    gap: 3px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* Melhorar a scrollbar para o chat */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .prediction-header {
        flex-direction: column;
        gap: 10px;
        padding-top: 20px;
    }
    
    .tab-container {
        flex-wrap: wrap;
    }
    
    .tab-button {
        flex: 1 0 50%;
    }

    .message {
        max-width: 90%;
    }

    .chat-messages {
        height: 300px;
    }
}

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--success);
}

/* Botões ocultos conforme solicitado */
#update-button {
    display: none !important;
}

#history-button {
    display: none !important;
}

/* NOVO: Estilos para Análise Guiada */
.analysis-mode-selector {
    text-align: center;
    margin: 20px 0;
}

/* Modal de Análise Guiada */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    color:var(--light);
}

.modal-content {
    background-color: #1a1a1a;
    margin: 2% auto;
    padding: 25px;
    border-radius: 15px;
    width: 95%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: white;
}

.step-description {
    color: #ccc;
    margin-bottom: 20px;
    font-size: 0.95em;
}

/* Grid de Ligas - Layout melhorado */
.leagues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.league-option {
    background: #2d2d2d;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    color: white;
}

.league-option:hover {
    background: #3a3a3a;
    border-color: #007bff;
    transform: translateY(-2px);
}

.league-option.selected {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-color: #004085;
    color: white;
}

.league-name {
    font-weight: 600;
    font-size: 0.95em;
}

/* Ligas Selecionadas */
.selected-leagues {
    background: #2d2d2d;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    border-left: 4px solid #28a745;
}

.selected-leagues h4 {
    margin: 0 0 10px 0;
    color: #28a745;
}

.selected-league {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    margin: 5px;
    font-size: 0.85em;
}

/* Grid de Análise */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.analysis-option {
    background: #2d2d2d;
    padding: 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
    color: white;
}

.analysis-option:hover {
    background: #3a3a3a;
    border-color: #007bff;
}

.analysis-option.selected {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-color: #0056b3;
    color: white;
}

.analysis-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.analysis-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.analysis-desc {
    font-size: 0.9em;
    color: #ccc;
}

/* Seções de Liga nos Jogos */
.league-section {
    background: #2d2d2d;
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
}

.league-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    padding: 15px 20px;
    color: white;
}

.league-header h4 {
    margin: 0;
    font-size: 1.1em;
}

/* Cabeçalho de Data */
.date-header {
    background: #3a3a3a;
    padding: 12px 20px;
    color: #ffc107;
    font-weight: 600;
    border-bottom: 1px solid #444;
}

/* Lista de Jogos */
.matches-list {
    max-height: 400px;
    overflow-y: auto;
}

.match-option {
    background: #363636;
    padding: 15px 20px;
    margin: 0;
    border-bottom: 1px solid #444;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    color: white;
}

.match-option:hover {
    background: #404040;
}

.match-option:last-child {
    border-bottom: none;
}

.match-checkbox {
    margin-right: 15px;
}

.match-checkbox input[type="checkbox"] {
    transform: scale(1.2);
}

.match-info {
    flex: 1;
}

.match-teams {
    font-weight: bold;
    font-size: 1em;
    margin-bottom: 5px;
    color: white;
}

.match-details {
    display: flex;
    gap: 15px;
    font-size: 0.85em;
    color: #ccc;
}

.match-time {
    color: #ffc107;
}

.match-league {
    background: #007bff;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75em;
}

/* Estados de seleção */
.match-option.selected-match {
    background: linear-gradient(135deg, #28a745, #20c997);
    border-left: 4px solid #ffc107;
}

.match-option.selected-match .match-teams {
    color: white;
}

/* Loading e Estados */
.loading, .error {
    text-align: center;
    padding: 40px;
    color: #ccc;
    font-size: 1.1em;
}

.error {
    color: #dc3545;
}

/* Botões melhorados */
.btn-primary, .btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

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

/* Análise para múltiplas ligas */
#multi-league-options .analysis-option {
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto;
}

/* Navegação */
.guided-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.step-actions {
    text-align: center;
    margin-top: 20px;
}

/* Resultados da Análise Guiada */
.guided-analysis-result {
    background: #2d2d2d;
    border-radius: 10px;
    padding: 20px;
    margin: 10px 0;
    color: white;
}

.analysis-type-badge {
    background: #007bff;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    display: inline-block;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.match-analysis {
    background: #3d3d3d;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    border-left: 4px solid #007bff;
    color: white;
}

.match-header {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #fff;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin: 10px 0;
}

.metric {
    background: #4d4d4d;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    color: white;
}

.metric-value {
    font-size: 1.2em;
    font-weight: bold;
    color: #007bff;
}

.metric-label {
    font-size: 0.8em;
    color: #ccc;
}

.team-stats, .shots-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 10px 0;
}

.team-stat, .shots-stat {
    background: #4d4d4d;
    padding: 10px;
    border-radius: 5px;
    color: white;
}

.probability, .total-shots {
    background: #4d4d4d;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-top: 10px;
    color: white;
}

/* Análise Completa */
.complete-analysis {
    background: #3d3d3d;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid #28a745;
    color: white;
}

.analysis-section {
    margin: 15px 0;
    padding: 10px;
    background: #4d4d4d;
    border-radius: 5px;
    color: white;
}

.analysis-section h4 {
    margin: 0 0 10px 0;
    color: #fff;
}

.probabilities, .double-chance {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px;
    color: white;
}

.prob-home { color: #007bff; }
.prob-draw { color: #ffc107; }
.prob-away { color: #dc3545; }

.goals-metrics, .corners-metrics, .cards-metrics, .shots-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    color: white;
}

/* Estilos para Análise Personalizada - ATUALIZADO */
.match-stats {
    background: rgba(0, 195, 255, 0.1) !important;
    border-left: 4px solid var(--primary) !important;
}

.custom-prediction-item {
    padding: 15px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.custom-prediction-type {
    font-weight: 600;
    color: var(--light);
    margin-bottom: 8px;
    font-size: 1.1em;
}

.custom-prediction-analysis {
    font-size: 0.85em;
    color: var(--gray);
    margin-top: 8px;
    font-style: italic;
}

/* Indicadores de confiança */
.high-confidence {
    color: #00D37A !important;
}

.medium-confidence {
    color: #FFD166 !important;
}

.low-confidence {
    color: #FF6B6B !important;
}

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

/* Melhorias na tabela de inputs */
.custom-analysis-table td {
    position: relative;
}

.custom-analysis-table td:first-child {
    font-weight: 600;
    color: var(--primary);
    text-align: left;
}

/* Tooltip informativo */
.input-hint {
    position: absolute;
    bottom: -20px;
    left: 0;
    font-size: 0.75em;
    color: var(--gray);
    width: 100%;
    text-align: center;
}

/* Estados dos inputs */
.custom-input:valid {
    border-color: rgba(0, 211, 122, 0.3);
}

.custom-input:invalid {
    border-color: rgba(255, 107, 107, 0.3);
}

/* Responsividade melhorada */
@media (max-width: 768px) {
    .custom-analysis-results-grid {
        grid-template-columns: 1fr;
    }
    
    .custom-analysis-table {
        font-size: 0.9em;
    }
    
    .custom-analysis-table td:first-child {
        min-width: 120px;
    }
    
    .custom-input {
        width: 100%;
        max-width: 100px;
    }
}