/* Estilos Gerais */
:root {
    --dark-bg: #0d131b;
    --medium-bg: #171d28;
    --button-color: #11a34b;
    --button-hover: #0d8a3e;
    --text-color: #fff;
    --border-color: #2a3548;
    --error-color: #ff3333;
    --success-color: #33cc33;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    background-color: var(--medium-bg);
    border-radius: 10px;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

h1, h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-color);
}

a {
    color: var(--button-color);
    text-decoration: none;
}

/* Logo */
.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo img {
    max-width: 200px;
    height: auto;
}

/* Formulários */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-size: 16px;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--button-color);
    box-shadow: 0 0 0 2px rgba(17, 163, 75, 0.2);
}

.btn {
    display: inline-block;
    background-color: var(--button-color);
    color: white;
    border: none;
    padding: 12px 20px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    text-transform: uppercase;
}

.btn:hover {
    background-color: var(--button-hover);
}

.btn:disabled {
    background-color: #666;
    cursor: not-allowed;
}

.btn-danger {
    background-color: var(--error-color);
}

.btn-danger:hover {
    background-color: #cc0000;
}

.btn-success {
    background-color: var(--success-color);
}

.btn-success:hover {
    background-color: #2eb82e;
}

.btn-secondary {
    background-color: #666;
}

.btn-secondary:hover {
    background-color: #555;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 14px;
}

/* Captcha */
.captcha {
    position: relative;
}

.captcha-box {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px;
    text-align: center;
    margin-bottom: 10px;
    font-size: 24px;
    letter-spacing: 5px;
    border-radius: 5px;
    user-select: none;
}

/* Mensagens */
.message {
    text-align: center;
    margin-bottom: 20px;
}

.message.error {
    color: var(--error-color);
}

.message h2 {
    margin-bottom: 10px;
}

.alert-error {
    background-color: rgba(255, 51, 51, 0.1);
    border-left: 3px solid var(--error-color);
    color: var(--error-color);
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 3px;
}

/* Página de Sucesso */
.success-card {
    max-width: 600px;
}

.success-message {
    text-align: center;
    margin-bottom: 30px;
}

.highlight {
    color: var(--button-color);
    font-weight: bold;
    font-size: 18px;
    margin: 15px 0;
}

/* Roleta */
.roulette-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.roulette {
    margin-bottom: 20px;
}

.prize-result {
    text-align: center;
    margin-top: 30px;
}

.prize-box {
    background-color: rgba(17, 163, 75, 0.2);
    border: 2px solid var(--button-color);
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
    font-size: 20px;
    font-weight: bold;
}

.timer-container {
    margin-top: 20px;
}

.timer-container p {
    margin-bottom: 15px;
}

#timer {
    font-weight: bold;
    font-size: 22px;
    color: var(--button-color);
}

/* Painel Admin */
.admin-panel .card {
    max-width: 900px;
}

.admin-login .card {
    max-width: 400px;
}

.admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    justify-content: center;
}

.admin-table {
    overflow-x: auto;
}

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

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: rgba(0, 0, 0, 0.2);
}

.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.status-entregue {
    background-color: rgba(51, 204, 51, 0.2);
    color: var(--success-color);
}

.status-pendente {
    background-color: rgba(255, 153, 0, 0.2);
    color: #ff9900;
}

.action-buttons {
    display: flex;
    gap: 5px;
}

.action-buttons form {
    margin: 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Responsivo */
@media (max-width: 768px) {
    .card {
        padding: 20px;
    }
    
    .admin-table {
        font-size: 14px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        padding: 10px 15px;
    }
    
    .admin-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 15px;
    }
    
    h1 {
        font-size: 22px;
    }
    
    .prize-box {
        font-size: 16px;
    }
}
