* {
    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%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

.main-nav {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.main-nav a {
    flex: 1;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    color: #495057;
    font-weight: 600;
    transition: all 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    background: #667eea;
    color: white;
}

main {
    padding: 40px 20px;
}

.info-box {
    background: #e7f3ff;
    border-left: 4px solid #2196F3;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.info-box h2 {
    color: #2196F3;
    margin-bottom: 15px;
}

.info-box ul {
    list-style: none;
}

.info-box li {
    padding: 8px 0;
    font-size: 1.1em;
}

.form-section {
    max-width: 800px;
    margin: 0 auto;
}

.form-section h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #6c757d;
    font-size: 0.9em;
}

/* Grid de Números */
.numeros-section {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.numeros-section h3 {
    color: #667eea;
    margin-bottom: 10px;
}

.contador {
    font-size: 1.2em;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 15px;
}

.grid-numeros {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.numero-btn {
    aspect-ratio: 1;
    border: 2px solid #dee2e6;
    background: white;
    border-radius: 50%;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.numero-btn:hover {
    transform: scale(1.1);
    border-color: #667eea;
}

.numero-btn.selecionado {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: scale(1.1);
}

/* Informações de Pagamento */
.pagamento-section {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
}

.pagamento-section h3 {
    color: #856404;
    margin-bottom: 15px;
}

.pix-info {
    background: white;
    padding: 15px;
    border-radius: 8px;
}

.pix-info p {
    margin: 10px 0;
    font-size: 1.1em;
}

.pix-key {
    color: #667eea;
    font-weight: bold;
    font-size: 1.2em;
}

.btn-copy {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 10px;
    transition: background 0.3s;
}

.btn-copy:hover {
    background: #218838;
}

/* Botões */
.btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s;
    margin-top: 20px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.btn-submit:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Mensagens */
.mensagem {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
}

.mensagem.sucesso {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.mensagem.erro {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Tabelas */
.table-container {
    overflow-x: auto;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

th, td {
    padding: 15px;
    text-align: left;
}

tbody tr:nth-child(even) {
    background: #f8f9fa;
}

tbody tr:hover {
    background: #e9ecef;
}

/* Status badges */
.status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
}

.status.pendente {
    background: #fff3cd;
    color: #856404;
}

.status.pago {
    background: #d4edda;
    color: #155724;
}

.status.recusado {
    background: #f8d7da;
    color: #721c24;
}

.status.vencedor {
    background: #ffd700;
    color: #000;
}

/* Footer */
footer {
    background: #343a40;
    color: white;
    text-align: center;
    padding: 20px;
}

/* Admin Styles */
.admin-container {
    max-width: 1400px;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.card h3 {
    color: #667eea;
    margin-bottom: 10px;
}

.card .number {
    font-size: 3em;
    font-weight: bold;
    color: #764ba2;
}

/* Botões de Ação */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    margin: 2px;
    transition: all 0.3s;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }
    
    .grid-numeros {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    }
    
    .main-nav {
        flex-wrap: wrap;
    }
    
    .main-nav a {
        flex: 1 1 50%;
    }
}
