/* 
 * Nombre de Archivo: style.css
 * Ubicación: /FitScan_App/assets/css/style.css
 * Descripción: Diseño nativo para app móvil. Colores psicológicos para fitness.
 */

:root {
    --bg-dark: #0F172A; /* Gris oscuro azulado - Poder y enfoque */
    --surface: #1E293B; /* Color de las cajas de texto */
    --neon-green: #00E676; /* Vitalidad, progreso, acción */
    --neon-hover: #00C853; 
    --text-main: #FFFFFF;
    --text-muted: #94A3B8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    /* Evita el resaltado azul al tocar botones en Android */
    -webkit-tap-highlight-color: transparent; 
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* Simulador de pantalla de celular para escritorio, en celular ocupa el 100% */
.app-container {
    width: 100%;
    max-width: 450px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Logotipo */
.logo-container {
    text-align: center;
    margin-bottom: 50px;
}

.logo-placeholder h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo-placeholder span {
    color: var(--neon-green); /* Destaca la palabra Scan */
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Formularios y Animaciones */
.form-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Inputs nativos */
.input-group {
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    background-color: var(--surface);
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: var(--neon-green);
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.2);
}

.input-group input::placeholder {
    color: var(--text-muted);
}

/* Botón de Acción */
.btn-primary {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    background-color: var(--neon-green);
    color: #000000; /* Texto negro para contraste máximo */
    font-weight: bold;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.btn-primary:active {
    background-color: var(--neon-hover);
    transform: scale(0.98); /* Efecto táctil nativo */
}

/* Textos inferiores */
.toggle-text {
    text-align: center;
    margin-top: 25px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.toggle-text span {
    color: var(--neon-green);
    font-weight: bold;
    cursor: pointer;
}


/* =================================================   
 * ESTILOS DEL DASHBOARD (FitScan)
 * ================================================= */

.dashboard-container {
    padding: 30px 20px;
    max-width: 480px;
}

/* Cabecera */
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.welcome-text {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.dash-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
}

.badge-sub {
    background-color: rgba(0, 230, 118, 0.15);
    color: var(--neon-green);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    border: 1px solid rgba(0, 230, 118, 0.3);
}

.badge-sub.expired {
    background-color: rgba(255, 82, 82, 0.15);
    color: #FF5252;
    border-color: rgba(255, 82, 82, 0.3);
}

/* Banner Estrella de IA (Efecto Persuasivo) */
.ai-banner-card {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    border: 2px solid var(--neon-green);
    border-radius: 16px;
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-bottom: 35px;
    box-shadow: 0 4px 20px rgba(0, 230, 118, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ai-banner-card:active {
    transform: scale(0.98);
}

.ai-tag {
    background-color: var(--neon-green);
    color: #000;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.ai-banner-content h3 {
    font-size: 1.2rem;
    margin: 8px 0 4px 0;
    color: #fff;
}

.ai-banner-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.ai-icon {
    font-size: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 12px;
    margin-left: 15px;
}

/* Categorías Manuales */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 15px;
}

.section-title h3 {
    font-size: 1.1rem;
}

.section-title span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.grid-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.cat-card {
    background-color: var(--surface);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.cat-card:hover {
    border-color: var(--neon-green);
}

.cat-emoji {
    font-size: 2rem;
    margin-bottom: 8px;
}

.cat-card span {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Botón Salir */
.logout-section {
    text-align: center;
    margin-top: 20px;
}

.btn-logout {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.btn-logout:hover {
    color: #FF5252;
}


