:root {
    --primary: #4FD1C5;
    --bg: #f7fafc;
    --text: #2d3748;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.hidden { display: none !important; }

/* Efeito dos Cards */
.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}


.card:hover {
    transform: translateY(-10px) scale(1.05); /* Movimento e aumento */
    box-shadow: 0 15px 30px rgba(79, 209, 197, 0.3); /* Sombra colorida */
}

.icon { font-size: 40px; }

/* Login */
.login-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
}

input {
    padding: 12px;
    width: 85%;
    border: 2px solid #ddd;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center; /* Centraliza o texto digitado */
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    text-transform: uppercase;
}

input::placeholder {
    text-align: center; /* Centraliza o texto de exemplo (XXXX) */
    color: #cbd5e0;
}

button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

#modal-chat {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white; padding: 25px; border-radius: 20px;
    width: 90%; max-width: 400px; position: relative;
}

.close-btn {
    position: absolute; top: 10px; right: 15px;
    font-size: 24px; cursor: pointer;
}

#chat-window {
    height: 200px; overflow-y: auto;
    border: 1px solid #eee; margin: 15px 0;
    padding: 10px; background: #f9f9f9; border-radius: 10px;
}

.hidden { display: none !important; }

/* Configuração do fundo escuro atrás do chat */
#modal-chat {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fundo transparente fumê */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* A caixa branca onde as mensagens aparecem */
.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Onde as mensagens ficam rolando */
#chat-window {
    height: 300px;
    overflow-y: auto;
    border: 1px solid #eee;
    margin: 15px 0;
    padding: 10px;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
}

/* Estilo do botão de fechar (X) */
.close-btn {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #888;
}