/* Estilos gerais - CORRIGIDO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* Header - CORRIGIDO */
header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.logo a {
    color: white;
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background 0.3s;
    display: block;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.user-menu {
    display: flex;
    align-items: center;
    color: white;
    flex-wrap: wrap;
    gap: 10px;
}

.user-menu .saldo {
    margin-right: 15px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 5px;
}

/* Conteúdo principal */
main {
    flex: 1;
    padding: 20px 0;
}

/* Footer - CORRIGIDO */
footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 40px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #fff;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: white;
    font-size: 20px;
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Banner principal */
.banner-principal {
    text-align: center;
    padding: 60px 20px;
    color: white;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin-bottom: 40px;
}

.banner-principal h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-principal p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.botoes-acao {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Cards de sorteio */
.sorteios-destaque {
    padding: 40px 0;
}

.sorteios-destaque h2 {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    font-size: 32px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

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

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

.sorteio-card h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 20px;
}

.sorteio-card p {
    margin-bottom: 8px;
    color: #666;
}

/* Prêmios em destaque */
.premios-destaque {
    padding: 40px 0;
}

.premios-destaque h2 {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    font-size: 32px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.ganhadores-lista {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.ganhador-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.ganhador-card h3 {
    color: #2196F3;
    margin-bottom: 10px;
}

.ganhador-card p {
    margin-bottom: 8px;
    color: #666;
}

/* Botões - CORRIGIDO */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    text-align: center;
}

.btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: #2196F3;
}

.btn-primary:hover {
    background: #0b7dda;
}

.btn-secondary {
    background: #ff9800;
}

.btn-secondary:hover {
    background: #e68a00;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

/* Formulários - CORRIGIDO */
.form-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #2196F3;
    outline: none;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

.form-links {
    margin-top: 20px;
    text-align: center;
}

.form-links a {
    color: #2196F3;
    text-decoration: none;
    transition: color 0.3s;
}

.form-links a:hover {
    color: #0b7dda;
    text-decoration: underline;
}

/* Mensagens - CORRIGIDO */
.mensagem-flash {
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    font-weight: bold;
}

.mensagem-sucesso {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mensagem-erro {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.mensagem-erro ul {
    margin: 10px 0 0 20px;
}

/* Perfil - CORRIGIDO */
.profile-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 30px 0;
}

@media (min-width: 992px) {
    .profile-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

.profile-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-section h3 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    font-size: 20px;
}

.account-info p {
    margin-bottom: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
}

.account-info p strong {
    color: #333;
}

.account-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Container do bingo - CORRIGIDO */
.bingo-container {
    padding: 25px;
    background: white;
    border-radius: 10px;
    margin: 20px auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.bingo-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.bingo-header h1 {
    color: #333;
    margin-bottom: 15px;
}

.bingo-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 992px) {
    .bingo-content {
        grid-template-columns: 2fr 1fr;
    }
}

.bingo-sorteio {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.numeros-sorteados {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

#bola-atual img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.bola-pequena {
    width: 50px;
    height: 50px;
    margin: 0 5px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.numero-chamado {
    display: inline-block;
    background: #2196F3;
    color: white;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    border-radius: 50%;
    margin: 5px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.contador-sorteio {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin: 20px 0;
    color: #333;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.jogadores-online {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.jogadores-online h3 {
    margin-bottom: 15px;
    color: #333;
}

.jogador {
    padding: 10px;
    background: #e9e9e9;
    margin: 5px 0;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.jogador:before {
    content: "•";
    color: #4CAF50;
    font-weight: bold;
    margin-right: 10px;
}

.bingo-cartelas {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.cartelas-acoes {
    margin-bottom: 20px;
    text-align: center;
}

.minhas-cartelas {
    display: grid;
    gap: 15px;
}

.cartela {
    border: 2px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    background: white;
}

.cartela h4 {
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.cartela-numeros {
    display: grid;
    grid-template-rows: repeat(5, 1fr);
    gap: 5px;
    margin: 10px 0;
}

.cartela-linha {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
}

.cartela-numero {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-weight: bold;
    background: white;
    transition: all 0.3s;
}

.cartela-numero.marcado {
    background: #4CAF50;
    color: white;
    transform: scale(1.05);
}

.cartela-numero.vazio {
    background: #ddd;
    visibility: hidden;
}

.cartela-status, .cartela-premio {
    text-align: center;
    margin-top: 10px;
    font-weight: 600;
}

.cartela-premio {
    color: #ff9800;
}

.premiados-container {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #eee;
}

.premiados-container h2 {
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.cartela-premiada {
    background: #ffeb3b;
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    border-left: 5px solid #ff9800;
}

.cartela-premiada h4 {
    color: #333;
    margin-bottom: 10px;
}

/* Responsividade - CORRIGIDO */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin: 15px 0;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px;
    }
    
    .user-menu {
        justify-content: center;
        margin-top: 15px;
    }
    
    .user-menu .saldo {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .banner-principal h1 {
        font-size: 36px;
    }
    
    .banner-principal p {
        font-size: 18px;
    }
    
    .botoes-acao {
        flex-direction: column;
        align-items: center;
    }
    
    .form-container {
        margin: 20px;
        padding: 20px;
    }
    
    .bingo-content {
        grid-template-columns: 1fr;
    }
    
    .profile-content {
        grid-template-columns: 1fr;
    }
    
    .account-actions {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.fade-in {
    animation: fadeIn 0.5s ease;
}

.slide-in {
    animation: slideIn 0.5s ease;
}