/* CSS Variables (Liquid Glass Design System) */
:root {
    --primary: 230 70% 50%;
    --primary-foreground: 0 0% 100%;
    --primary-glow: 230 80% 65%;
    --background: 240 13% 95%;
    --foreground: 222 47% 11%;
    --card: 0 0% 100% / 0.7;
    --card-foreground: 222 47% 11%;
    --muted: 220 15% 92% / 0.7;
    --muted-foreground: 220 10% 45%;
    --destructive: 0 72% 51%;
    --success: 142 71% 45%;
    --warning: 38 92% 50%;
    --border: 220 15% 88% / 0.5;
    --ring: 230 70% 50%;
    --radius: 1rem;

    --glass-bg: 0 0% 100% / 0.6;
    --glass-border: 0 0% 100% / 0.3;
    --glass-blur: 20px;
    --glass-highlight: 0 0% 100% / 0.8;

    --sidebar-background: 0 0% 100%;
    --sidebar-border: 220 15% 88% / 0.5;
}

.dark {
    --primary: 230 70% 60%;
    --background: 222 47% 6%;
    --foreground: 220 15% 92%;
    --card: 222 30% 12% / 0.75;
    --glass-bg: 222 30% 12% / 0.7;
    --glass-border: 220 20% 30% / 0.4;
    --glass-blur: 24px;
    --glass-highlight: 222 30% 20% / 0.8;

    --sidebar-background: 222 30% 12% / 0.75;
    --sidebar-border: 220 20% 30% / 0.4;
}

/* Glass Card */
.glass-card {
    background: hsl(var(--glass-bg));
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid hsl(var(--glass-border));
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), inset 0 1px 0 hsl(var(--glass-highlight));
}

/* Sidebar */
.glass-sidebar {
    background: hsl(var(--sidebar-background));
    border-right: 1px solid hsl(var(--sidebar-border));
}

/* Botão Gradiente */
.btn-gradient {
    background: hsl(var(--primary));
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 0 15px -3px hsl(var(--primary-glow));
}

/* Hover Eleva */
.hover-lift {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Esconder barra de rolagem */
.scrollbar-hide {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Animações CSS puros */
.animate-slide-in-from-bottom {
    animation: slideInFromBottom 0.3s ease-out;
    /* Sem "forwards": remove o transform após a animação para não quebrar
       position:fixed dos filhos (transform cria novo containing block) */
}

@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Bottom Nav – Painel Líder ===== */
.lider-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-around;
    overflow: visible;
    background: #FFFFFF;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.03);
}

.dark .lider-bottom-nav {
    background: #1C1C1E;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lider-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    align-self: flex-start;
    gap: 3px;
    flex: 1;
    color: #6B7280;
    text-decoration: none;
    padding: 0;
    margin-top: 5px;
    position: relative;
    font-size: 22px;
    transition: color 0.2s ease;
}

.lider-nav-label {
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
}

.lider-nav-item--active {
    color: #1D1D1F;
}

.lider-nav-item--active .lider-nav-label {
    font-weight: 700;
}

/* FAB — botão central de ação */
.lider-nav-fab {
    position: relative;
    bottom: 30px; /* eleva acima do topo da barra */
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #2F9E44;
    color: #ffffff;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(47, 158, 68, 0.42),
                0 0 0 5px rgba(47, 158, 68, 0.14);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.lider-nav-fab:active {
    transform: scale(0.93);
    box-shadow: 0 2px 8px rgba(47, 158, 68, 0.35),
                0 0 0 3px rgba(47, 158, 68, 0.10);
}

/* Espaçador — evita conteúdo ficar atrás da barra */
.lider-bottom-spacer {
    height: calc(80px + env(safe-area-inset-bottom));
}