:root {
    --brand-color: #0056b3;
}

* { box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #f4f6f9; margin: 0; padding-bottom: 40px; color: #333; user-select: none; }
.hidden { display: none !important; }

/* Cabeçalho White-Label */
.main-header {
    background: linear-gradient(135deg, var(--brand-color) 0%, #1e293b 160%);
    color: white;
    padding: 28px 20px 36px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    position: relative;
    text-align: center;
    margin-bottom: 30px;
    transition: background 0.4s ease;
}

.brand-header { display: inline-flex; align-items: center; justify-content: center; gap: 14px; }
.brand-logo { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: white; padding: 3px; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.main-header h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: 0.5px; }
.main-header .slogan { font-size: 11px; opacity: 0.85; margin-top: 2px; text-transform: uppercase; letter-spacing: 2.5px; }

.header-btn-left, .header-btn-right {
    position: absolute; top: 20px;
    background: rgba(255, 255, 255, 0.15); color: white;
    text-decoration: none; padding: 8px 16px; border-radius: 20px;
    font-size: 13px; font-weight: bold; border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease; display: flex; align-items: center; gap: 6px; cursor: pointer;
}
.header-btn-left { left: 20px; }
.header-btn-right { right: 20px; }
.header-btn-left:hover, .header-btn-right:hover { background: rgba(255, 255, 255, 0.28); }

/* Caixa Dinâmica de Pergunta */
.main-header .pergunta-box {
    display: inline-block;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 10px 28px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    margin-top: 18px;
}
.main-header .pergunta-box h2 { margin: 0; font-size: 17px; font-weight: 600; color: white; letter-spacing: 0.3px; }

/* Caixas de Pareamento e Login */
.center-wrapper { display: flex; justify-content: center; align-items: center; min-height: 50vh; padding: 20px; }
.auth-box { background: white; padding: 38px 30px; border-radius: 16px; box-shadow: 0 8px 25px rgba(0,0,0,0.07); text-align: center; width: 100%; max-width: 380px; }
.auth-box h3 { margin: 0 0 6px 0; color: #1e293b; font-size: 21px; }
.auth-subtitle { margin: 0 0 22px 0; font-size: 13px; color: #64748b; }
.auth-box input { width: 100%; padding: 13px; margin-bottom: 14px; border: 1px solid #cbd5e1; border-radius: 10px; font-size: 15px; }
.auth-box button { background: var(--brand-color); color: white; border: none; padding: 13px; font-size: 16px; font-weight: bold; border-radius: 10px; cursor: pointer; width: 100%; transition: 0.2s; }
.auth-box button:hover { filter: brightness(0.9); }
.error-msg { color: #dc3545; font-size: 13px; margin-top: 12px; display: none; font-weight: 600; }

.unpair-footer { margin-top: 22px; padding-top: 15px; border-top: 1px solid #f1f5f9; }
.unpair-footer span { font-size: 12px; color: #94a3b8; cursor: pointer; transition: 0.2s; }
.unpair-footer span:hover { color: #475569; text-decoration: underline; }

/* Grid de Colaboradores (Otimizado para Toque no Totem) */
.container { max-width: 1050px; margin: 0 auto; padding: 10px 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px; justify-content: center; }

.colaborador-card {
    background: white; border-radius: 18px; padding: 26px 18px; text-align: center;
    text-decoration: none; color: #1e293b; box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    border: 2px solid transparent; transition: all 0.2s ease;
    display: flex; flex-direction: column; align-items: center;
}
.colaborador-card:hover, .colaborador-card:active {
    transform: translateY(-4px);
    border-color: var(--brand-color);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.foto { width: 105px; height: 105px; border-radius: 50%; object-fit: cover; margin-bottom: 14px; border: 3px solid var(--brand-color); padding: 2px; }
.nome { font-size: 18px; font-weight: 700; margin-bottom: 4px; color: #0f172a; }
.cargo { font-size: 13px; color: #64748b; }

.powered-by { text-align: center; margin-top: 45px; font-size: 11px; color: #94a3b8; text-transform: uppercase; letter-spacing: 1.5px; }

/* Tela de Bloqueio de Licença */
.lock-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #0f172a; color: white; display: flex; justify-content: center; align-items: center; z-index: 9999; padding: 20px; text-align: center; }
.lock-box { max-width: 420px; background: #1e293b; padding: 40px 30px; border-radius: 20px; border: 1px solid #334155; }
.lock-box h2 { margin: 0 0 10px 0; font-size: 22px; color: #f8fafc; }
.lock-box p { color: #94a3b8; font-size: 14px; line-height: 1.6; margin-bottom: 25px; }
.btn-outline-light { background: transparent; color: #cbd5e1; border: 1px solid #475569; padding: 10px 20px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.btn-outline-light:hover { background: #334155; color: white; }