:root {
    --positive-color: #a8d3ff;
    --negative-color: #a8d3ff;
    --bonus-color: #ffeb94;
    --success-color: #7dff7d;
    --fail-color: #ff7d7d;
    --border-color: #333;
    --header-bg: #003366;
    --header-text: white;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f0f0f0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1, h2 {
    text-align: center;
    color: #333;
}

.setup-panel, .stats-panel {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.status-select {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.status-group {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
}

.status-group h3 {
    margin-top: 0;
    color: #444;
}

select {
    width: 100%;
    padding: 8px;
    margin-bottom: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

button {
    padding: 10px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 5px;
}

button:hover {
    background-color: #45a049;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.game-board {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    border: 1px solid var(--border-color);
    padding: 8px;
    text-align: center;
}

th {
    background-color: var(--header-bg);
    color: var(--header-text);
}

.status-name {
    text-align: left;
    font-weight: bold;
    width: 150px;
}

.level-header {
    background-color: var(--header-bg);
    color: var(--header-text);
}

.slot {
    width: 40px;
    height: 40px;
    cursor: pointer;
    background-color: #f0f0f0;
    transition: background-color 0.3s;
}

.slot.positive {
    background-color: var(--positive-color);
}

.slot.negative {
    background-color: var(--negative-color);
}

.slot.bonus {
    background-color: var(--bonus-color);
}

.slot.success {
    background-color: var(--success-color);
}

.slot.fail {
    background-color: var(--fail-color);
}

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

.slot-value {
    font-weight: bold;
}

.progress-bar {
    height: 20px;
    background-color: #3498db;
    width: 0;
    border-radius: 4px;
    transition: width 0.3s;
}

.progress-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 10px;
}

.flex-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.stat-box {
    flex: 1;
    min-width: 200px;
    margin: 5px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
}

.chance-display {
    font-size: 1.2em;
    font-weight: bold;
    margin: 10px 0;
    text-align: center;
}

.section-title {
    background-color: var(--header-bg);
    color: var(--header-text);
    padding: 10px;
    margin-top: 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.total-column {
    background-color: #e6e6e6;
    font-weight: bold;
}

.donation-section {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    max-width: 200px;
    text-align: center;
    z-index: 100;
}

.qr-code-img {
    width: 150px;
    height: 150px;
    display: block;
    margin: 10px auto 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Estilos para o tour */
.tour-start-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 99;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.tour-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1000;
}

.tour-popup {
    display: none; /* Inicialmente oculto, será mostrado via JavaScript */
    position: fixed;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    max-width: 350px;
    z-index: 1002; /* Maior que o overlay */
}

.tour-content {
    margin-bottom: 15px;
}

.tour-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tour-btn {
    padding: 8px 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.tour-close-btn {
    background-color: #f44336;
}

.tour-highlight {
    position: relative;
    z-index: 1001;
    box-shadow: 0 0 0 2000px rgba(0,0,0,0.7);
    border-radius: 4px;
}
/* Adicione estes estilos ao final do seu arquivo CSS */

.tour-content {
    margin-bottom: 15px;
}

.tour-content img {
    max-width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 10px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tour-example {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
}

.tour-example-item {
    text-align: center;
    flex: 1;
    margin: 0 5px;
}

.tour-example-box {
    width: 40px;
    height: 40px;
    margin: 5px auto;
    border: 1px solid #333;
}

.tour-example-success {
    background-color: var(--success-color);
}

.tour-example-fail {
    background-color: var(--fail-color);
}

.tour-example-neutral {
    background-color: var(--positive-color);
}

.tour-popup {
    width: 380px;
    max-width: 90vw;
}