/* --- RESET & VARIÁVEIS (PALETA TÁTICA AZUL) --- */
:root {
    --bg-dark: #0a0a0a;       /* Preto Profundo */
    --bg-card: #141414;       /* Cinza Chumbo */
    --bg-card-light: #1f1f1f; /* Cinza Surface */
    
    /* NOVA COR PRIMÁRIA (AZUL MINDBOX) */
    --primary: #0080FF;       
    --primary-dark: #0060C0;  /* Azul mais escuro para hover */
    
    --secondary: #3B82F6;     /* Azul Secundário (Info) */
    --success: #10B981;       /* Verde (Missão Cumprida) */
    
    --text-main: #FFFFFF;
    --text-muted: #9CA3AF;
    
    --font-heading: 'Oswald', sans-serif; /* Fonte Militar */
    --font-body: 'Roboto', sans-serif;    /* Fonte Leitura */
    
    --spacing: 16px;
    --border-radius: 6px; /* Cantos levemente duros */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    height: 100vh;
    overflow: hidden; /* Comportamento de App */
    display: flex;
    flex-direction: column;
}

/* --- TELAS (SPA) --- */
.screen {
    display: none;
    height: 100%;
    width: 100%;
    flex-direction: column;
    padding: var(--spacing);
    overflow-y: auto;
    padding-bottom: 40px; /* Espaço pro menu */
}

.screen.active { display: flex; }

/* --- TELA 1: LOGIN --- */
#screen-login {
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
    z-index: 999; /* Fica por cima */
}

.login-container { width: 100%; max-width: 350px; text-align: center; }

.logo-area { margin-bottom: 40px; }
/* Efeito de brilho azul no logo */
.logo-img { width: 140px; margin-bottom: 20px; filter: drop-shadow(0 0 10px rgba(0, 128, 255, 0.4)); }
.logo-area h1 { font-family: var(--font-heading); font-size: 42px; letter-spacing: 2px; line-height: 1; }
.text-highlight { color: var(--primary); }
.subtitle { color: var(--text-muted); font-size: 14px; letter-spacing: 1px; margin-top: 5px; }

/* --- INPUTS & FORMS --- */
.input-group { margin-bottom: 20px; text-align: left; }
.input-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

input {
    width: 100%;
    padding: 16px;
    background: var(--bg-card-light);
    border: 1px solid #333;
    color: white;
    font-size: 18px;
    border-radius: var(--border-radius);
    outline: none;
    font-family: var(--font-body);
    transition: border-color 0.2s;
}

input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(0, 128, 255, 0.2); }

/* --- BOTÕES TÁTICOS --- */
.btn-primary, .btn-success {
    width: 100%;
    padding: 18px;
    color: white;
    border: none;
    font-family: var(--font-heading);
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: var(--border-radius);
    font-weight: bold;
    display: flex; justify-content: center; align-items: center; gap: 10px;
    transition: transform 0.1s, background-color 0.2s;
}

.btn-primary {
    background-color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 128, 255, 0.3);
}

.btn-success {
    background-color: var(--success);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    margin-top: 20px;
}

.btn-primary:active, .btn-success:active { transform: scale(0.98); filter: brightness(0.9); }
.btn-primary:active { background-color: var(--primary-dark); }


.btn-icon {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: #333;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}
.btn-icon:active { background: var(--primary); }

.support-link { margin-top: 20px; font-size: 14px; color: #666; }
.support-link a { color: var(--text-muted); text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 8px; }
.support-link a:hover { color: var(--primary); }

/* --- DASHBOARD --- */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.user-info h3 { font-family: var(--font-heading); font-size: 20px; }
.rank-badge {
    background: #333;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block; margin-bottom: 5px;
}

.settings-btn { font-size: 20px; color: #666; cursor: pointer; }

/* Barra de Progresso */
.progress-section { margin-bottom: 30px; }
.progress-labels { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 12px; color: var(--text-muted); font-weight: bold; }
.progress-bar-bg { height: 8px; background: #333; border-radius: 4px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--primary); transition: width 1s ease; }

/* CARD MISSÃO DO DIA */
.mission-card {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-left: 5px solid var(--primary);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    transition: transform 0.2s;
}
.mission-card:active { transform: scale(0.98); }

.mission-status {
    position: absolute; top: 15px; right: 15px;
    width: 10px; height: 10px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}
.pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }

.mission-label { font-size: 10px; color: var(--primary); font-weight: bold; letter-spacing: 1px; }
.mission-content h2 { font-family: var(--font-heading); font-size: 28px; margin: 5px 0; }
.mission-content p { font-size: 14px; color: var(--text-muted); }
.mission-action { font-size: 20px; color: #666; }

/* FERRAMENTAS GRID */
.section-title { font-size: 14px; color: #666; margin-bottom: 15px; font-family: var(--font-heading); letter-spacing: 1px; }

.tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.tool-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #222;
    cursor: pointer;
    transition: 0.2s;
}
.tool-card:active { border-color: var(--primary); background: #1a1a1a; }
.tool-card i { font-size: 24px; margin-bottom: 10px; display: block; color: var(--text-muted); }
.tool-card span { font-family: var(--font-heading); font-size: 14px; letter-spacing: 1px; }

/* BANNER MOTIVACIONAL */
.motivation-banner {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    text-align: center;
    border: 1px dashed #444;
}
.motivation-banner p { font-style: italic; font-size: 14px; color: #888; }

/* --- MODAL (POPUP) --- */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-dark);
    z-index: 2000;
    padding: 20px;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}
.modal.active { display: block; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.modal-header {
    display: flex; align-items: center; gap: 15px;
    margin-bottom: 30px;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}
.back-btn { background: none; border: none; color: white; font-size: 24px; cursor: pointer; }
.modal-header h3 { font-family: var(--font-heading); font-size: 24px; }

/* LISTA DE EXERCÍCIOS */
.workout-section { margin-bottom: 30px; }
.workout-section h4 { 
    font-family: var(--font-heading); color: var(--primary); 
    margin-bottom: 15px; font-size: 16px; 
    border-left: 3px solid var(--primary); padding-left: 10px;
}

.exercise-list { list-style: none; }
.exercise-list li {
    background: var(--bg-card-light);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    color: #ddd;
    display: flex; justify-content: space-between;
}

details.exercise-detail {
    background: var(--bg-card-light);
    margin-bottom: 10px;
    border-radius: 4px;
    border-left: 3px solid var(--primary);
}

details.exercise-detail summary {
    padding: 15px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

details.exercise-detail p.technique-desc {
    padding: 15px;
    background: #222;
    color: #ccc;
    font-size: 14px;
    border-top: 1px solid #333;
}

/* CONTEÚDO DE APOIO */
.info-card {
    background: var(--bg-card-light);
    padding: 20px; border-radius: 8px; margin-bottom: 15px;
    border-left: 4px solid var(--secondary);
}
.info-card h4 { margin-bottom: 10px; color: var(--secondary); font-family: var(--font-heading); }

/* ÍCONE DE LOGIN (No lugar da imagem) */
.logo-icon {
    font-size: 60px;
    color: var(--primary);
    margin-bottom: 20px;
    display: inline-block;
    padding: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 128, 255, 0.3);
}

/* LOGO TÁTICO (SEM ÍCONES) */
.tactical-logo {
    display: inline-block;
    border: 2px solid var(--primary);
    padding: 15px 30px;
    border-radius: 8px; /* Levemente arredondado, mas duro */
    background: rgba(0, 128, 255, 0.05); /* Fundo azul muito sutil */
    margin-bottom: 15px;
}

.logo-top {
    display: block;
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 6px; /* Espaçamento militar */
    color: var(--text-muted);
    margin-bottom: -5px;
    text-transform: uppercase;
}

.logo-main {
    display: block;
    font-family: var(--font-heading);
    font-size: 72px; /* GIGANTE */
    line-height: 1;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 15px rgba(0, 128, 255, 0.5); /* Glow azul */
}

.logo-line {
    width: 100%;
    height: 4px;
    background-color: var(--primary);
    margin-top: 5px;
}

/* Ajuste a subtítulo para ficar mais próximo */
.subtitle {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
}