/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to bottom right, #10141c, #1f2a38);
    color: #f4f4f4;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Container principal */
.container {
    background-color: #1e2733;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    width: 100%;
    max-width: 450px;
    text-align: left;
}

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

/* Formulário */
form label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
}

form input[type="text"],
form input[type="email"],
form input[type="password"] {
    width: 100%;
    padding: 12px;
    background-color: #2d3748;
    border: none;
    border-radius: 6px;
    color: #f4f4f4;
    font-size: 1rem;
}

form input::placeholder {
    color: #a0aec0;
}

button[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #38a169;
    color: #fff;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #2f855a;
}

button:disabled {
    background-color: #4a5568;
    cursor: not-allowed;
}

/* Links */
.container p {
    text-align: center;
    margin-top: 20px;
    font-size: 0.95rem;
}

.container a {
    color: #63b3ed;
    text-decoration: none;
}

.container a:hover {
    text-decoration: underline;
}

/* Mensagens de erro */
.error {
    background-color: #e53e3e;
    color: #fff;
    padding: 10px;
    margin: 10px 0;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* CAPTCHA container */
.cf-turnstile {
    margin-top: 20px;
}



/* Dashboard geral */
.dashboard-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 20px auto;
    width: 100%;
    max-width: 450px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Cards individuais */
.dashboard-stats > div {
    flex: 1 1 200px;
    min-width: 180px;
    padding: 18px 20px;
    border-radius: 12px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: default;
}

/* Hover animado */
.dashboard-stats > div:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.5);
}

/* Gradientes diferentes para cada card */
.dashboard-stats .total-users {
    background: linear-gradient(135deg, #38a169, #81e6d9); /* verde */
}
.dashboard-stats .quantidade-anuncios {
    background: linear-gradient(135deg, #4299e1, #90cdf4); /* azul */
}
.dashboard-stats .quantidade-cliks {
    background: linear-gradient(135deg, #ed8936, #f6ad55); /* laranja */
}
.dashboard-stats .quantidade-tokens {
    background: linear-gradient(135deg, #d53f8c, #f687b3); /* rosa */
}

/* Ícones dentro dos cards */
.dashboard-stats i {
    font-size: 28px;
    opacity: 0.9;
}

/* Emoji antes do texto */
.dashboard-stats .total-users::before {
    content: "👥";
    font-size: 28px;
}
.dashboard-stats .quantidade-anuncios::before {
    content: "📢";
    font-size: 28px;
}
.dashboard-stats .quantidade-cliks::before {
    content: "🖱️";
    font-size: 28px;
}
/* Ícone do token */
.dashboard-stats .quantidade-tokens .token-icon {
    width: 32px;
    height: 32px;
    vertical-align: middle;
    margin-left: 5px;
}

/* Valores destacados */
.dashboard-stats span {
    font-size: 1.3em;
}

/* Responsivo para celulares */
@media (max-width: 500px) {
    .dashboard-stats {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
@media (max-width: 600px) {
    .dashboard-stats > div {
        flex: 1 1 100%; /* um card por linha */
        max-width: 100%;
    }
}
    .dashboard-stats > div {
        width: 90%;
        padding: 15px;
        font-size: 0.95rem;
    }

    .dashboard-stats i,
    .dashboard-stats::before {
        font-size: 24px;
    }

    .dashboard-stats span {
        font-size: 1.2em;
    }
}
