body {
    background-color: #f5f5f5; 
    margin: 0;
    padding: 20px; 
} 

.roulette-container {
    max-width: 800px;
    margin: 20px auto;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.internal-section {
    display: flex;
    height: 148px;
    margin-bottom: 1px;
}
.number {
    background-color: #000;
    color: white;
    border: 1px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    height: 50.2px;
    position: relative;
}

.zero-section {
    background-color: #006400;
    color: white;
    border: 1px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 106%;
    margin-right: 1px;
    position: relative;
}
.numbers-section {
    display: flex;
    flex-grow: 1;
}
.numbers-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 1px;
    flex-grow: 1;    
}
.number-column {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 1px;    
}
.strategy-controls {
    margin-bottom: 20px;
    text-align: center;
}
.strategy-controls input {
    padding: 8px;
    margin-right: 10px;
    width: 100px;
}
.strategy-controls button {
    padding: 12px 16px;
    background-color: #004d00;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
.strategy-controls button:hover {
    background-color: #006400;
}
.stats {
    margin-top: 15px;
    font-size: 18px;
    color: #fff;
    display: flex;
    justify-content: center;
    gap: 30px;
    background: rgba(0, 100, 0, 0.8);
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stats span {
    margin: 0;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.stats span span {
    color: #ffd700;
    margin: 0 0 0 8px;
    font-size: 20px;
}

.dozens-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin: 12px 61px 1px 43px;
}

.outside-bet {
background-color: #006400;
color: white;
border: 1px solid white;
padding: 10px;
text-align: center;
height: 20px;
display: flex;
align-items: center;
justify-content: center;
}

/* Ajuste para que cada par de apostas externas se alinhe com sua dozen correspondente */
.outside-bet:nth-child(1),
.outside-bet:nth-child(2) {
    grid-column: span 1;
    width: calc(82% - 2px);
} 

.outside-bet:nth-child(3),
.outside-bet:nth-child(4) {
    grid-column: span 1;
    width: calc(82% - 2px);
}
.outside-bet:nth-child(5),
.outside-bet:nth-child(6) {
    grid-column: span 1;
    width: calc(82% - 2px);
}

.outside-bet:last-child {
margin-right: 20px; /* Ajusta o espaçamento à direita */
}

.number, .zero-section {
    position: relative;  /* Necessário para posicionamento absoluto das fichas */
}
.number.not-selected, .zero-section.not-selected {
    filter: brightness(0.5);
}
.number.red { background-color: #c41e3a; }
.two-to-one {
    display: flex;
    flex-direction: column;
    width: 60px;
    margin-left: 1px;
    gap: 1px;
    height: 107%;
}
.col-bet {
    background-color: #006400;
    color: white;
    border: 1px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    position: relative;
    cursor: pointer;
}

.dozen-bet {
    background-color: #006400;
    color: white;
    border: 1px solid white;
    padding: 10px;
    text-align: center;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.dozen-bet.active, .col-bet.active {
    background-color: #004d00;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.2);
}

.bet-chip {
    position: absolute;
    width: 20px;
    height: 20px;
    background: linear-gradient(145deg, #ffd700, #daa520);
    border-radius: 50%;
    border: 1px solid #b8860b;
    color: #000;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    top: 2px;
    right: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.bet-chip.indicator-chip {
    background: linear-gradient(145deg, #87CEEB, #4682B4) !important;
    border: 1px solid #4169E1 !important;
    color: white !important;
    z-index: 101 !important;
    width: 24px !important;  /* +6px do tamanho original */
    height: 24px !important; /* +6px do tamanho original */
    right: 5px !important;   /* +4px para a esquerda */
    top: 3px !important;     /* +2px para baixo */
}

#message-area {
    background-color: rgba(0, 100, 0, 0.8);
    color: white;
    padding: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.outside-section {
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr; /* Ajusta as duas últimas colunas */
gap: 1px;
margin: 2px 60px 1px 43px;
}


.diamond {
    width: 20px;
    height: 20px;
    background-color: #c41e3a;
    transform: rotate(45deg);
}
.diamond.black {
    background-color: #000;
}

#selected-number {
margin-top: 20px;
padding: 15px;
background-color: #135813;
color: white;
border-radius: 5px;
text-align: center;
font-size: 18px;
font-weight: bold;
border: 1px solid rgba(255, 255, 255, 0.3);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
padding: 12px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.roulette-table {
background-color: #006400;
padding: 10px;
border-radius: 10px;
margin-bottom: 30px;
}

/* Estilo para as fichas de apostas */
.bet-chip {
    position: absolute;
    width: 17px;
    height: 17px;
    background: #ffd700;
    border-radius: 50%;
    border: 1px solid #b8860b;
    color: #000;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    top: 2px;
    right: 2px;
}

/* Remover todas as outras definições de .bet-chip e manter apenas esta */
.bet-chip {
    position: absolute;
    width: 20px;
    height: 20px;
    background: linear-gradient(145deg, #ffd700, #daa520);
    border-radius: 50%;
    border: 1px solid #b8860b;
    color: #000;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    top: 2px;
    right: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.bet-chip.indicator-chip {
    background: linear-gradient(145deg, #87CEEB, #4682B4) !important;
    border: 1px solid #4169E1 !important;
    color: white !important;
    z-index: 101 !important;
}

#message-area {
    background-color: rgba(0, 100, 0, 0.8);
    color: white;
    padding: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.outside-section {
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr; /* Ajusta as duas últimas colunas */
gap: 1px;
margin: 2px 60px 1px 43px;
}


.diamond {
    width: 20px;
    height: 20px;
    background-color: #c41e3a;
    transform: rotate(45deg);
}
.diamond.black {
    background-color: #000;
}

#selected-number {
margin-top: 20px;
padding: 15px;
background-color: #135813;
color: white;
border-radius: 5px;
text-align: center;
font-size: 18px;
font-weight: bold;
border: 1px solid rgba(255, 255, 255, 0.3);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
padding: 12px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.roulette-table {
background-color: #006400;
padding: 10px;
border-radius: 10px;
margin-bottom: 30px;
}

/* Estilo para as fichas de apostas */
.bet-chip {
    position: absolute;
    width: 17px;
    height: 17px;
    background: #ffd700;
    border-radius: 50%;
    border: 1px solid #b8860b;
    color: #000;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    top: 2px;
    right: 2px;
}
    
/* Posicionamento específico para a ficha no zero */
.zero-section .bet-chip {
    top: 44px;
    left: 18px;
    right: auto;
}
.number.dimmed, .zero-section.dimmed {
    opacity: 0.3;
}
.app-footer {
    margin-top: 40px;
    padding: 20px;
    color: #333;  /* Alterado para texto escuro */
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.app-footer h3 {
    color: #333;  /* Alterado de dourado para cinza escuro */
    margin-bottom: 15px;
    font-size: 20px;
}
.cta-button {
    display: inline-block;
    background-color: #006400;
    color: white !important;
    padding: 12px 24px;
    border-radius: 25px;
    margin-top: 15px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.cta-button:hover {
    background-color: #004d00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-decoration: none !important;
}
.app-footer a {
    color: #006400;  /* Links em verde */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}
.app-footer a:hover {
    color: #004d00;  /* Verde mais escuro no hover */
    text-decoration: underline;
}
.copyright {
    text-align: center;
    padding: 15px;
    background: rgba(0, 100, 0, 0.8);  /* Verde mantido apenas no copyright */
    border-radius: 8px;
    color: white;
    font-size: 14px;
}
.app-footer p {
    margin-bottom: 15px;
    line-height: 1.6;
}
.app-footer ul {
    list-style: none;
    padding: 0;
}
.app-footer ul li {
    margin: 8px 0;
}
.warning-section, .promotion-section, .community-section {
    padding: 20px;
    background-color: #e8e8e8;  /* Cinza um pouco mais escuro que #f5f5f5 */
    border: 1px solid #d1d1d1;
    border-radius: 8px;
    text-align: center;
    color: #333;  /* Texto escuro para melhor contraste */
}
.app-footer {
    margin-top: 40px;
    padding: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.app-footer h3 {
    color: #333;  /* Alterado de dourado para cinza escuro */
    margin-bottom: 15px;
    font-size: 20px;
}

.app-footer a {
    color: #006400;  /* Links em verde */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.app-footer a:hover {
    color: #004d00;  /* Verde mais escuro no hover */
    text-decoration: underline;
}

.copyright {
    text-align: center;
    padding: 15px;
    background: rgba(0, 100, 0, 0.8);  /* Mantém o verde apenas no copyright */
    border-radius: 8px;
    color: white;
    font-size: 14px;
}

.message-display {
    text-align: center;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 20px;
}
.bet-chip.indicator-chip {
    background: linear-gradient(145deg, #87CEEB, #4682B4) !important;
    border: 1px solid #4169E1 !important;
    color: white !important;
    z-index: 100 !important;
}
#number-history-container {
    margin: 20px 0;
    text-align: center;
}

.history-numbers {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 5px;
    margin: 10px 0;
}

.history-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.history-number.red { background-color: #FF0000; }
.history-number.black { background-color: #000000; }
.history-number.green { background-color: #008000; }

#message-area.alert-danger {
    color: #fbff00;
    font-weight: bold;
    animation: blink 1s infinite;
    background-color: #460c0c;
    border: 2px solid #fbff00;
    padding: 15px;
    font-size: 18px;
}

#message-area.alert-warning {
    color: #b12c00;
    font-weight: bold;
    background-color: #ff915e;
    border: 2px solid #b12c00;
    padding: 15px;
    font-size: 16px;
}

#message-area.alert-info {
    color: #4A4A00;
    background-color: #FFFF77;
    border: 2px solid #4A4A00;
    padding: 15px;
    font-size: 16px;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

#reset-container {
    text-align: center;
    margin-top: 10px;
}

.reset-button {
    background-color: #d9534f;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.reset-button:hover {
    background-color: #c9302c;
}

/* Estilos para as mensagens ao jogador */
.player-message {
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    border-left: 5px solid #ddd;
    background-color: #f8f9fa;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
}

/* Estilo para a mensagem inicial */
.player-message.initial-message {
    background-color: #d1e7dd;
    border-left-color: #198754;
    color: #0f5132;
    border-radius: 8px;
}

/* Estilo para a mensagem de fazer aposta */
.player-message.make-bet {
    background-color: #cfe2ff;
    border-left-color: #0d6efd;
    color: #084298;
    border-radius: 8px;
}

.player-message.repeat-bet {
    background-color: #fff3cd;
    border-left-color: #ffc107;
    color: #856404;
    border-radius: 8px;
}

/* Estilo para a mensagem de modo de recuperação */
.player-message.recovery-mode {
    background-color: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
    border-radius: 8px;
}

/* Adicionar animação de piscar para alertas críticos */
.player-message.recovery-mode[style*="ALERTA CRÍTICO"],
.player-message.recovery-mode:contains("ALERTA CRÍTICO") {
    animation: blink 1s infinite;
    background-color: #ff0000;
    color: white;
    border-left-color: #ff0000;
}

/* Bank management styles */
.gerenciamento-banca {
    margin: 15px 0;
    padding: 15px;
    background: linear-gradient(145deg, #2c3e50, #34495e);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: #ecf0f1;
    text-align: center;
}

.banca-titulo {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #2ecc71;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.banca-stats {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.banca-item {
    flex: 1;
    min-width: 120px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.banca-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #ecf0f1;
}

.banca-valor {
    font-size: 22px;
    font-weight: bold;
    color: #ffd700;
}

.banca-unidade {
    font-size: 12px;
    color: #bdc3c7;
    margin-top: 2px;
}

/* Estilo especial para o lucro */
#lucro-total {
    color: #2ecc71; /* Verde para lucro positivo */
}

#lucro-total.negativo {
    color: #e74c3c; /* Vermelho para lucro negativo */
}

.critical-alert {
    background-color: #ff0000;
    color: white;
    font-weight: bold;
    animation: blink 1s infinite;
    padding: 15px;
    border-radius: 5px;
}

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