/* RESET DE ESTILOS E CONFIGURAÇÃO DA FONTE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0b0f12; /* Azul escuro quase preto */
    color: #e2e8f0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* CONTAINER PRINCIPAL DO SISTEMA */
.sistema-container {
    width: 100%;
    max-width: 900px;
    background: rgba(16, 24, 32, 0.85);
    border: 2px solid #00f2ff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.15), inset 0 0 15px rgba(0, 242, 255, 0.05);
    backdrop-filter: blur(10px);
}

/* CABEÇALHO DO JOGADOR */
.header-status {
    position: relative;
    padding-bottom: 15px;
}

#player-name {
    font-size: 1.8rem;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    margin-bottom: 10px;
}

.level-badge {
    position: absolute;
    top: 0;
    right: 0;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 1.5rem;
    color: #00f2ff;
    text-shadow: 0 0 8px rgba(0, 242, 255, 0.6);
}

/* BARRA DE PROGRESSO DE XP */
.xp-container {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.label {
    font-weight: bold;
    color: #5271ff;
    min-width: 50px;
}

.xp-bar {
    flex-grow: 1;
    height: 12px;
    background: #1c2630;
    border: 1px solid #00f2ff33;
    border-radius: 3px;
    overflow: hidden;
}

.xp-progress {
    height: 100%;
    background: linear-gradient(90deg, #00d2ff 0%, #00f2ff 100%);
    box-shadow: 0 0 12px #00f2ff;
    transition: width 0.4s ease;
}

.status-valores {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: #8a9ba8;
}

/* SISTEMA DE GOLD */
.gold-container {
    font-size: 1.1rem;
    color: #ffd700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.divisor {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00f2ff, transparent);
    margin: 20px 0;
}

/* GRID DO PAINEL */
.painel-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .painel-grid {
        grid-template-columns: 1fr;
    }
}

h2 {
    font-size: 1.2rem;
    color: #00f2ff;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-shadow: 0 0 5px rgba(0, 242, 255, 0.4);
}

/* LISTA DE ATRIBUTOS */
.atributos-lista {
    list-style: none;
}

.atributos-lista li {
    background: rgba(25, 35, 45, 0.6);
    border-left: 3px solid #5271ff;
    padding: 12px 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 4px 4px 0;
}

.atributos-lista li strong {
    font-size: 1.2rem;
    color: #ffffff;
    font-family: 'Courier New', Courier, monospace;
}

/* CARDS DE MISSÕES */
.quest-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quest-card {
    background: rgba(20, 30, 40, 0.7);
    border: 1px solid #1c2630;
    border-radius: 4px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.quest-card:hover {
    border-color: #00f2ff55;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.1);
    transform: translateX(3px);
}

.quest-info h3 {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 5px;
}

.quest-info p {
    font-size: 0.85rem;
    color: #8a9ba8;
}

.badge-attr {
    color: #00f2ff;
    font-weight: bold;
}

/* BOTÃO HOLOGRÁFICO */
.btn-quest {
    background: transparent;
    border: 1px solid #00f2ff;
    color: #00f2ff;
    padding: 8px 16px;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.btn-quest:hover {
    background: #00f2ff;
    color: #0b0f12;
    box-shadow: 0 0 15px #00f2ff;
}

/* CONFIGURAÇÃO DO BOTÃO PRINCIPAL DE TAREFAS */
.menu-acoes {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.btn-quest.principal {
    width: 100%;
    max-width: 400px;
    padding: 14px;
    font-size: 1.1rem;
    background: rgba(0, 242, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
}

/* ESTRUTURA DA JANELA MODAL (PLANO DE FUNDO) */
.modal-container {
    display: none; /* Mantém oculto até o clique */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(4, 6, 8, 0.85);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}

/* CAIXA DE CONTEÚDO DO MODAL */
.modal-conteudo {
    background: rgba(16, 24, 32, 0.95);
    border: 2px solid #00f2ff;
    box-shadow: 0 0 35px rgba(0, 242, 255, 0.3);
    padding: 30px;
    border-radius: 6px;
    width: 90%;
    max-width: 650px;
    max-height: 85vh;
    overflow-y: auto; /* Permite scroll se houver muitas tarefas */
    position: relative;
}

/* BOTÃO DE FECHAR (X) */
.btn-fechar-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #8a9ba8;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-fechar-modal:hover {
    color: #ff4a4a;
}