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

body {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
    line-height: 1.6;
}

header {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 1s ease-in;
    position: relative;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #ffd700;
}

header p {
    font-size: 1.2em;
}

main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.vencedor-banner {
    background: #ffd700;
    color: #333;
    padding: 10px;
    text-align: center;
    margin: 10px 0;
    border-radius: 5px;
    animation: slideIn 1s ease-in;
    width: 100%;
}

section {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    flex: 1;
    min-width: 300px;
    max-width: 100%;
    transition: transform 0.3s;
}

section:hover {
    transform: translateY(-5px);
}

h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #ffd700;
    text-align: center;
}

.grid-numeros {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.numero {
    background: #fff;
    color: #333;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    transition: background 0.3s, transform 0.2s;
}

.numero:hover {
    background: #ffd700;
    transform: scale(1.1);
}

.numero.vendido {
    background: #ff4444;
    color: #fff;
    cursor: not-allowed;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

input, button {
    padding: 10px;
    border-radius: 5px;
    border: none;
    font-size: 1em;
}

button {
    background: #ffd700;
    color: #333;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #ffcc00;
}

.progress-bar {
    width: 100%;
    background: #fff;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.progress {
    height: 100%;
    background: #ffd700;
    transition: width 0.5s ease-in-out;
}

ul {
    list-style: none;
    padding: 0;
}

li {
    padding: 10px;
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: 10px;
    border-radius: 5px;
}

footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
}

.botao-voltar {
    display: block;
    width: fit-content;
    margin: 20px auto 0;
    padding: 10px 20px;
    background: #ffd700;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    text-align: center;
}

.botao-voltar:hover {
    background: #ffcc00;
}

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

@keyframes slideIn {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.compartilhar {
    text-align: center;
}

.botoes-compartilhar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.share-btn {
    display: inline-block;
    width: 60px;
    height: 60px;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    font-size: 28px;
    transition: transform 0.3s, opacity 0.3s;
}

.share-btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.share-btn.whatsapp {
    background: #25D366;
}

.share-btn.telegram {
    background: #0088CC;
}

.share-btn.facebook {
    background: #1877F2;
}

.share-btn.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.compradores {
    text-align: center;
    margin: 20px 0;
}

.compradores h2 {
    color: #ffd700;
}

.compradores li {
    color: #fff;
    margin: 5px 0;
    background: none;
    padding: 5px;
}

/* Estilo para SweetAlert */
.swal-wide {
    width: 450px !important;
}

/* Compatibilidade dos ícones */
.fa-brands {
    font-family: "Font Awesome 6 Brands", sans-serif !important;
}

/* Tabelas e Formulários do Admin */
.table-container {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    word-wrap: break-word;
    max-width: 200px;
}

th {
    background: rgba(255, 215, 0, 0.2);
}

td button {
    padding: 5px 10px;
    font-size: 0.9em;
    margin-right: 5px;
}

.action-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.inline-form {
    display: inline-block;
}

.logout-form {
    position: absolute;
    top: 20px;
    right: 20px;
}

.logout-btn {
    padding: 5px 15px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: #cc0000;
}

.delete-btn {
    padding: 5px 10px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.delete-btn:hover {
    background: #cc0000;
}

.edit-btn {
    padding: 5px 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.edit-btn:hover {
    background: #0056b3;
}

.confirm-btn {
    padding: 5px 10px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.confirm-btn:hover {
    background: #218838;
}

.below-btn {
    display: block;
    margin-top: 5px;
    width: 100%;
    text-align: center;
}

.notify-btn {
    padding: 5px 10px;
    background: #17a2b8;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.notify-btn:hover {
    background: #138496;
}

.action-btn {
    padding: 5px 10px;
    background: #ffd700;
    color: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.action-btn:hover {
    background: #ffcc00;
}

.config-form {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}

.config-form label {
    font-size: 1em;
}

.config-form input {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 100px;
    font-size: 1em;
}

.config-form button {
    padding: 5px 15px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.config-form button:hover {
    background: #218838;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    margin: 20px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.login-form input {
    padding: 10px;
    border-radius: 5px;
    border: none;
    font-size: 1em;
}

.login-form button {
    padding: 10px;
    background: #ffd700;
    color: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.login-form button:hover {
    background: #ffcc00;
}

/* Responsividade */
@media (max-width: 768px) {
    .grid-numeros {
        grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
    }
    section {
        flex: 100%;
    }
    .action-form {
        flex-direction: column;
    }
    .logout-form {
        position: static;
        text-align: center;
        margin-top: 10px;
    }
}

@media (max-width: 600px) {
    .grid-numeros {
        grid-template-columns: repeat(5, 1fr);
    }
    th, td {
        font-size: 0.9em;
        padding: 8px;
    }
    .config-form {
        flex-direction: column;
    }
}

.search-form {
    margin-bottom: 20px;
}
.search-form input[type="text"] {
    padding: 8px;
    width: 200px;
    margin-right: 10px;
}
.search-form button {
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}
.search-form button:hover {
    background-color: #0056b3;
}
.admin-actions {
    display: flex;
    gap: 10px;
}

.sorteio-selector {
    margin: 10px 0;
}
.sorteio-selector label {
    margin-right: 10px;
}
.sorteio-selector select {
    padding: 5px;
    font-size: 16px;
}
.sorteio-concluido-msg {
    color: #ff4444;
    font-weight: bold;
    margin-top: 10px;
}

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