* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

h1, h2, h3, h4 {
    color: #2d3748;
    margin-bottom: 20px;
}

.titulo-principal {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: #4c1d95;
}

label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
    color: #4a5568;
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border 0.2s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #7c3aed;
}

.btn {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    width: 100%;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.4);
}

.btn-verde { background: linear-gradient(135deg, #059669, #10b981); }
.btn-vermelho { background: linear-gradient(135deg, #dc2626, #ef4444); }
.btn-cinza { background: linear-gradient(135deg, #4b5563, #6b7280); }

.rifas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.rifa-card {
    border: 2px solid #e9d5ff;
    border-radius: 12px;
    padding: 20px;
    background: #faf5ff;
    transition: transform 0.2s;
}

.rifa-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.15);
}

.rifa-card h3 {
    color: #6d28d9;
    margin-bottom: 10px;
}

.rifa-card p {
    margin-bottom: 8px;
    color: #4a5568;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
}

.badge-ativa { background: #d1fae5; color: #065f46; }
.badge-encerrada { background: #fee2e2; color: #991b1b; }

.aviso {
    text-align: center;
    color: #666;
    padding: 40px 20px;
    background: #f9fafb;
    border-radius: 10px;
}

.erro {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
}

.sucesso {
    background: #d1fae5;
    color: #065f46;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
}

a {
    color: #7c3aed;
    text-decoration: none;
}

a:hover { text-decoration: underline; }

hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 30px 0;
}

.tabela-participantes {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 14px;
}

.tabela-participantes th,
.tabela-participantes td {
    border: 1px solid #e2e8f0;
    padding: 8px;
    text-align: left;
}

.tabela-participantes th {
    background: #f3e8ff;
    color: #581c87;
}

.rodape-links {
    margin-top: 25px;
    text-align: center;
    font-size: 14px;
}

.numero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 8px;
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
}

.numero-btn {
    padding: 10px;
    border: 2px solid #7c3aed;
    border-radius: 6px;
    background: white;
    color: #7c3aed;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.15s;
}

.numero-btn:hover { background: #ede9fe; }

.numero-btn.ocupado {
    background: #f3f4f6;
    color: #9ca3af;
    border-color: #e5e7eb;
    cursor: not-allowed;
    text-decoration: line-through;
}

.numero-btn.selecionado {
    background: #7c3aed;
    color: white;
}
