/* ==================== DASHBOARD.CSS ==================== */
/* Estilos completos para o novo dashboard do OfflineKit */
/* Inclui: Cards modernos, Feed de amigos, Dica inteligente, Responsividade */
/* Versão: Mesclada (original + novos estilos) */
/* ========================================================= */

/* ==================== VARIÁVEIS GLOBAIS ==================== */
:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --primary-light: #a3b8ff;
    --secondary: #764ba2;
    --success: #10b981;
    --success-dark: #059669;
    --danger: #ef4444;
    --danger-dark: #dc2626;
    --warning: #f59e0b;
    --info: #3b82f6;
    --dark: #1f2937;
    --light: #f9fafb;
    --gray: #6b7280;
    --gray-light: #e5e7eb;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --transition: all 0.3s ease;
}

/* ==================== RESET E BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    min-height: 100vh;
    color: var(--dark);
}

/* ==================== HEADER MODERNO ==================== */
.header-moderno {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-badge {
    font-size: 0.65rem;
    color: var(--gray);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    background: var(--light);
}

.status-card i {
    font-size: 0.6rem;
}

.status-card.online i {
    color: var(--success);
}

.sync-btn-moderno {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    transition: var(--transition);
}

.sync-btn-moderno:hover {
    transform: scale(1.02);
    background: var(--primary-dark);
}

.sync-btn-moderno.ativo {
    background: var(--success);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    background: var(--light);
    transition: var(--transition);
}

.user-info:hover {
    background: var(--gray-light);
}

.user-info i:first-child {
    font-size: 1.2rem;
    color: var(--primary);
}

.user-dropdown {
    position: absolute;
    top: 60px;
    right: 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    display: none;
    z-index: 200;
    overflow: hidden;
}

.user-dropdown.show {
    display: block;
    animation: fadeInDown 0.2s ease;
}

.user-dropdown button {
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
}

.user-dropdown button:hover {
    background: var(--light);
}

.user-dropdown .logout-btn {
    color: var(--danger);
    border-top: 1px solid var(--gray-light);
}

/* ==================== NAVEGAÇÃO ==================== */
.nav-moderno {
    background: var(--white);
    border-bottom: 1px solid var(--gray-light);
    position: sticky;
    top: 70px;
    z-index: 99;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
}

.nav-item {
    padding: 0.6rem 1.2rem;
    border: none;
    background: none;
    border-radius: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: var(--transition);
    color: var(--gray);
}

.nav-item i {
    font-size: 1rem;
}

.nav-item.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: var(--shadow);
}

.nav-item:not(.active):hover {
    background: var(--light);
    color: var(--primary);
}

/* ==================== CONTEÚDO PRINCIPAL ==================== */
.content-moderno {
    max-width: 1400px;
    margin: 1.5rem auto;
    padding: 0 1.5rem;
}

.tab-content-moderno {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content-moderno.active {
    display: block;
}

/* ==================== DASHBOARD HEADER ==================== */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.saudacao h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.saudacao h2 span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.data-atual {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

.clima-resumo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.clima-resumo:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow);
}

.clima-resumo i {
    font-size: 1.2rem;
    color: var(--warning);
}

.clima-resumo span {
    font-size: 0.85rem;
    font-weight: 500;
}

/* ==================== GRID DE CARDS ==================== */
.metricas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* NOVO: Grid alternativo para compatibilidade */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-metrica {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.card-metrica:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.card-metrica:active {
    transform: translateY(0);
}

.card-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    opacity: 0.3;
}

.card-icon i {
    font-size: 1.8rem;
}

.card-main-value {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.card-valor {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.card-valor-pequeno {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.card-unit {
    font-size: 0.8rem;
    color: var(--gray);
}

.card-label {
    font-size: 0.7rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.5rem;
}

.card-detalhe {
    font-size: 0.75rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-meta-progress {
    margin-top: 0.5rem;
}

.micro-progress-bar {
    background: var(--gray-light);
    border-radius: 10px;
    height: 4px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.micro-progress-fill {
    height: 100%;
    border-radius: 10px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.percent-small {
    font-size: 0.7rem;
    color: var(--gray);
}

.card-status {
    margin-top: 0.5rem;
}

.status-dot-green {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    margin-right: 0.25rem;
}

/* REMOVIDO: card-trend (obsoleto) */

.card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-agua-rapido {
    background: var(--info);
    color: white;
    border: none;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-agua-rapido:hover {
    transform: scale(1.05);
    background: var(--primary);
}

.progresso-circular {
    position: absolute;
    bottom: 1rem;
    right: 5rem;
    width: 48px;
    height: 48px;
}

.progresso-circular canvas {
    position: absolute;
    top: 0;
    left: 0;
}

.progresso-circular span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    font-weight: bold;
    color: var(--primary);
}

.btn-iniciar-treino-card {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: var(--success);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-iniciar-treino-card:hover {
    transform: scale(1.05);
    background: var(--success-dark);
}

.status-led {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

/* NOVO: Status LED com diferentes estados */
.status-led.on {
    background: var(--success);
    box-shadow: 0 0 6px var(--success);
    animation: pulse-green 1.5s infinite;
}

.status-led.pause {
    background: var(--warning);
}

.status-led.off {
    background: var(--gray);
    animation: none;
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.card-status-live {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
}

/* REMOVIDO: mini-chart (obsoleto) */

/* ==================== NOVOS ESTILOS PARA CARD 4: CALORIAS ==================== */
.calorias-saldo {
    display: flex;
    justify-content: space-between;
    background: var(--light);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    margin: 0.5rem 0;
    text-align: center;
    gap: 0.5rem;
}

.calorias-ganhas,
.calorias-perdidas,
.calorias-saldo-valor {
    flex: 1;
}

.calorias-ganhas .label {
    color: var(--success);
    font-size: 0.65rem;
    display: block;
}

.calorias-perdidas .label {
    color: var(--danger);
    font-size: 0.65rem;
    display: block;
}

.calorias-saldo-valor .label {
    color: var(--secondary);
    font-size: 0.65rem;
    display: block;
}

.calorias-ganhas .valor,
.calorias-perdidas .valor,
.calorias-saldo-valor .valor {
    font-size: 1rem;
    font-weight: 700;
    display: block;
}

.calorias-ganhas .valor {
    color: var(--success);
}

.calorias-perdidas .valor {
    color: var(--danger);
}

.calorias-saldo-valor .valor {
    color: var(--secondary);
}

.calorias-ganhas .unidade,
.calorias-perdidas .unidade,
.calorias-saldo-valor .unidade {
    font-size: 0.6rem;
    color: var(--gray);
}

/* ==================== NOVOS ESTILOS PARA CARD 5: HÁBITOS ==================== */
.habitos-proteina {
    font-size: 0.7rem;
    color: var(--secondary);
    margin: 0.5rem 0;
    padding: 0.25rem 0;
    border-top: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
}

.habitos-proteina .valor {
    font-weight: 700;
    color: var(--primary);
}

.habitos-refeicoes {
    font-size: 0.65rem;
    color: var(--gray);
    background: var(--light);
    border-radius: var(--radius);
    padding: 0.5rem;
    margin-top: 0.5rem;
    max-height: 60px;
    overflow-y: auto;
}

/* ==================== NOVOS ESTILOS PARA CARD 3: TREINO ==================== */
.treino-dia {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0.25rem 0;
}

.treino-detalhes {
    font-size: 0.7rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.treino-exercicios-lista {
    background: var(--light);
    border-radius: var(--radius);
    padding: 0.5rem;
    margin: 0.5rem 0;
    font-size: 0.7rem;
    max-height: 80px;
    overflow-y: auto;
}

.treino-exercicios-lista .texto-placeholder {
    color: var(--gray);
    text-align: center;
    display: block;
}

.treino-exercicio-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--gray-light);
}

.treino-exercicio-item:last-child {
    border-bottom: none;
}

.treino-exercicio-check {
    width: 16px;
    height: 16px;
    border: 2px solid var(--success);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: var(--success);
}

.treino-calorias {
    font-size: 0.7rem;
    color: var(--danger);
    margin: 0.5rem 0;
    font-weight: 600;
}

.btn-iniciar-treino {
    width: 100%;
    background: linear-gradient(135deg, var(--success), var(--success-dark));
    border: none;
    border-radius: var(--radius);
    padding: 0.6rem;
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    margin: 0.5rem 0;
}

.btn-iniciar-treino:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.treino-plano {
    font-size: 0.65rem;
    color: var(--secondary);
    text-align: center;
}

/* ==================== NOVOS ESTILOS PARA CARD 6: ANÁLISE ==================== */
.analise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.analise-item {
    background: var(--light);
    border-radius: var(--radius);
    padding: 0.5rem;
    text-align: center;
}

.analise-item i {
    font-size: 0.8rem;
    color: var(--primary);
    display: block;
    margin-bottom: 0.25rem;
}

.analise-item span {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark);
    display: block;
}

.analise-item small {
    font-size: 0.6rem;
    color: var(--gray);
}

.analise-status {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    padding: 0.5rem;
    background: var(--light);
    border-radius: 30px;
}

/* ==================== SEÇÃO DE 2 COLUNAS ==================== */
.duas-colunas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-feed-amigos,
.card-dica-inteligente,
.card-feed-social-preview {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card-feed-amigos:hover,
.card-dica-inteligente:hover,
.card-feed-social-preview:hover {
    box-shadow: var(--shadow-md);
}

.card-feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-light);
}

.card-feed-header h4 {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-refresh-feed,
.btn-ver-mais {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-refresh-feed:hover,
.btn-ver-mais:hover {
    background: var(--light);
}

/* Feed de Amigos */
.feed-amigos-lista {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

.feed-amigo-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius);
    transition: var(--transition);
    border-bottom: 1px solid var(--gray-light);
}

.feed-amigo-item:last-child {
    border-bottom: none;
}

.feed-amigo-item:hover {
    background: var(--light);
}

.feed-amigo-item.ativo-agora {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.1), transparent);
    border-left: 3px solid var(--success);
}

.feed-amigo-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    position: relative;
    flex-shrink: 0;
}

.online-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: var(--success);
    border-radius: 50%;
    border: 2px solid white;
}

.feed-amigo-conteudo {
    flex: 1;
}

.feed-amigo-nome {
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.agora-badge {
    background: var(--success);
    color: white;
    font-size: 0.6rem;
    padding: 0.15rem 0.4rem;
    border-radius: 20px;
}

.feed-amigo-mensagem {
    font-size: 0.8rem;
    color: var(--dark);
    margin: 0.25rem 0;
}

.feed-amigo-mensagem i {
    margin-right: 0.25rem;
}

.feed-amigo-tempo {
    font-size: 0.65rem;
    color: var(--gray);
}

/* Dica Inteligente */
.dica-conteudo {
    padding: 1rem;
}

.dica-saudacao {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.dica-texto {
    color: var(--dark);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.dica-clima {
    font-size: 0.7rem;
    color: var(--warning);
    margin-top: 0.5rem;
}

.dica-sugestao {
    margin: 0.75rem 0;
}

.btn-sugestao {
    background: linear-gradient(135deg, var(--success), var(--success-dark));
    border: none;
    border-radius: 30px;
    padding: 0.4rem 1rem;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-sugestao:hover {
    transform: scale(1.02);
}

.btn-sugestao-secundario {
    background: var(--gray-light);
    color: var(--dark);
    margin-left: 0.5rem;
}

.btn-sugestao-secundario:hover {
    background: var(--gray);
    color: white;
}

/* Tipos de dica (cores) */
.dica-alerta,
.dica-noite,
.dica-parabens,
.dica-incentivo,
.dica-sugestao-tipo,
.dica-geral {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
}

.dica-alerta {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-left: 4px solid var(--danger);
}

.dica-alerta i {
    color: var(--danger);
    font-size: 1.5rem;
}

.dica-noite {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    border-left: 4px solid var(--primary);
}

.dica-noite i {
    color: var(--primary);
    font-size: 1.5rem;
}

.dica-parabens {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-left: 4px solid var(--success);
}

.dica-parabens i {
    color: var(--success);
    font-size: 1.5rem;
}

.dica-incentivo {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-left: 4px solid var(--warning);
}

.dica-incentivo i {
    color: var(--warning);
    font-size: 1.5rem;
}

.dica-sugestao-tipo {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-left: 4px solid var(--info);
}

.dica-sugestao-tipo i {
    color: var(--info);
    font-size: 1.5rem;
}

.dica-geral {
    background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
    border-left: 4px solid var(--secondary);
}

.dica-geral i {
    color: var(--secondary);
    font-size: 1.5rem;
}

/* Mini Stats */
.mini-stats {
    display: flex;
    justify-content: space-around;
    padding: 0.75rem;
    border-top: 1px solid var(--gray-light);
    background: var(--light);
}

.mini-stat {
    text-align: center;
}

.mini-stat i {
    font-size: 1rem;
    color: var(--primary);
    display: block;
    margin-bottom: 0.25rem;
}

.mini-stat span {
    font-size: 1rem;
    font-weight: 700;
    display: block;
}

.mini-stat small {
    font-size: 0.6rem;
    color: var(--gray);
}

/* Feed Social Preview */
.feed-social-preview-lista {
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem;
}

.feed-social-preview-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius);
    border-bottom: 1px solid var(--gray-light);
}

.feed-social-preview-item:last-child {
    border-bottom: none;
}

/* Empty States */
.empty-feed {
    text-align: center;
    padding: 2rem;
    color: var(--gray);
}

.empty-feed i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.empty-feed p {
    font-size: 0.8rem;
}

.empty-feed small {
    font-size: 0.7rem;
}

/* Skeletons */
.skeleton-feed {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
}

.skeleton-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--gray-light) 25%, #e0e0e0 50%, var(--gray-light) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.skeleton-text {
    flex: 1;
    height: 45px;
    background: linear-gradient(90deg, var(--gray-light) 25%, #e0e0e0 50%, var(--gray-light) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

/* ==================== MODAL PRIVACIDADE ==================== */
.modal-privacidade {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-privacidade-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid var(--gray-light);
}

.modal-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
}

.modal-body {
    padding: 1.25rem;
}

.privacidade-config h4 {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--gray);
}

.config-item {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.config-item label {
    font-weight: 500;
    color: #374151;
}

.config-select {
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: white;
    min-width: 120px;
    cursor: pointer;
}

.config-checkbox {
    justify-content: space-between;
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
}

input:checked + .slider {
    background-color: #667eea;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.amigo-autorizado-item:hover {
    background: #f9fafb;
}

/* ==================== TOAST ==================== */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast-moderno {
    background: var(--dark);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
    pointer-events: auto;
}

.toast-moderno.success {
    background: var(--success);
}

.toast-moderno.error {
    background: var(--danger);
}

.toast-moderno.info {
    background: var(--info);
}

/* ==================== RESPONSIVIDADE ==================== */
@media (max-width: 1024px) {
    .metricas-grid, .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .duas-colunas {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .header-actions {
        justify-content: center;
    }
    
    .nav-container {
        flex-wrap: wrap;
    }
    
    .nav-item span {
        display: none;
    }
    
    .nav-item i {
        font-size: 1.2rem;
    }
    
    .content-moderno {
        padding: 0 1rem;
    }
    
    .metricas-grid, .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        flex-direction: column;
        text-align: center;
    }
    
    .card-metrica {
        padding: 0.75rem;
    }
    
    .card-valor {
        font-size: 1.5rem;
    }
    
    .progresso-circular {
        width: 40px;
        height: 40px;
        right: 4rem;
    }
    
    .analise-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.25rem;
    }
    
    .analise-item {
        padding: 0.25rem;
    }
    
    .calorias-saldo {
        flex-direction: column;
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .card-actions {
        flex-wrap: wrap;
    }
    
    .btn-agua-rapido {
        padding: 0.2rem 0.5rem;
        font-size: 0.65rem;
    }
    
    .feed-amigo-avatar {
        width: 35px;
        height: 35px;
        font-size: 0.7rem;
    }
    
    .feed-amigo-nome {
        font-size: 0.75rem;
    }
    
    .feed-amigo-mensagem {
        font-size: 0.7rem;
    }
    
    .mini-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .mini-stat {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }
    
    .mini-stat i {
        margin-bottom: 0;
    }
    
    .mini-stat span {
        font-size: 0.9rem;
    }
}

/* ==================== ANIMAÇÕES ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ==================== SCROLLBAR PERSONALIZADA ==================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--gray-light);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ==================== UTILITÁRIOS ==================== */
.text-center {
    text-align: center;
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.text-warning {
    color: var(--warning);
}

.text-primary {
    color: var(--primary);
}

.bg-light {
    background: var(--light);
}

.rounded {
    border-radius: var(--radius);
}

.shadow {
    box-shadow: var(--shadow);
}

.cursor-pointer {
    cursor: pointer;
}