/* ==========================================================================
   GENESIS LEGO KIT - Sistema de Design Modular (PT-BR)
   prefix: g- (Genesis)
   ========================================================================== */

:root {
    /* --- PALETA PRIMITIVA (Deep Navy - Azul Marinho Profundo) --- */
    --g-cor-marca-500: #8b5cf6;
    /* Violet 500 */
    --g-cor-marca-600: #7c3aed;
    /* Violet 600 */
    --g-cor-marca-700: #6d28d9;
    /* Violet 700 */
    --g-cor-marca-900: #4c1d95;
    /* Violet 900 */

    --g-cor-escura-400: #475569;
    /* Slate 600 */
    --g-cor-escura-800: #141b2d;
    /* Surface/Card (Navy) */
    --g-cor-escura-900: #0a0f1e;
    /* App Background (Deep Navy) */
    --g-cor-escura-950: #050510;
    /* Deepest (Black-ish Navy) */

    --g-cor-branca: #ffffff;
    --g-cor-cinza-100: #f3f4f6;
    --g-cor-cinza-400: #9ca3af;
    --g-cor-cinza-600: #4b5563;

    --g-cor-sucesso: #10b981;
    --g-cor-alerta: #f59e0b;
    --g-cor-perigo: #ef4444;

    /* --- TOKENS SEMÂNTICOS --- */
    --g-fundo-app: var(--g-cor-escura-900);
    --g-fundo-superficie: var(--g-cor-escura-800);
    --g-fundo-elemento: rgba(255, 255, 255, 0.05);
    /* Elemento sutil */
    --g-fundo-hover: rgba(255, 255, 255, 0.1);
    --g-fundo-gradiente-superficie: linear-gradient(145deg, var(--g-cor-escura-950) 0%, var(--g-cor-escura-800) 100%);

    --g-borda-sutil: rgba(255, 255, 255, 0.1);
    --g-borda-destaque: rgba(139, 92, 246, 0.3);

    --g-texto-primario: var(--g-cor-branca);
    --g-texto-secundario: var(--g-cor-cinza-400);
    --g-texto-marca: #a78bfa;

    --g-sombra-p: 0 4px 6px -1px rgba(0, 0, 0, 0.15);
    --g-sombra-g: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --g-brilho-marca: 0 0 15px rgba(124, 58, 237, 0.3);

    --g-cabecalho-altura: 4.5rem;
    --g-raio-m: 0.75rem;
    --g-raio-g: 1rem;
}

/* ==========================================================================
   BASE & LAYOUT
   ========================================================================== */
.g-raiz {
    background-color: var(--g-fundo-app);
    color: var(--g-texto-primario);
    font-family: 'Inter', system-ui, sans-serif;
    min-height: 100vh;
}

.g-cabecalho {
    height: var(--g-cabecalho-altura);
    background-color: var(--g-fundo-app);
    border-bottom: 1px solid var(--g-borda-sutil);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(8px);
}

.g-container-principal {
    padding: 2rem;
    min-height: calc(100vh - var(--g-cabecalho-altura));
    position: relative;
}

/* Grid Layout Utilitario (Opcional, mas util) */
.g-grade-cards {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .g-grade-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .g-grade-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   TIPOGRAFIA
   ========================================================================== */
.g-texto-cabecalho {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    color: var(--g-texto-primario);
    text-transform: uppercase;
}

.g-texto-titulo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--g-texto-primario);
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

.g-texto-rotulo {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--g-texto-secundario);
}

.g-texto-opaco {
    opacity: 0.7;
}

/* ==========================================================================
   COMPONENTES
   ========================================================================== */

/* --- CARTÕES --- */
.g-cartao {
    background: var(--g-fundo-superficie);
    border: 1px solid var(--g-borda-sutil);
    border-radius: var(--g-raio-g);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.g-cartao:hover {
    transform: translateY(-2px);
    box-shadow: var(--g-sombra-g);
    border-color: var(--g-borda-destaque);
}

/* --- BOTÕES --- */
.g-botao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    border-radius: var(--g-raio-m);
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.g-botao-solido-marca {
    background: linear-gradient(135deg, var(--g-cor-marca-600), var(--g-cor-marca-700));
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.g-botao-solido-marca:hover {
    filter: brightness(1.1);
    box-shadow: var(--g-brilho-marca);
}

.g-botao-contorno {
    background: transparent;
    border-color: var(--g-borda-destaque);
    color: var(--g-texto-marca);
}

.g-botao-contorno:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--g-cor-marca-500);
    color: white;
}

.g-botao-fantasma {
    background: transparent;
    color: var(--g-texto-secundario);
}

.g-botao-fantasma:hover {
    background: var(--g-fundo-hover);
    color: var(--g-texto-primario);
}

/* --- INPUTS & FILTROS --- */
.g-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    background: var(--g-fundo-superficie);
    border: 1px solid var(--g-borda-sutil);
    border-radius: var(--g-raio-m);
    color: white;
    transition: all 0.2s;
}

.g-input:focus {
    outline: none;
    border-color: var(--g-cor-marca-500);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.g-filtro-botao {
    padding: 0.625rem 1rem;
    border-radius: var(--g-raio-m);
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    background: var(--g-fundo-superficie);
    color: var(--g-texto-secundario);
    border: 1px solid var(--g-borda-sutil);
}

.g-filtro-botao:hover,
.g-filtro-botao.ativo {
    background: var(--g-cor-marca-600);
    color: white;
    border-color: var(--g-cor-marca-500);
}

/* --- ETIQUETAS (BADGES) --- */
.g-etiqueta {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: normal;
}

.g-etiqueta-laranja-sutil {
    background: rgba(249, 115, 22, 0.1);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.2);
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.1);
}

/* Modais e Painéis: Fundo Sólido */
.g-modal-painel,
.g-painel-lateral-conteudo {
    background: #0f0c29 !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   MÓDULO: ADMIN (GAME LIKE)
   ========================================================================== */

/* 1. Header Hero da Página */
.headerPage-grupos {
    position: relative;
    overflow: hidden;
    min-height: 100px;
    padding: 50px 0;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
}

.headerPage-grupos::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 160px 30px, rgba(255, 255, 255, 0.3), transparent);
    background-size: 200px 100px;
    animation: sparkle 4s linear infinite;
    pointer-events: none;
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.headerPage-grupos::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #a855f7, #06b6d4, #a855f7, transparent);
    background-size: 200% 100%;
    animation: glow-line 3s ease-in-out infinite;
}

@keyframes glow-line {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.header-container-grupos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem 2rem;
    position: relative;
    z-index: 1;
    max-width: 1320px;
    margin: 0 auto;
}

/* Título com efeito de glow */
.header-title-grupos {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-title-grupos h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-title-grupos h1 i {
    color: #a855f7;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.6));
    animation: icon-glow 2s ease-in-out infinite;
}

@keyframes icon-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.6));
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.9));
    }
}

/* Estatísticas compactas no header - lado a lado */
.header-stats-grupos {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex-wrap: nowrap !important;
}

.stat-badge-game {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    white-space: nowrap;
}

.stat-badge-game::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.stat-badge-game:hover::before {
    left: 100%;
}

.stat-badge-game:hover {
    transform: translateY(-2px) scale(1.05);
}

.stat-badge-game.purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4) 0%, rgba(168, 85, 247, 0.2) 100%);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3), inset 0 0 15px rgba(139, 92, 246, 0.1);
}

.stat-badge-game.blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.4) 0%, rgba(99, 102, 241, 0.2) 100%);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3), inset 0 0 15px rgba(59, 130, 246, 0.1);
}

.stat-badge-game.gold {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.4) 0%, rgba(245, 158, 11, 0.2) 100%);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3), inset 0 0 15px rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
}

.stat-badge-game.emerald {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.4) 0%, rgba(20, 184, 166, 0.2) 100%);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3), inset 0 0 15px rgba(16, 185, 129, 0.1);
}

.stat-badge-game .stat-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.stat-badge-game.purple .stat-icon {
    background: rgba(139, 92, 246, 0.5);
    color: #e9d5ff;
}

.stat-badge-game.blue .stat-icon {
    background: rgba(59, 130, 246, 0.5);
    color: #dbeafe;
}

.stat-badge-game.gold .stat-icon {
    background: rgba(251, 191, 36, 0.5);
    color: #fef3c7;
}

.stat-badge-game.emerald .stat-icon {
    background: rgba(16, 185, 129, 0.5);
    color: #d1fae5;
}

.stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.stat-label {
    font-size: 0.75rem;
    opacity: 0.85;
    font-weight: 500;
}

/* Botão de ação no header */
.btn-action-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

.btn-action-header:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: #fff;
    text-decoration: none;
}

.btn-action-header:active {
    transform: translateY(0);
}

.btn-action-header i {
    font-size: 1rem;
}

@media (max-width: 992px) {
    .header-container-grupos {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .header-stats-grupos {
        width: 100%;
        justify-content: flex-start;
    }

    .stat-badge-game {
        flex: 1;
        min-width: 100px;
        justify-content: center;
    }
}

/* 2. Cartão de Jogo (Game Card) */
.g-cartao-jogo {
    position: relative;
    transition: all 0.3s;
    background: var(--g-fundo-superficie);
    border-radius: 1rem;
    overflow: hidden;
}

.g-cartao-jogo:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Borda Overlay */
.g-cartao-jogo::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(124, 58, 237, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.4;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 0;
}

.g-cartao-jogo:hover::before {
    opacity: 0.8;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.6), rgba(124, 58, 237, 0.4));
}

/* Partes do Cartão */
.g-cartao-cabecalho {
    position: relative;
    z-index: 2;
    padding: 1rem;
    background: linear-gradient(135deg, #2d2a4a 0%, #1e1b3a 100%);
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.g-cartao-titulo {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.g-cartao-corpo {
    padding: 1rem;
    background: var(--g-fundo-superficie);
    position: relative;
    z-index: 2;
}

.g-cartao-rodape {
    padding: 0.625rem 1rem;
    background: #151525;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    position: relative;
    z-index: 2;
}

/* Elementos Internos do Cartão */
.g-etiqueta-dia {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.2s;
}

.g-etiqueta-dia.ativo {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.g-etiqueta-dia.inativo {
    background: rgba(55, 65, 81, 0.5);
    color: #6b7280;
    border: 1px solid rgba(75, 85, 99, 0.3);
}

.g-pilula-stat {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #d8b4fe;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.g-tag-regiao {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 500;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #d8b4fe;
    transition: all 0.2s;
}

.g-tag-regiao:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
}

.g-tag-regiao .dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background: #a855f7;
    margin-right: 0.375rem;
}

.g-bg-transparente {
    background: rgba(255, 255, 255, 0.05);
}

.g-bg-transparente:hover {
    background: rgba(255, 255, 255, 0.15);
}

.g-botao-acao {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: all 0.2s;
    cursor: pointer;
    color: var(--g-texto-secundario);
}

.g-botao-acao:hover {
    transform: scale(1.1);
    color: #fff;
}

.g-link-acao {
    color: #a855f7;
    transition: all 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.g-link-acao:hover {
    color: #d8b4fe;
}


/* Temas Overrides (Ouro) */
.g-cartao-tema-ouro-alto::before {
    background: linear-gradient(135deg, #fbbf24, #d97706) !important;
    opacity: 0.6 !important;
}

.g-cartao-tema-ouro-alto:hover::before {
    opacity: 1 !important;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
}

.g-cartao-tema-ouro-alto .g-etiqueta-dia.ativo {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

.g-cartao-tema-ouro-alto .g-tag-regiao {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.g-cartao-tema-ouro-alto .g-link-acao {
    color: #d97706;
}

.g-cartao-tema-ouro-alto .g-cartao-rodape {
    border-top-color: rgba(251, 191, 36, 0.1);
}

.g-cartao-tema-ouro-alto .g-tag-regiao .dot {
    background: #d97706;
}

.g-cartao-tema-ouro-medio::before {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.5), rgba(245, 158, 11, 0.3)) !important;
    opacity: 0.5 !important;
}

.g-cartao-tema-ouro-medio:hover::before {
    opacity: 0.8 !important;
}

.g-cartao-tema-ouro-medio .g-etiqueta-dia.ativo {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

/* Aplica mesmas cores do alto para medio nos filhos por simplicidade */
.g-cartao-tema-ouro-medio .g-tag-regiao {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

/* Modal Fundo (Container Backdrop + Scroll) */
.g-modal-fundo {
    position: fixed !important;
    inset: 0 !important;
    z-index: inherit !important;
    /* Herda do pai */
    background: rgba(5, 5, 10, 0.85) !important;
    backdrop-filter: blur(4px);
    overflow-y: auto !important;
    /* Força scroll se necessário */
    overflow-x: hidden;
    display: flex;
    align-items: flex-start;
    /* Alinha no topo */
    justify-content: center;
    /* Centraliza horizontalmente */
    padding: 100px 1rem 2rem 1rem;
    /* Start 100px from top */
    transition: opacity 0.3s ease;
}

/* Modal wrapper - sempre fixed e no topo de tudo */
[role="dialog"][aria-modal="true"] {
    position: fixed !important;
    inset: 0 !important;
}

.g-modal-painel {
    position: relative;
    width: 100%;
    margin: 0 auto;
    background: linear-gradient(145deg, #0f0c29 0%, #1a1435 50%, #0d0a1f 100%) !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.8),
        0 0 80px rgba(139, 92, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    transform: none !important;
}

/* Ocultar título gerado pelo visualFormulario dentro do painel de agrupamentos */
#viewNovoAgrupamento fieldset>.flex.items-center.gap-3.pb-4.border-b {
    display: none !important;
}

/* Ocultar título redundante em formulários de agrupamento */
fieldset.criarAgrupamentoFormulario>.flex.items-center.gap-3.pb-4,
fieldset.editarAgrupamentoFormulario>.flex.items-center.gap-3.pb-4 {
    display: none !important;
}

/* Radio Button Selecionado (Labels customizadas) */
.g-radio-selecionado {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(79, 70, 229, 0.2) 100%) !important;
    border-color: rgba(139, 92, 246, 0.6) !important;
    color: #e9d5ff !important;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3), inset 0 0 10px rgba(139, 92, 246, 0.1) !important;
}

/* Etiqueta Vermelha (para datas específicas/urgentes) */
.g-etiqueta-vermelho {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.1) 100%) !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    color: #fca5a5 !important;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.2) !important;
}

/* Card com Data Específica - Destaque vermelho */
.g-item-data-especifica {
    border-color: rgba(239, 68, 68, 0.4) !important;
    background: linear-gradient(145deg, rgba(30, 10, 10, 0.95) 0%, #12121f 50%, rgba(30, 10, 10, 0.8) 100%) !important;
    box-shadow:
        0 0 25px rgba(239, 68, 68, 0.15),
        inset 0 0 30px rgba(239, 68, 68, 0.05) !important;
}

.g-item-data-especifica .g-item-lista-destaque {
    background: linear-gradient(to bottom, rgba(239, 68, 68, 0.8) 0%, rgba(220, 38, 38, 0.4) 50%, transparent 100%) !important;
}

/* 3. Botão Flutuante */
.g-botao-flutuante {
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 50%, #0f0f2f 100%);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.6), inset 0 0 20px rgba(139, 92, 246, 0.2);
    transition: transform 0.3s;
}

.g-botao-flutuante:hover {
    transform: scale(1.1);
}

.g-botao-flutuante .borda-animada {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(139, 92, 246, 0.5);
}

.g-botao-flutuante .pulso {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: linear-gradient(to bottom right, rgba(124, 58, 237, 0.2), transparent);
    animation: g-animacao-pulsar 2s infinite;
}

/* Painel Lateral Direto */
.g-painel-lateral-direito {
    position: absolute;
    top: 0;
    height: 100vh;
    right: 0;
    display: flex;
    flex-direction: column;
    width: 30%;
    min-width: 380px;
    background: #0f0c29 !important;
    /* Cor sólida forçada */
    border-left: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    transition: transform 0.3s;
}

/* Estado Aberto */
.g-painel-lateral-direito.aberto {
    transform: translateX(0);
}

/* Tamanhos de Modal Padronizados */
.g-modal-pequeno {
    width: 100%;
    max-width: 400px;
}

.g-modal-medio {
    width: 100%;
    max-width: 600px;
}

.g-modal-grande {
    width: 100%;
    max-width: 900px;
}

/* Variação de Cabeçalho do Card */
.g-cabecalho-laranja {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.1) 100%) !important;
    border-bottom: 1px solid rgba(245, 158, 11, 0.2) !important;
}

.g-cabecalho-laranja-intenso {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(217, 119, 6, 0.2) 100%) !important;
    border-bottom: 1px solid rgba(245, 158, 11, 0.3) !important;
}

/* Utilitário de Texto */
.g-texto-claro {
    color: #d1d5db !important;
}

/* Cinza claro (gray-300) */
.g-botao-novo-item {
    width: 100%;
    padding: 1rem;
    border-radius: 0.75rem;
    font-weight: 700;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #252550 50%, #1a1a2e 100%);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: white;
    cursor: pointer;
}

.g-botao-novo-item::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s;
    background: linear-gradient(to right, transparent, rgba(139, 92, 246, 0.2), transparent);
}

.g-botao-novo-item:hover::before {
    opacity: 1;
}

.g-botao-novo-item .icone-circular {
    position: relative;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

/* Botão Link (Vincular) */
.g-botao-vincular {
    height: 2rem;
    padding: 0 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.05));
    color: #a78bfa;
    border: none;
    cursor: pointer;
}

.g-botao-vincular:hover {
    transform: translateY(-2px);
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.1));
    color: #fff;
}

/* 4. Lista Agrupamento */
.g-item-lista {
    position: relative;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
    background: linear-gradient(145deg, var(--g-cor-escura-950) 0%, var(--g-cor-escura-800) 100%);
    box-shadow: var(--g-sombra-g);
}

.g-item-lista:hover {
    box-shadow: 0 0 20px rgba(76, 29, 149, 0.2);
}

.g-item-lista-destaque::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--g-cor-marca-600), transparent);
    opacity: 0.5;
    transition: opacity 0.3s;
}

.g-item-lista:hover .g-item-lista-destaque::before {
    opacity: 1;
}

.g-icone-caixa {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* 5. Painel Lateral */
.g-painel-lateral-cabecalho {
    position: relative;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    background: linear-gradient(135deg, #1e1b4b 0%, #0f0c29 100%);
}

.g-painel-lateral-titulo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.g-painel-lateral-subtitulo {
    color: rgba(216, 180, 254, 0.5);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-family: monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.g-painel-lateral-decor {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #a855f7, transparent);
    opacity: 0.5;
}

/* ==========================================================================
   PAINEL DE CONTROLE FLUTUANTE
   Usado para barras de estatísticas e ações sobre mapas ou views
   ========================================================================== */

.g-painel-controle {
    background: linear-gradient(135deg, rgba(15, 12, 41, 0.95) 0%, rgba(26, 20, 53, 0.95) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid var(--g-borda-destaque);
    border-radius: var(--g-raio-g);
    box-shadow:
        var(--g-sombra-g),
        0 0 40px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Separador vertical entre seções */
.g-separador-vertical {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.4), transparent);
}

/* ==========================================================================
   STAT BADGES - Badges de estatísticas
   ========================================================================== */

.g-stat-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--g-texto-primario);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    white-space: nowrap;
    cursor: default;
}

.g-stat-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.g-stat-badge:hover::before {
    left: 100%;
}

.g-stat-badge:hover {
    transform: translateY(-2px) scale(1.02);
}

/* Cores dos badges */
.g-stat-badge.purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4) 0%, rgba(168, 85, 247, 0.2) 100%);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3), inset 0 0 15px rgba(139, 92, 246, 0.1);
}

.g-stat-badge.blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.4) 0%, rgba(99, 102, 241, 0.2) 100%);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3), inset 0 0 15px rgba(59, 130, 246, 0.1);
}

.g-stat-badge.green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.4) 0%, rgba(20, 184, 166, 0.2) 100%);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3), inset 0 0 15px rgba(16, 185, 129, 0.1);
}

.g-stat-badge.orange {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.4) 0%, rgba(251, 146, 60, 0.2) 100%);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.3), inset 0 0 15px rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.3);
}

.g-stat-badge.indigo {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4) 0%, rgba(129, 140, 248, 0.2) 100%);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3), inset 0 0 15px rgba(99, 102, 241, 0.1);
}

.g-stat-badge.red {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.4) 0%, rgba(248, 113, 113, 0.2) 100%);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3), inset 0 0 15px rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

/* Ícone dentro do stat badge */
.g-stat-badge .stat-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.g-stat-badge.purple .stat-icon {
    background: rgba(139, 92, 246, 0.5);
    color: #e9d5ff;
}

.g-stat-badge.blue .stat-icon {
    background: rgba(59, 130, 246, 0.5);
    color: #dbeafe;
}

.g-stat-badge.green .stat-icon {
    background: rgba(16, 185, 129, 0.5);
    color: #d1fae5;
}

.g-stat-badge.orange .stat-icon {
    background: rgba(249, 115, 22, 0.5);
    color: #ffedd5;
}

.g-stat-badge.indigo .stat-icon {
    background: rgba(99, 102, 241, 0.5);
    color: #e0e7ff;
}

.g-stat-badge.red .stat-icon {
    background: rgba(239, 68, 68, 0.5);
    color: #fee2e2;
}

.g-stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.g-stat-label {
    font-size: 0.7rem;
    opacity: 0.85;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
/* ==========================================================================
   STAT BADGE COM BARRA DE PROGRESSO
   Uso: adicionar data-progress="50" para 50%
   A barra inferior de 3px funciona como indicador visual de progresso
   ========================================================================== */

.g-stat-badge-progress {
    position: relative;
    /* Adiciona padding inferior extra para a barra não colar no texto visualmente se necessário, 
       mas como é absolute bottom 0, fica sobreposta à borda inferior */
    overflow: hidden;
    /* Garante que a barra respeite o radius */
}

/* Barra de progresso horizontal no fundo */
.g-stat-badge-progress::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--progress-color, #3b82f6);
    width: calc(var(--progress, 0) * 1%);
    transition: width 0.5s ease;
    box-shadow: 0 -1px 8px var(--progress-color);
    /* Glow para cima */
    z-index: 2;
}

/* Cores de progresso por tipo */
.g-stat-badge-progress.blue::after {
    --progress-color: #60a5fa;
}

/* Blue 400 mais claro para contraste */
.g-stat-badge-progress.green::after {
    --progress-color: #34d399;
}

/* Emerald 400 */
.g-stat-badge-progress.purple::after {
    --progress-color: #a78bfa;
}

/* Violet 400 */
.g-stat-badge-progress.orange::after {
    --progress-color: #fbbf24;
}

/* Amber 400 */
.g-stat-badge-progress.red::after {
    --progress-color: #f87171;
}

/* Efeito glow quando chega a 100% */
.g-stat-badge-progress.complete::after {
    height: 4px;
    box-shadow: 0 -2px 12px var(--progress-color);
}

@keyframes progress-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* ==========================================================================
   BOTÃO DE AÇÃO - Ghost style para painéis
   ========================================================================== */

.g-btn-acao {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: var(--g-texto-primario);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.g-btn-acao:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: var(--g-texto-primario);
    text-decoration: none;
}

.g-btn-acao i {
    font-size: 1rem;
}

/* ==========================================================================
   BADGE DE AGRUPAMENTO / CONTEXTO
   ========================================================================== */

.g-agrupamento-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.3) 0%, rgba(251, 146, 60, 0.15) 100%);
    border: 1px solid rgba(249, 115, 22, 0.4);
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(249, 115, 22, 0.2), inset 0 0 20px rgba(249, 115, 22, 0.05);
}

.g-agrupamento-badge .agrup-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.6) 0%, rgba(234, 88, 12, 0.4) 100%);
    color: var(--g-texto-primario);
    font-size: 1rem;
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.4);
}

.g-agrupamento-badge .agrup-info {
    display: flex;
    flex-direction: column;
}

.g-agrupamento-badge .agrup-nome {
    color: var(--g-texto-primario);
    font-weight: 700;
    font-size: 0.9rem;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.g-agrupamento-badge .agrup-detalhe {
    color: #fcd34d;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.g-data-especifica-indicator {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(168, 85, 247, 0.2));
    color: #e9d5ff;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ==========================================================================
   OVERLAY DE ERRO / BLOQUEIO
   z-index: 999 para ficar abaixo das modais (z-index: 9999)
   ========================================================================== */

.g-overlay-erro {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 5, 16, 0.85);
    backdrop-filter: blur(8px);
}

.g-overlay-erro-card {
    background: linear-gradient(145deg, #0f0c29 0%, #1a1435 50%, #0d0a1f 100%);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 1.5rem;
    padding: 2.5rem;
    max-width: 480px;
    text-align: center;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.8),
        0 0 80px rgba(239, 68, 68, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: g-erro-entrada 0.4s ease-out;
}

@keyframes g-erro-entrada {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.g-overlay-erro-card .erro-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(220, 38, 38, 0.15));
    border: 2px solid rgba(239, 68, 68, 0.4);
    animation: g-pulse-erro 2s ease-in-out infinite;
}

@keyframes g-pulse-erro {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(239, 68, 68, 0.5);
    }
}

.g-overlay-erro-card .erro-icon i {
    font-size: 2.5rem;
    color: #f87171;
}

.g-overlay-erro-card .erro-titulo {
    color: var(--g-texto-primario);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

.g-overlay-erro-card .erro-mensagem {
    color: #d1d5db;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.g-overlay-erro-card .erro-detalhe {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #fca5a5;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.g-overlay-erro-card .erro-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--g-cor-marca-600), var(--g-cor-marca-700));
    border: none;
    border-radius: 12px;
    color: var(--g-texto-primario);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.g-overlay-erro-card .erro-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
    filter: brightness(1.1);
}

/* ==========================================================================
   POPUP / TOOLTIP DARK
   Para popups de marcadores, menus contextuais, etc.
   ========================================================================== */

.g-popup {
    background: linear-gradient(145deg, #0f0c29 0%, #1a1435 100%) !important;
    border: 1px solid var(--g-borda-destaque) !important;
    border-radius: var(--g-raio-m) !important;
    box-shadow: var(--g-sombra-g), 0 0 30px rgba(139, 92, 246, 0.15) !important;
    color: var(--g-texto-primario) !important;
    padding: 1rem !important;
}

.g-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--g-borda-sutil);
}

.g-popup-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--g-texto-primario);
    margin: 0;
}

.g-popup-close {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--g-texto-secundario);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.g-popup-close:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.g-popup-body {
    font-size: 0.875rem;
    color: var(--g-texto-secundario);
}

.g-popup-body strong {
    color: var(--g-texto-primario);
}

.g-popup-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--g-borda-sutil);
}

/* ==========================================================================
   TABELA DARK
   Para listagens dentro de contextos dark
   ========================================================================== */

.g-tabela {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.g-tabela thead {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(99, 102, 241, 0.1));
}

.g-tabela th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #d8b4fe;
    border-bottom: 1px solid var(--g-borda-destaque);
}

.g-tabela tbody tr {
    border-bottom: 1px solid var(--g-borda-sutil);
    transition: background 0.2s;
}

.g-tabela tbody tr:hover {
    background: rgba(139, 92, 246, 0.1);
}

.g-tabela td {
    padding: 0.75rem 1rem;
    color: var(--g-texto-secundario);
}

.g-tabela td strong {
    color: var(--g-texto-primario);
}

/* ==========================================================================
   PAINEL FLUTUANTE DARK (para rotas, resumos, etc.)
   ========================================================================== */

.g-painel-flutuante {
    background: linear-gradient(145deg, rgba(15, 12, 41, 0.98) 0%, rgba(26, 20, 53, 0.98) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid var(--g-borda-destaque);
    border-radius: var(--g-raio-g);
    box-shadow: var(--g-sombra-g), 0 0 40px rgba(139, 92, 246, 0.1);
    padding: 1rem;
    color: var(--g-texto-primario);
}

.g-painel-flutuante-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--g-borda-sutil);
}

.g-painel-flutuante-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--g-texto-primario);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.g-painel-flutuante-header h3 i {
    color: var(--g-texto-marca);
}

/* ==========================================================================
   PROGRESS BAR DARK
   ========================================================================== */

.g-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.g-progress-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.g-progress-bar-fill.purple {
    background: linear-gradient(90deg, #8b5cf6, #a855f7);
}

.g-progress-bar-fill.blue {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.g-progress-bar-fill.green {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.g-progress-bar-fill.orange {
    background: linear-gradient(90deg, #f97316, #fb923c);
}

.g-progress-bar-fill.red {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

/* ==========================================================================
   CARD DE ROTA / ITEM DE LISTA DARK
   ========================================================================== */

.g-item-rota {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--g-fundo-superficie);
    border: 1px solid var(--g-borda-sutil);
    border-radius: var(--g-raio-m);
    margin-bottom: 0.5rem;
    transition: all 0.2s;
}

.g-item-rota:hover {
    border-color: var(--g-borda-destaque);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.g-item-rota .rota-cor {
    width: 8px;
    height: 40px;
    border-radius: 4px;
    flex-shrink: 0;
}

.g-item-rota .rota-info {
    flex: 1;
    min-width: 0;
}

.g-item-rota .rota-nome {
    font-weight: 600;
    color: var(--g-texto-primario);
    font-size: 0.875rem;
}

.g-item-rota .rota-detalhe {
    font-size: 0.75rem;
    color: var(--g-texto-secundario);
}

.g-item-rota .rota-stats {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--g-texto-secundario);
}

.g-item-rota .rota-actions {
    display: flex;
    gap: 0.25rem;
}

/* ==========================================================================
   UTILIDADES GLOBAIS
   ========================================================================== */

/* Classe utilitária para texto com contorno/stroke - melhora legibilidade */
.texto-contorno,
.text-outline {
    text-shadow:
        -1px -1px 0 rgba(0, 0, 0, 0.8),
        1px -1px 0 rgba(0, 0, 0, 0.8),
        -1px 1px 0 rgba(0, 0, 0, 0.8),
        1px 1px 0 rgba(0, 0, 0, 0.8),
        0 0 3px rgba(0, 0, 0, 0.5);
}

/* Contorno claro para fundos escuros */
/* quero um contorno bemmm fino sem muito blur */
.texto-contorno-claro {
    text-shadow:
        -0.5px -0.5px 0 rgba(0, 0, 0, 0.4),
        0.5px -0.5px 0 rgba(0, 0, 0, 0.4),
        -0.5px 0.5px 0 rgba(0, 0, 0, 0.4),
        0.5px 0.5px 0 rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   PAINEL DE SELEÇÃO DE ROTAS (MAPA - GAME LIKE)
   ========================================================================== */

.g-painel-rotas-selecao {
    background: linear-gradient(145deg, rgba(15, 12, 41, 0.98) 0%, rgba(26, 20, 53, 0.95) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--g-raio-g);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(139, 92, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.g-painel-rotas-selecao .g-input {
    padding: 0.625rem 0.875rem;
    font-size: 0.8125rem;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.g-painel-rotas-selecao .g-input:focus {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

/* Lista de Rotas */
.g-painel-rotas-lista {
    max-height: 280px;
    overflow-y: auto;
    padding: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.3) transparent;
}

.g-painel-rotas-lista::-webkit-scrollbar {
    width: 6px;
}

.g-painel-rotas-lista::-webkit-scrollbar-track {
    background: transparent;
}

.g-painel-rotas-lista::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 3px;
}

/* Botão de Rota Individual (Game Style) */
.g-rota-btn {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--g-texto-primario);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: left;
    margin-bottom: 0.375rem;
}

.g-rota-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.4s;
}

.g-rota-btn:hover::before {
    left: 100%;
}

/* [FIX 4] Hover LEVE - removido transform para evitar lag */
.g-rota-btn:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 10px rgba(139, 92, 246, 0.15);
}

.g-rota-btn.item-focused {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3), inset 0 0 10px rgba(139, 92, 246, 0.1);
}

/* Container esquerdo (ID + Nome) */
.g-rota-btn .rota-info-left {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex: 1;
    min-width: 0;
}

/* Container direito (Status/Disponível) */
.g-rota-btn .rota-info-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.g-rota-btn .rota-nome {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.g-rota-btn .rota-cubagem {
    font-size: 0.6875rem;
    color: var(--g-texto-secundario);
    opacity: 0.8;
}

/* Badges de status no botão de rota */
.g-rota-btn .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.g-rota-btn .status-badge.em-uso {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.g-rota-btn .status-badge.disponivel {
    background: rgba(100, 116, 139, 0.15);
    border: 1px solid rgba(100, 116, 139, 0.25);
    color: #94a3b8;
}


/* Seção de Ações Fixas */
.g-painel-acoes-fixas {
    position: sticky;
    bottom: 0;
    background: linear-gradient(to top, rgba(15, 12, 41, 1) 70%, transparent);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

/* ==========================================================================
   BOTÕES ÉPICOS (GAME STYLE - AÇÕES CRÍTICAS)
   ========================================================================== */

.g-btn-epico {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.625rem;
    width: 100%;
    padding: 0.625rem 1rem;
    border-radius: 0.625rem;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.g-btn-epico::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.g-btn-epico:hover::before {
    opacity: 1;
}

.g-btn-epico i {
    font-size: 1rem;
    transition: all 0.3s;
}

.g-btn-epico:hover i {
    transform: scale(1.2);
}

/* Quarentena - Amarelo/Laranja */
.g-btn-epico.quarentena {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.1) 100%);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
    box-shadow: inset 0 0 20px rgba(245, 158, 11, 0.05);
}

.g-btn-epico.quarentena::before {
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.2), transparent);
}

.g-btn-epico.quarentena:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.2) 100%);
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3), inset 0 0 20px rgba(245, 158, 11, 0.1);
    transform: translateY(-2px);
}

.g-btn-epico.quarentena i {
    color: #f59e0b;
    filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.6));
}

/* Remover da Rota - Vermelho */
.g-btn-epico.remover-rota {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
    box-shadow: inset 0 0 20px rgba(239, 68, 68, 0.05);
}

.g-btn-epico.remover-rota::before {
    background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.2), transparent);
}

.g-btn-epico.remover-rota:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(220, 38, 38, 0.2) 100%);
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3), inset 0 0 20px rgba(239, 68, 68, 0.1);
    transform: translateY(-2px);
}

.g-btn-epico.remover-rota i {
    color: #ef4444;
    filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.6));
}

/* Remover Pedido - Azul */
.g-btn-epico.remover-pedido {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.1) 100%);
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    box-shadow: inset 0 0 20px rgba(59, 130, 246, 0.05);
}

.g-btn-epico.remover-pedido::before {
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
}

.g-btn-epico.remover-pedido:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(37, 99, 235, 0.2) 100%);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3), inset 0 0 20px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.g-btn-epico.remover-pedido i {
    color: #3b82f6;
    filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.6));
}

/* ==========================================================================
   PAINEL DE SELEÇÃO DE MARKERS (FLUTUANTE)
   ========================================================================== */

.g-painel-selecao-markers {
    position: fixed;
    bottom: 80px;
    right: 1rem;
    z-index: 9999;
    background: linear-gradient(145deg, rgba(15, 12, 41, 0.98) 0%, rgba(26, 20, 53, 0.95) 100%);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: var(--g-raio-g);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.g-painel-selecao-markers .stat-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.g-painel-selecao-markers .stat-item {
    text-align: center;
    padding: 0 0.75rem;
    border-right: 1px solid rgba(139, 92, 246, 0.2);
}

.g-painel-selecao-markers .stat-item:last-child {
    border-right: none;
}

.g-painel-selecao-markers .stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.g-painel-selecao-markers .stat-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
}

.g-painel-selecao-markers .actions {
    display: flex;
    gap: 0.5rem;
}

.g-painel-selecao-markers .btn-acao {
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.g-painel-selecao-markers .btn-confirmar {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.g-painel-selecao-markers .btn-confirmar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.5);
}

.g-painel-selecao-markers .btn-cancelar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.3));
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.g-painel-selecao-markers .btn-cancelar:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    transform: scale(1.1);
}

/* ==========================================================================
   MENU DE CONTEXTO DE ROTA (GAME LIKE)
   ========================================================================== */

.g-menu-contexto-rota {
    background: linear-gradient(145deg, rgba(15, 12, 41, 0.98) 0%, rgba(26, 20, 53, 0.95) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--g-raio-g);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(139, 92, 246, 0.15);
    backdrop-filter: blur(12px);
    padding: 1rem;
    min-width: 280px;
}

.g-menu-contexto-rota .header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.g-menu-contexto-rota .header .rota-cor-indicador {
    width: 4px;
    height: 32px;
    border-radius: 2px;
}

.g-menu-contexto-rota .header .rota-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.g-menu-contexto-rota .header .rota-info span {
    font-size: 0.75rem;
    color: var(--g-texto-secundario);
}

/* Badges no menu de contexto */
.g-badge-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 600;
}

.g-badge-stat.purple {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #c4b5fd;
}

.g-badge-stat.green {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.g-badge-stat.orange {
    background: rgba(249, 115, 22, 0.2);
    border: 1px solid rgba(249, 115, 22, 0.3);
    color: #fdba74;
}

.g-badge-stat.blue {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

.g-badge-stat.red {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* Botões no menu de contexto */
.g-menu-contexto-rota .btn-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.625rem 0.875rem;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--g-texto-primario);
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0.375rem;
}

.g-menu-contexto-rota .btn-menu:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateX(4px);
}

.g-menu-contexto-rota .btn-menu.primary {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(99, 102, 241, 0.15));
    border-color: rgba(139, 92, 246, 0.3);
    color: #c4b5fd;
}

.g-menu-contexto-rota .btn-menu.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.15));
    border-color: rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.g-menu-contexto-rota .btn-menu.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.15));
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.g-menu-contexto-rota .btn-menu.danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.15));
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.g-menu-contexto-rota .btn-menu i {
    width: 1.25rem;
    text-align: center;
}

/* ==========================================================================
   ROUTE PANEL & GAMIFIED UI UPDATES
   ========================================================================== */

#route-control-panel {
    position: absolute !important;
    z-index: 1000;
}

#panel-consolidado {
    background: linear-gradient(165deg, #0f0c29 0%, #1a1435 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 1rem;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(139, 92, 246, 0.1),
        inset 0 0 30px rgba(139, 92, 246, 0.05);
    overflow: hidden;
}

#panel-consolidado::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #8b5cf6, #3b82f6, #8b5cf6);
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 200% 0%;
    }
}

/* New Dark Theme for Annotations */
.roteirizacao-annotations-container-dark {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background-color: var(--g-cor-escura-950);
    border: 1px solid var(--g-borda-sutil);
}

.gcb-btn-pulse-warning {
    animation: btn-pulse-warning 1.5s infinite;
}

@keyframes btn-pulse-warning {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}
/* ==========================================================================
   GENESIS WINDOWS TASKBAR (HEADER)
   ========================================================================== */

.g-taskbar-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: rgba(15, 23, 42, 0.85); /* Slate 900 with opacity */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.75rem;
    z-index: 9999;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    user-select: none;
    transition: all 0.3s ease;
}

/* Start Button Area */
.g-taskbar-start {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-right: 0.75rem;
    position: relative;
    z-index: 10;
}

.g-start-btn {
    width: 42px;
    height: 38px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: transparent;
    border: 1px solid transparent;
}

.g-start-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4); /* Brand glow */
    transform: scale(1.05);
}

.g-start-btn:active {
    transform: scale(0.95);
}

.g-start-btn img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(139, 92, 246, 0.5));
}

/* Apps/Shortcuts Area */
.g-taskbar-apps {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding-left: 0.5rem;
    height: 100%;
}

.g-app-shortcut {
    position: relative;
    width: 42px;
    height: 38px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    border: 1px solid transparent;
}

.g-app-shortcut:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.g-app-shortcut.active {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.g-app-shortcut:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.05);
}

/* Active indicator dot/line bottom */
.g-app-shortcut.running::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 3px;
    border-radius: 2px;
    background: rgba(148, 163, 184, 0.5); 
    transition: all 0.3s;
}

.g-app-shortcut.active::after {
    width: 20px;
    bottom: -1px;
    background: var(--g-cor-marca-500); 
    box-shadow: 0 0 10px var(--g-cor-marca-500);
}

.g-app-shortcut img, 
.g-app-shortcut i {
    font-size: 1.35rem;
    color: #cbd5e1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    transition: transform 0.2s;
}

.g-app-shortcut:hover img,
.g-app-shortcut:hover i {
    transform: scale(1.1);
    color: #fff;
}

.g-app-shortcut.active i {
    color: #c4b5fd;
    text-shadow: 0 0 8px rgba(139, 92, 246, 0.6);
}

/* System Tray Area */
.g-taskbar-tray {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 1rem;
    height: 100%;
}

.g-tray-item {
    padding: 0 0.5rem;
    height: 38px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #94a3b8;
    font-size: 0.875rem;
    border: 1px solid transparent;
}

.g-tray-item:hover {
    background: rgba(51, 65, 85, 0.5);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
}

.g-tray-clock {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    line-height: 1.2;
    font-size: 0.75rem;
    font-weight: 500;
    min-width: 70px;
    text-align: right;
    padding: 0 0.5rem;
}

.g-tray-clock .time {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
}

.g-tray-clock .date {
    font-size: 0.7rem;
    color: #cbd5e1;
}

.g-tray-icon {
    font-size: 1.1rem;
}

/* Badge for notifications on tray icons */
.g-tray-badge {
    position: relative;
}

.g-tray-badge::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 1px solid #1e293b;
    box-shadow: 0 0 5px rgba(239, 68, 68, 0.6);
}

/* Seperator */
.g-taskbar-sep {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 0.25rem;
}

/* ==========================================================================
   GENESIS WINDOWS TASKBAR (REFINED)
   ========================================================================== */
.g-taskbar-header {
    justify-content: space-between; /* Keeps Tray right, Spacer left, Dock center */
    /* Update background to be darker/futuristic */
    background: rgba(5, 5, 12, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2); /* Violet hint border */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5); /* Deeper shadow */
}

/* Spacer to balance the flex layout */
.g-taskbar-spacer {
    flex: 1;
    min-width: 200px; /* Approximate width of tray to balance center */
    display: none; /* Hidden on mobile */
}

@media (min-width: 768px) {
    .g-taskbar-spacer {
        display: block;
    }
}

/* CENTRAL DOCK CONTAINER */
.g-taskbar-dock {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    height: 100%;
}

/* SEARCH BAR FUTURISTIC */
.g-taskbar-search {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px; /* Pill shape */
    padding: 0 1rem;
    height: 32px;
    width: 240px;
    transition: all 0.3s ease;
}

.g-taskbar-search:hover,
.g-taskbar-search:focus-within {
    background: rgba(30, 27, 75, 0.6); /* Deep Violet Dark */
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
    width: 280px; /* Expands slightly */
}

.g-taskbar-search i {
    color: #94a3b8;
    font-size: 0.875rem;
    margin-right: 0.5rem;
    transition: color 0.3s;
}

.g-taskbar-search:focus-within i {
    color: #a78bfa; /* Brand color */
}

.g-taskbar-search input {
    background: transparent;
    border: none;
    outline: none;
    color: #e2e8f0;
    font-size: 0.875rem;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.g-taskbar-search input::placeholder {
    color: #64748b;
}

/* DIVIDER vertical line */
.g-taskbar-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 0.5rem;
}

/* Update APPS container for dock style */
.g-taskbar-apps {
    justify-content: center;
    padding-left: 0; /* Remove previous padding */
    gap: 0.5rem;
}

/* Start Button Updates */
.g-start-btn {
    margin-right: 0; /* Remove margin as we use gap in dock */
}

.g-start-btn:hover {
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.6); /* Stronger glow */
    background: rgba(139, 92, 246, 0.1);
}

/* Tray Updates */
.g-taskbar-tray {
    flex: 1; /* Balance right side */
    justify-content: flex-end;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .g-taskbar-header {
        justify-content: space-between;
    }
    
    .g-taskbar-dock {
        justify-content: flex-start;
        flex: 1;
    }
    
    .g-taskbar-search {
        width: 38px; /* Collapse to circle */
        padding: 0;
        justify-content: center;
        border-radius: 50%;
        cursor: pointer;
    }
    
    .g-taskbar-search input {
        display: none;
    }
    
    .g-taskbar-search i {
        margin: 0;
    }
    
    .g-taskbar-divider {
        display: none;
    }
}

/* ==========================================================================
   GENESIS WINDOWS TASKBAR (REFINED V2)
   Fixes: Search Input Cleanliness & Shortcuts Layout
   ========================================================================== */

/* Clean up Search Input completely */
.g-taskbar-search input {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #e2e8f0 !important; /* Keep text distinct */
}

/* Remove default browser focus rings */
.g-taskbar-search input:focus,
.g-taskbar-search input:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Ensure the container handles the visual "box", not the input */
.g-taskbar-search {
    /* Ensure flex alignment is perfect */
    display: flex;
    align-items: center;
    /* Optional: Make it blend more if requested, but user liked "dark futuristic" */
}

/* Remove the divider to bring apps closer to search */
.g-taskbar-divider {
    display: none !important;
}

/* Adjust spacing in the dock */
.g-taskbar-dock {
    gap: 0.5rem !important; /* Tighter spacing between Start, Search, and Apps */
}

/* Apps Layout */
.g-taskbar-apps {
    /* Ensure they sit right next to search */
    margin-left: 0.25rem !important;
    padding-left: 0 !important;
    border-left: none !important; /* Just in case */
}

/* Optional: Slight separator visual via margin if needed, or just clean gap */

/* ==========================================================================
   GENESIS WINDOWS TASKBAR (LAYOUT FIX V3)
   Ensure strict sequential flow: [Start][Search][App][App][App]
   ========================================================================== */

.g-taskbar-dock {
    /* Ensure the dock centers its content as a single unit */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important; /* Let content define width */
    max-width: 100%;
}

.g-taskbar-apps {
    /* Make apps container shrink-wrap its content */
    display: flex !important;
    flex: 0 0 auto !important; /* Do not grow */
    width: auto !important;
    gap: 0.25rem !important; /* Consistent gap between apps */
    margin-left: 0.5rem !important; /* Gap from search bar */
    padding: 0 !important;
    justify-content: flex-start !important; /* DONT center internally */
}

/* Ensure no gaps from hidden elements */
.g-taskbar-divider {
    display: none !important;
}

/* Ensure search bar doesn't push apps away */
.g-taskbar-search {
    margin-right: 0 !important;
}

/* ==========================================================================
   GENESIS WINDOWS TASKBAR (EPIC DESIGN V4)
   Premium Dark Futuristic Holographic Effects
   ========================================================================== */

/* TASKBAR MAIN - Holographic Border Effect */
.g-taskbar-header {
    background: linear-gradient(180deg, rgba(15, 12, 41, 0.92) 0%, rgba(5, 5, 16, 0.95) 100%) !important;
    border-bottom: 1px solid transparent !important;
    border-image: linear-gradient(90deg, transparent 0%, rgba(139, 92, 246, 0.5) 20%, rgba(6, 182, 212, 0.4) 50%, rgba(139, 92, 246, 0.5) 80%, transparent 100%) 1 !important;
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.6),
        0 1px 0 rgba(139, 92, 246, 0.1) inset,
        0 -1px 20px rgba(139, 92, 246, 0.05) !important;
}

/* Animated subtle glow line at the bottom */
.g-taskbar-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.6), rgba(6, 182, 212, 0.6), rgba(139, 92, 246, 0.6), transparent);
    background-size: 200% 100%;
    animation: taskbar-glow-line 4s ease-in-out infinite;
}

@keyframes taskbar-glow-line {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* START BUTTON - Pulsing Glow */
.g-start-btn {
    position: relative;
    overflow: visible;
}

.g-start-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 10px;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.3), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.g-start-btn:hover::before {
    opacity: 1;
    animation: start-pulse 1.5s ease-in-out infinite;
}

@keyframes start-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 0.3; }
}

.g-start-btn:hover img {
    filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.8)) !important;
    transform: scale(1.1);
}

/* SEARCH BAR - Cyber Glow */
.g-taskbar-search {
    position: relative;
    overflow: hidden;
}

.g-taskbar-search::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.05));
    opacity: 0;
    transition: opacity 0.3s;
}

.g-taskbar-search:focus-within::before {
    opacity: 1;
}

.g-taskbar-search:focus-within {
    border-color: rgba(139, 92, 246, 0.6) !important;
    box-shadow: 
        0 0 20px rgba(139, 92, 246, 0.3),
        0 0 40px rgba(6, 182, 212, 0.1),
        inset 0 0 10px rgba(139, 92, 246, 0.05) !important;
}

/* ============================================
   APP SHORTCUTS - EPIC HOVER EFFECTS
   ============================================ */

.g-app-shortcut {
    position: relative;
    overflow: visible !important;
    z-index: 1;
}

/* Glow Ring on Hover */
.g-app-shortcut::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 10px;
    background: conic-gradient(
        from 0deg,
        rgba(139, 92, 246, 0.6),
        rgba(6, 182, 212, 0.4),
        rgba(168, 85, 247, 0.6),
        rgba(59, 130, 246, 0.4),
        rgba(139, 92, 246, 0.6)
    );
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    filter: blur(6px);
}

.g-app-shortcut:hover::before {
    opacity: 1;
    animation: ring-rotate 3s linear infinite;
}

@keyframes ring-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Inner card glow */
.g-app-shortcut::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.15), rgba(30, 27, 75, 0.4));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.g-app-shortcut:hover::after {
    opacity: 1;
}

/* Hover state */
.g-app-shortcut:hover {
    background: rgba(30, 27, 75, 0.6) !important;
    border-color: rgba(139, 92, 246, 0.4) !important;
    transform: translateY(-3px) scale(1.08) !important;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(139, 92, 246, 0.25) !important;
}

.g-app-shortcut:hover i {
    color: #c4b5fd !important;
    text-shadow: 0 0 15px rgba(139, 92, 246, 0.8) !important;
    transform: scale(1.15) !important;
}

/* Active State - Permanent Glow */
.g-app-shortcut.active {
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.2), rgba(30, 27, 75, 0.5)) !important;
    border: 1px solid rgba(139, 92, 246, 0.5) !important;
    box-shadow: 
        0 4px 15px rgba(139, 92, 246, 0.3),
        inset 0 0 10px rgba(139, 92, 246, 0.1) !important;
}

.g-app-shortcut.active::after {
    background: linear-gradient(to bottom, rgba(139, 92, 246, 0.8) 0%, rgba(124, 58, 237, 0.3) 50%, transparent 100%) !important;
    position: absolute;
    bottom: -2px;
    left: 20%;
    right: 20%;
    height: 4px;
    top: auto;
    inset: auto;
    width: 60%;
    border-radius: 2px;
    opacity: 1;
    filter: blur(0);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
}

.g-app-shortcut.active i {
    color: #e9d5ff !important;
    text-shadow: 0 0 12px rgba(168, 85, 247, 0.7) !important;
}

/* Running indicator update */
.g-app-shortcut.running::after {
    background: rgba(139, 92, 246, 0.5) !important;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
}

/* TRAY ITEMS Enhancement */
.g-tray-item:hover {
    background: rgba(139, 92, 246, 0.15) !important;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.g-tray-item:hover i {
    color: #c4b5fd !important;
    text-shadow: 0 0 8px rgba(139, 92, 246, 0.6);
}

/* Clock enhancement */
.g-tray-clock .time {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Notification badge pulse */
.g-tray-badge::after {
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 5px rgba(239, 68, 68, 0.6); transform: scale(1); }
    50% { box-shadow: 0 0 12px rgba(239, 68, 68, 0.9); transform: scale(1.1); }
}

/* ==========================================================================
   GENESIS TASKBAR - SHORTCUT MANAGEMENT SYSTEM
   Modal, Icon Picker, Context Menu, Drag & Drop
   ========================================================================== */

/* ADD BUTTON - Plus icon */
.g-add-shortcut {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px dashed rgba(139, 92, 246, 0.3) !important;
    transition: all 0.3s ease !important;
}

.g-add-shortcut:hover {
    background: rgba(139, 92, 246, 0.15) !important;
    border-color: rgba(139, 92, 246, 0.6) !important;
    transform: scale(1.05) !important;
}

.g-add-shortcut i {
    color: rgba(139, 92, 246, 0.7) !important;
    font-size: 1rem !important;
}

.g-add-shortcut:hover i {
    color: #c4b5fd !important;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.6) !important;
}

/* MODAL OVERLAY */
.g-taskbar-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(5, 5, 16, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.g-taskbar-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* MODAL */
.g-taskbar-modal {
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    background: linear-gradient(145deg, #0f0c29 0%, #1a1435 50%, #0d0a1f 100%);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 1.25rem;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.8),
        0 0 60px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.g-taskbar-modal-overlay.active .g-taskbar-modal {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.g-taskbar-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.5), rgba(15, 12, 41, 0.8));
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.g-taskbar-modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

.g-taskbar-modal-header h3 i {
    color: #a78bfa;
}

.g-taskbar-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #94a3b8;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.g-taskbar-modal-close:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* Modal Body */
.g-taskbar-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.g-taskbar-form-group {
    margin-bottom: 1.25rem;
}

.g-taskbar-form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.g-taskbar-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.2s;
    box-sizing: border-box;
}

.g-taskbar-input:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
    background: rgba(30, 27, 75, 0.4);
}

.g-taskbar-input::placeholder {
    color: #64748b;
}

/* Icon Grid */
.g-icon-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.g-icon-option {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: #94a3b8;
    font-size: 1rem;
}

.g-icon-option:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.3);
    color: #c4b5fd;
    transform: scale(1.1);
}

.g-icon-option.selected {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(99, 102, 241, 0.3));
    border-color: rgba(139, 92, 246, 0.6);
    color: #fff;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
    transform: scale(1.1);
}

/* Modal Footer */
.g-taskbar-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.g-taskbar-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.g-taskbar-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

.g-taskbar-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.g-taskbar-btn-primary {
    background: linear-gradient(135deg, var(--g-cor-marca-600), var(--g-cor-marca-700));
    color: #fff;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.g-taskbar-btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(124, 58, 237, 0.5);
}

/* CONTEXT MENU */
.g-taskbar-context-menu {
    position: fixed;
    z-index: 999999;
    display: none;
    min-width: 180px;
    background: linear-gradient(145deg, #0f0c29 0%, #1a1435 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.7),
        0 0 30px rgba(139, 92, 246, 0.15);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all 0.2s ease;
}

.g-taskbar-context-menu.active {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.g-context-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
}

.g-context-menu-item:hover {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
}

.g-context-menu-item i {
    width: 1rem;
    text-align: center;
    color: #94a3b8;
    transition: color 0.2s;
}

.g-context-menu-item:hover i {
    color: #c4b5fd;
}

/* Danger item (remove) */
.g-context-menu-item#ctxRemoveShortcut:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.g-context-menu-item#ctxRemoveShortcut:hover i {
    color: #f87171;
}

.g-context-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

/* DRAG AND DROP STATES */
.g-app-shortcut.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.g-app-shortcut.drag-over {
    border-color: rgba(6, 182, 212, 0.8) !important;
    background: rgba(6, 182, 212, 0.15) !important;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4) !important;
}

.g-app-shortcut.drag-over::before {
    background: conic-gradient(
        from 0deg,
        rgba(6, 182, 212, 0.8),
        rgba(139, 92, 246, 0.6),
        rgba(6, 182, 212, 0.8)
    ) !important;
    opacity: 1 !important;
    animation: ring-rotate 1s linear infinite !important;
}

/* Responsive Icon Grid */
@media (max-width: 600px) {
    .g-icon-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* ==========================================================================
   GENESIS TASKBAR - DYNAMIC TRAY ITEMS (From Apps like Ramify)
   ========================================================================== */

.g-tray-item-wrapper {
    position: relative;
    display: inline-flex;
    list-style: none;
}

.g-tray-item-wrapper .g-tray-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s;
}

.g-tray-item-wrapper .g-tray-item:hover {
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
}

.g-tray-item-wrapper .g-tray-item i {
    font-size: 1.1rem;
    transition: all 0.2s;
}

.g-tray-item-wrapper .g-tray-item:hover i {
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
}

/* Badge Count */
.g-tray-badge-count {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    color: #fff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.g-tray-badge-count.bg-warning {
    background: #f59e0b;
}

.g-tray-badge-count.bg-danger {
    background: #ef4444;
    animation: badge-pulse-danger 2s ease-in-out infinite;
}

.g-tray-badge-count.bg-success {
    background: #10b981;
}

.g-tray-badge-count.bg-info {
    background: #06b6d4;
}

@keyframes badge-pulse-danger {
    0%, 100% { box-shadow: 0 0 5px rgba(239, 68, 68, 0.6); }
    50% { box-shadow: 0 0 15px rgba(239, 68, 68, 0.9); }
}

/* Dropdown for tray items */
.g-tray-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    min-width: 300px;
    max-width: 400px;
    max-height: 400px;
    overflow-y: auto;
    background: linear-gradient(145deg, #0f0c29 0%, #1a1435 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(139, 92, 246, 0.15);
    padding: 0.5rem;
    display: none;
    z-index: 9999999;
}

.g-tray-item-wrapper:hover .g-tray-dropdown,
.g-tray-item-wrapper .g-tray-item[aria-expanded="true"] + .g-tray-dropdown {
    display: block;
    animation: dropdownFade 0.2s ease;
}

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

/* Tray separator */
.g-tray-sep {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 0.25rem;
}

/* ==========================================================================
   GENESIS TASKBAR - CAPTURE MODE (HIDDEN BY DEFAULT)
   ========================================================================== */

/* CAPTURE MODE OVERLAY - Completely hidden by default */
.g-capture-mode-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99998;
    display: none !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Only visible when active class is added by JS */
.g-capture-mode-overlay.active {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Banner inside the overlay */
.g-capture-mode-banner {
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(99, 102, 241, 0.9));
    border-bottom: 2px solid #a78bfa;
    box-shadow: 0 4px 30px rgba(139, 92, 246, 0.5);
}

.g-capture-mode-overlay.active .g-capture-mode-banner {
    display: flex;
    animation: capture-pulse 2s ease-in-out infinite;
}

@keyframes capture-pulse {
    0%, 100% { box-shadow: 0 4px 30px rgba(139, 92, 246, 0.5); }
    50% { box-shadow: 0 4px 50px rgba(139, 92, 246, 0.8); }
}

.g-capture-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: capture-rotate 3s linear infinite;
}

@keyframes capture-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.g-capture-icon i {
    font-size: 1.25rem;
    color: #fff;
}

.g-capture-text {
    display: flex;
    flex-direction: column;
    color: #fff;
}

.g-capture-text strong {
    font-size: 1rem;
    font-weight: 700;
}

.g-capture-text span {
    font-size: 0.8rem;
    opacity: 0.9;
}

.g-capture-cancel {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.g-capture-cancel:hover {
    background: rgba(239, 68, 68, 0.8);
    border-color: #ef4444;
}

/* Capture active body state */
body.g-capture-active {
    cursor: crosshair !important;
}

body.g-capture-active * {
    cursor: crosshair !important;
}

/* Highlight for hoverable elements in capture mode */
.g-capture-highlight {
    outline: 3px solid #a78bfa !important;
    outline-offset: 2px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.6) !important;
}

/* MODAL TABS */
.g-taskbar-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.g-taskbar-tab {
    padding: 0.625rem 1rem;
    background: transparent;
    border: none;
    border-radius: 8px 8px 0 0;
    color: #94a3b8;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.g-taskbar-tab:hover {
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.1);
}

.g-taskbar-tab.active {
    color: #fff;
    background: rgba(139, 92, 246, 0.2);
    border-bottom: 2px solid #a78bfa;
}

/* INPUT WITH BUTTON */
.g-input-with-btn {
    display: flex;
    gap: 0.5rem;
}

.g-input-with-btn .g-taskbar-input {
    flex: 1;
    border-radius: 10px 0 0 10px;
}

.g-capture-btn {
    padding: 0 1rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(99, 102, 241, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 0 10px 10px 0;
    color: #c4b5fd;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.g-capture-btn:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.5), rgba(99, 102, 241, 0.4));
    color: #fff;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.g-input-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #10b981;
}

/* SHORTCUTS LIST (Management Tab) */
.g-shortcuts-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.g-shortcut-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    transition: all 0.2s;
}

.g-shortcut-item:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}

.g-shortcut-item.dragging {
    opacity: 0.5;
}

.g-shortcut-item.drag-over {
    border-color: #06b6d4;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.g-shortcut-drag-handle {
    color: #4b5563;
    cursor: grab;
}

.g-shortcut-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c4b5fd;
}

.g-shortcut-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.g-shortcut-info strong {
    color: #fff;
    font-size: 0.9rem;
}

.g-shortcut-info small {
    color: #6b7280;
    font-size: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.g-shortcut-actions {
    display: flex;
    gap: 0.25rem;
}

.g-shortcut-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.g-shortcut-action-btn.edit:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.g-shortcut-action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.g-empty-message {
    text-align: center;
    color: #6b7280;
    padding: 2rem;
}

.g-taskbar-modal-large {
    max-width: 600px !important;
}

/* ==========================================================================
   GENESIS TASKBAR - NATIVE APP TRAY ITEMS
   Estilos para elementos de tray capturados nativamente dos apps
   ========================================================================== */

/* Container para itens de apps */
.g-tray-app-ramify {
    display: inline-flex;
    align-items: center;
    position: relative;
    list-style: none;
}

.g-tray-app-ramify a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.5rem;
    border-radius: 6px;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
}

.g-tray-app-ramify a:hover {
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
}

.g-tray-app-ramify i,
.g-tray-app-ramify svg {
    font-size: 1.1rem;
    width: 18px;
    height: 18px;
    transition: all 0.2s;
}

.g-tray-app-ramify a:hover i,
.g-tray-app-ramify a:hover svg {
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
    filter: drop-shadow(0 0 5px rgba(139, 92, 246, 0.5));
}

/* Badges dos apps nativos */
.g-tray-app-ramify .nav-total-todos,
.g-tray-app-ramify .icon-started-timers {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    color: #fff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

/* Dropdowns nativos dos apps */
.g-tray-app-ramify .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    min-width: 280px;
    max-width: 400px;
    max-height: 400px;
    overflow-y: auto;
    background: linear-gradient(145deg, #0f0c29 0%, #1a1435 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(139, 92, 246, 0.15);
    padding: 0.5rem;
    z-index: 9999999;
}

.g-tray-app-ramify .dropdown-menu li {
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.g-tray-app-ramify .dropdown-menu li:hover {
    background: rgba(139, 92, 246, 0.1);
}

/* Ocultar elementos que não queremos do app nativo */
.g-tray-app-ramify .hide,
.g-tray-app-ramify [class*="tw-hidden"] {
    display: none !important;
}
