:root {
    --color-primary: #001f3f; /* Azul marinho */
    --color-secondary: #003366;
    --color-accent: #0056b3;
    --color-light: #f8f9fa;
    --color-dark: #212529;
    --color-footer-bg: #f5f5f5;
    --color-footer-text: #fff;
    --color-footer-border: #eee;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--color-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Cabeçalho Superior */
.top-header {
    background-color: var(--color-primary);
    color: white;
    padding: 15px 0;
    text-align: center;
}

.top-header h1 {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}

.top-header p {
    font-size: 1.1rem;
    margin: 5px 0 0;
    color: rgba(255,255,255,0.8);
}

/* Conteúdo Principal */
.main-container {
    flex: 1;
    padding: 20px;
}

.number-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.number-btn {
    width: 100%;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background-color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.number-btn:hover {
    background-color: #f0f0f0;
}

.number-btn.selected {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.bets-panel {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    background-color: white;
    height: 100%;
}

.bets-container {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding-right: 10px;
}

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

.bets-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

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

.bet-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.bet-numbers {
    font-weight: bold;
}

.bet-price {
    color: var(--color-primary);
}

.add-bet-btn {
    width: 100%;
    padding: 10px;
    font-weight: bold;
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.finish-btn {
    width: 100%;
    padding: 10px;
    font-weight: bold;
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.selection-info {
    text-align: center;
    margin: 15px 0;
    font-weight: bold;
}

.error-message {
    color: var(--color-primary);
    text-align: center;
    margin: 10px 0;
    font-weight: bold;
}

.total-price {
    font-weight: bold;
    text-align: right;
    margin-top: 15px;
    font-size: 1.2rem;
    color: var(--color-primary);
}

.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.selection-panel {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.bets-column {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

/* Rodapé */
.footer {
    background-color: var(--color-primary);
    color: var(--color-footer-text);
    padding: 10px 0;
    border-top: 1px solid var(--color-footer-border);
}

.footer-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.footer-subtitle {
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-column h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: var(--color-footer-text);
    text-decoration: none;
}

.footer-column ul li a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--color-footer-border);
    font-size: 0.9rem;
}

/* Toast Notification */
#toastNotification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    min-width: 250px;
    background-color: var(--color-secondary);
}

.toast-custom {
    background-color: var(--color-secondary);
    color: white;
    border-radius: 4px;
    padding: 12px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideIn 0.5s, fadeOut 0.5s 2.5s;
}

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

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.toast-icon {
    margin-right: 10px;
}

.toast-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    margin-left: 15px;
}

/* Animated star styles */
.animated-star {
    color: var(--accent-color);
    animation: star-pulse 2s infinite;
}

@keyframes star-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Ajustes para telas pequenas */
@media (max-width: 768px) {
    .main-container {
        padding: 15px;
    }

    .main-content {
        flex-direction: column;
        align-items: center;
    }

    .selection-panel, .bets-column {
        width: 100%;
        max-width: 100%;
    }

    .number-btn {
        height: 1.3rem;
        width: 1.3rem;
        font-size: 0.8rem;
    }

    .number-grid {
        gap: 6px;
    }

    .bets-container {
        max-height: 250px;
    }

    .card {
        margin-bottom: 15px;
    }

    .footer-links {
        flex-direction: column;
    }

    .footer-column {
        min-width: 100%;
    }
}


/* Ajustes para telas pequenas */
@media (max-width: 576px) {
    .main-container {
        padding: 15px;
    }

    .main-content {
        flex-direction: column;
        align-items: center;
    }

    .selection-panel, .bets-column {
        width: 100%;
        max-width: 100%;
    }

    .number-btn {
        height: 1.7rem;
        width: 1.7rem;
        font-size: 0.7rem;
    }

    .number-grid {
        gap: 6px;
    }

    .bets-container {
        max-height: 250px;
    }

    .card {
        margin-bottom: 15px;
    }

    .footer-links {
        flex-direction: column;
    }

    .footer-column {
        min-width: 100%;
    }
}

.random-buttons-container {
    text-align: center;
    margin-bottom: 15px;
}

.random-buttons {
    display: inline-flex;
    gap: 8px;
    margin-bottom: 10px;
}

.random-btn {
    padding: 5px 10px;
    font-size: 0.85rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .random-buttons {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
    .random-btn {
        flex: 0 0 auto;
    }
}


.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pulsing-star {
    color: #FFD700;
    font-size: 1.2rem;
    animation: pulse 3s infinite ease-in-out;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    color: #fff;
    border: solid 1px #fff;
}




/* Container de Notificações */
#notificationsContainer {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none; /* Permite clicar através do container */
}

/* Notificação Individual */
.bet-notification {
    background-color: #0d6efd;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: fit-content;
    max-width: 90%;
    pointer-events: auto; /* Permite interação com a notificação */
    transform: translateY(-100%);
    opacity: 0;
    animation: bet-notification-slide 3s forwards;
}

/* Animações */
@keyframes bet-notification-slide {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    10% {
        transform: translateY(0);
        opacity: 1;
    }
    90% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}




.online-bettors-bar {
    background-color: var(--color-primary);
    font-size: 0.75rem;
    z-index: 1030;
}

.online-bettors-text {
    display: inline-flex;
}

#onlineBettorsCount {
    color: #FFFFBE;
    margin: 0 3px;
}