/* ==============================================================================
   public_html/assets/css/style.css
   Komvos Design System V1 - UI Kit Oficial
   - Botões: Layout Oficial UI Kit Komvos (.v2-btn com caixa metálica e .pg-btn-ghost)
     SEM degradação/degradê no corpo do botão (fundo escuro #111516 + borda e brilho)
   - Títulos de Seção / Eyebrows: Cinza claro da Komvos (#C4C8CC / #D9DADB)
   - Tabela Compacta de Participantes com visual de alta tecnologia
   - Padronização de Cores: Harmonia cromática 80/20 sem dispersão
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700;800&family=Montserrat:wght@400;500;600;700;800;900&display=swap');

@property --shine-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

:root {
    /* 1. Neutros e Fundos Oficiais Komvos (80%) */
    --ui-bg: #0B1011;
    --ui-bg-deep: #050808;
    --komvos-black: #111516;
    --komvos-gray: #939598;
    --komvos-light-gray: #C4C8CC;
    --komvos-silver-text: #D9DADB;
    
    /* 2. Superfícies de Cards & Glassmorphism */
    --ui-surface: #141A1C;
    --ui-surface-raised: #1B2224;
    --ui-surface-hover: #21292C;
    --ui-surface-glass: rgba(20, 26, 28, 0.85);
    --ui-border: #2A3336;
    --ui-border-light: rgba(255, 255, 255, 0.15);
    
    /* 3. Acentos Oficiais */
    --statum-cyan: #00AFEF;
    --statum-cyan-hover: #0093CA;
    --statum-cyan-glow: rgba(0, 175, 239, 0.35);
    --statum-cyan-subtle: rgba(0, 175, 239, 0.1);
    
    --senior-teal: #00AA9E;
    --trusth-magenta: #AF005F;
    
    /* 4. Gradiente Metálico Prateado Oficial (UI Kit Komvos) */
    --silver: linear-gradient(135deg, #eceef0 0%, #c4c8cc 26%, #f5f6f7 48%, #aeb3b8 74%, #dcdfe2 100%);
    --grad-metallic: linear-gradient(90deg, #8E949A, #E6E9EC);
    
    /* 5. Tipografia */
    --ui-text: #FFFFFF;
    --font-main: 'Montserrat', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* Reset Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-main);
    background-color: var(--ui-bg);
    color: var(--ui-text);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body {
    background: radial-gradient(circle at 50% 0%, #151d20 0%, #0B1011 50%, #050808 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Tipografia Técnica & Numérica */
.font-mono-numbers {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}

/* Títulos de Seção em Cinza Claro da Komvos */
.section-eyebrow {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--komvos-light-gray);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.text-silver {
    color: var(--komvos-silver-text);
}

.text-cyan {
    color: var(--statum-cyan);
}

/* Badge Pill Orbital da Hero (Cinza Claro Komvos) */
.badge-pill-komvos {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--komvos-light-gray);
    backdrop-filter: blur(10px);
}

.pulse-dot-silver {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--komvos-light-gray);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: pulseSilver 2s infinite;
}

@keyframes pulseSilver {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.5; }
}

/* Divisória Sutil de Seção (Minimalista) */
.komvos-section-bar {
    width: 48px;
    height: 3px;
    background: var(--komvos-light-gray);
    border-radius: 2px;
    opacity: 0.6;
}

/* Glassmorphism Containers Oficiais Komvos */
.glass-panel {
    background: var(--ui-surface-glass);
    border: 1px solid var(--ui-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 16px;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
    background: var(--ui-surface-hover);
    border-color: var(--ui-border-light);
}

.glass-card-interactive {
    background: var(--ui-surface-glass);
    border: 1px solid var(--ui-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 14px;
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.24s ease, box-shadow 0.24s ease;
}

.glass-card-interactive:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}

/* Background Cinético Vetorial Oficial (Flow Lines SVG Sutil) */
.flow-lines-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    opacity: 0.45;
}

.flow-lines-svg {
    width: 100%;
    height: 100%;
    transform: translateZ(0);
}

.flow-path-base {
    fill: none;
    stroke: rgba(255, 255, 255, 0.035);
    stroke-width: 1.2;
}

.flow-path-comet {
    fill: none;
    stroke-dasharray: 140 1300;
    stroke-linecap: round;
    animation: flowCometTravel 20s linear infinite;
}

.flow-path-comet-silver {
    stroke: url(#cometGradSilver);
    stroke-width: 2.2;
    animation-duration: 18s;
}

.flow-path-comet-cyan {
    stroke: url(#cometGradCyan);
    stroke-width: 2.2;
    animation-duration: 22s;
    animation-delay: -8s;
}

@keyframes flowCometTravel {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -1440; }
}

/* ==============================================================================
   BOTÕES OFICIAIS DO UI KIT KOMVOS (komvoss.vercel.app)
   Layout extraído por engenharia reversa - SEM DEGRADÊ NO CORPO DO BOTÃO
   ============================================================================== */

@keyframes shine-angle {
    to { --shine-angle: 360deg; }
}

@keyframes shine-sweep {
    0% { background-position: 130% 0; }
    100% { background-position: -130% 0; }
}

/* Base Comum dos Botões Komvos UI Kit */
:is(.v2-btn, .pg-btn-ghost) {
    --shine-bw: 1.662px;
    --shine-hl: #b8bec4;
    --shine-duration: 3.2s;
    position: relative;
    isolation: isolate;
    background-color: var(--komvos-black);
    background-image: linear-gradient(110deg, transparent 35%, rgba(232, 236, 240, 0.12) 50%, transparent 65%);
    background-size: 260% 100%;
    background-position: 130% 0;
    background-repeat: no-repeat;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    font-family: inherit;
    border-radius: 12.4px;
    transition: all 0.25s ease;
}

/* Borda Iluminada Giratória */
:is(.v2-btn, .pg-btn-ghost):before {
    content: "";
    position: absolute;
    inset: calc(var(--shine-bw) * -1);
    z-index: 1;
    padding: max(var(--shine-bw), 1.5px);
    border-radius: inherit;
    background: conic-gradient(
        from calc(var(--shine-angle) - var(--shine-offset, 0deg)),
        transparent,
        var(--shine-hl) var(--shine-pct, 12%),
        var(--shine-color, #fff) calc(var(--shine-pct, 12%) * 2),
        var(--shine-hl) calc(var(--shine-pct, 12%) * 3),
        transparent calc(var(--shine-pct, 12%) * 4)
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
    animation: shine-angle var(--shine-duration) linear infinite;
    transition: --shine-offset 0.8s, --shine-pct 0.8s, --shine-color 0.8s;
}

/* Micro-matriz de Pontos Interna */
:is(.v2-btn, .pg-btn-ghost):after {
    content: "";
    position: absolute;
    top: 3px;
    right: 3px;
    bottom: 3px;
    left: 3px;
    z-index: -1;
    border-radius: inherit;
    background: radial-gradient(circle at 2px 2px, #fff 0.5px, transparent 0) padding-box;
    background-size: 4px 4px;
    background-repeat: space;
    -webkit-mask-image: conic-gradient(from calc(var(--shine-angle) + 45deg), #000, transparent 10% 90%, #000);
    mask-image: conic-gradient(from calc(var(--shine-angle) + 45deg), #000, transparent 10% 90%, #000);
    opacity: 0.28;
    pointer-events: none;
    animation: shine-angle var(--shine-duration) linear infinite;
    transition: opacity 0.4s;
}

/* Efeito Hover e Foco */
:is(.v2-btn, .pg-btn-ghost):is(:hover, :focus-visible) {
    animation: shine-sweep 2.2s linear infinite;
    border-color: #d9dde1;
    box-shadow: inset 0 -1ex 1.6rem rgba(220, 224, 228, 0.16);
    transform: translateY(-2px);
}

:is(.v2-btn, .pg-btn-ghost):is(:hover, :focus-visible):before {
    --shine-pct: 20%;
    --shine-offset: 95deg;
    --shine-color: #fff;
}

:is(.v2-btn, .pg-btn-ghost):is(:hover, :focus-visible):after {
    opacity: 0.45;
}

/* 1. Botão Primário (.v2-btn) com Caixa Metálica e Seta */
.v2-btn {
    --h: 56px;
    height: var(--h);
    padding: 0 calc(var(--h) * 0.114) 0 24px;
    display: inline-flex;
    align-items: center;
    gap: 24px;
    border: 1.662px solid #FFFFFF;
    color: #f4f7fb;
}

.v2-btn-label {
    font-size: 14.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    color: #f4f7fb;
}

.v2-btn-box {
    flex: none;
    width: calc(var(--h) * 0.772);
    height: calc(var(--h) * 0.772);
    border-radius: 10px;
    background: var(--silver);
    background-size: 200% 200%;
    background-position: 0% 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.3s,
                background-position 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.v2-btn-box svg {
    width: 42%;
    height: auto;
    display: block;
}

.v2-btn:hover .v2-btn-box {
    transform: translateX(4px);
    background-position: 100% 50%;
    box-shadow: 0 0 22px rgba(220, 224, 228, 0.4);
}

/* 2. Botão Ghost (.pg-btn-ghost) */
.pg-btn-ghost {
    --shine-bw: 1px;
    height: 56px;
    padding: 0 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #f4f7fb;
    background-color: rgba(17, 21, 22, 0.6);
}

@media (max-width: 640px) {
    .v2-btn {
        width: 100%;
        justify-content: space-between;
        padding: 0 14px 0 18px;
        gap: 12px;
    }
    .v2-btn-label {
        font-size: 13px;
        white-space: normal;
        text-align: left;
    }
    .pg-btn-ghost {
        width: 100%;
    }
}

/* ==============================================================================
   TABELA COMPACTA DE PARTICIPANTES (SECTION 5)
   Projetada para ser elegante, compacta e ocupar pouco espaço vertical
   ============================================================================== */
.compact-table-container {
    background: var(--ui-surface-glass);
    border: 1px solid var(--ui-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.compact-table-scroll {
    max-height: 420px;
    overflow-y: auto;
    overflow-x: auto;
}

.compact-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    text-align: left;
}

.compact-table th {
    position: sticky;
    top: 0;
    background: #141A1C;
    z-index: 10;
    padding: 11px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--komvos-light-gray);
    border-bottom: 1px solid var(--ui-border);
}

.compact-table td {
    padding: 9px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
    transition: background 0.15s ease;
}

.compact-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.035);
}

.compact-table tbody tr:last-child td {
    border-bottom: none;
}

.badge-turno-manha {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2.5px 9px;
    border-radius: 999px;
    background: rgba(0, 175, 239, 0.12);
    border: 1px solid rgba(0, 175, 239, 0.35);
    color: #00AFEF;
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
}

.badge-turno-tarde {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2.5px 9px;
    border-radius: 999px;
    background: rgba(0, 170, 158, 0.12);
    border: 1px solid rgba(0, 170, 158, 0.35);
    color: #00AA9E;
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
}

.badge-turno-vazio {
    color: rgba(255, 255, 255, 0.25);
    font-size: 13px;
    font-weight: 400;
}

.filter-pill-btn {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--ui-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--komvos-gray);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-pill-btn:hover {
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.3);
}

.filter-pill-btn.active {
    background: #FFFFFF;
    color: #0B1011;
    border-color: #FFFFFF;
}

/* ==============================================================================
   SELETOR NPS (0 A 10) HARMONIZADO
   ============================================================================== */
.nps-grid {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    gap: 8px;
}

@media (max-width: 640px) {
    .nps-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.nps-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 52px;
    border-radius: 10px;
    background: var(--ui-surface-raised);
    border: 1px solid var(--ui-border);
    color: var(--ui-text);
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.nps-btn:hover {
    background: rgba(0, 175, 239, 0.15);
    border-color: var(--statum-cyan);
    color: var(--statum-cyan);
    transform: scale(1.06);
}

.nps-btn.selected {
    background: var(--statum-cyan) !important;
    border-color: var(--statum-cyan) !important;
    color: #0B1011 !important;
    box-shadow: 0 0 20px var(--statum-cyan-glow);
    transform: scale(1.08);
}

/* Inputs de Formulário */
.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--ui-border);
    border-radius: 10px;
    padding: 13px 16px;
    color: #FFFFFF;
    font-size: 14.5px;
    font-family: var(--font-main);
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--statum-cyan);
    background: rgba(0, 175, 239, 0.04);
    box-shadow: 0 0 15px rgba(0, 175, 239, 0.2);
}

.form-input::placeholder {
    color: #636b70;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: var(--ui-bg-deep);
}

::-webkit-scrollbar-thumb {
    background: #242D30;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--komvos-light-gray);
}
