@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

:root {
    --bg-main: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.05);
    --card-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.05);
    --accent: #F36C21;
    --accent-hover: #e55a0d;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* O reset universal de margin/padding/box-sizing que existia aqui foi
   removido — é redundante com o @layer base do Tailwind (index.css),
   que faz exatamente o mesmo reset, mas de forma corretamente "layered"
   (perde para @layer utilities quando necessário). Mantê-lo aqui, fora
   de qualquer layer, fazia com que SEMPRE vencesse as utilities do
   Tailwind (px-*, py-*, m-*...), quebrando o padding/margin de qualquer
   componente novo — regra de cascata de layers do CSS, não tem relação
   com especificidade. */

html {
    background-color: var(--bg-main);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    background-image: linear-gradient(rgba(255, 255, 255, 0.90), rgba(255, 255, 255, 0.95)), url('../bg-10-anos.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-main);
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
}

#renderCanvas {
    display: none;
}

/* O padding que dava a "respiração" das páginas legadas (Utilidades TI,
   Tokens Milvus, Contatos VoIP, Gestão de Usuários) vivia no `body`.
   Isso quebrava o layout full-bleed da sidebar/topbar (que também é
   filho do `body`): sobrava uma margem branca no topo/esquerda da tela
   inteira, e a soma de 100vh do shell + o padding do body ultrapassava
   a viewport, forçando uma barra de rolagem externa (do documento) ao
   lado da barra de rolagem interna do conteúdo — duas barras visíveis
   ao mesmo tempo. Corrigido em 2026-07-06 (ver CLAUDE.md 7.26): o
   padding agora mora só em `.container`, que essas páginas já usam como
   wrapper — o shell (que não usa `.container`) fica full-bleed de verdade. */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header & Search */
.header-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
    text-align: center;
}

.header-top {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.logo-link img {
    height: 70px;
    transition: var(--transition);
}

.logo-link:hover img {
    transform: scale(1.05);
}

.header-info h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
}

.header-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Greeting & Clock */
.dashboard-meta {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    height: 48px;
    padding: 0 1.5rem;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--card-shadow);
}

.clock {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--accent);
}

.greeting {
    font-weight: 500;
}

/* Search Bar — pill sólida (não "glass") de propósito: o hero por trás
   ganhou um fundo com leve tingimento da marca (ver Home.tsx), então a
   busca precisa de um branco quase opaco pra "flutuar" sobre ele em vez
   de se misturar — reforça que esta é a ação principal da tela. */
.search-container {
    width: 100%;
    max-width: 640px;
    position: relative;
    margin-top: 1.75rem;
}

.search-input {
    width: 100%;
    padding: 1.1rem 1.5rem 1.1rem 3.5rem;
    border-radius: 100px;
    border: 1px solid rgba(243, 108, 33, 0.14);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 28px -10px rgba(243, 108, 33, 0.22);
    font-family: inherit;
    font-size: 1.05rem;
    transition: var(--transition);
    outline: none;
}

.search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(243, 108, 33, 0.15), 0 12px 28px -10px rgba(243, 108, 33, 0.22);
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(243, 108, 33, 0.6);
    width: 20px;
    height: 20px;
}

/* Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.section-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    height: fit-content;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.section-icon {
    width: 40px;
    height: 40px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
}

/* Link Lists */
.card-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card-item a, .dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    background: rgba(255,255,255,0.4);
    border: 1px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
}

.card-item a:hover, .dropdown-trigger:hover {
    background: white;
    border-color: var(--accent);
    transform: translateX(5px);
    color: var(--accent);
}

.card-arrow {
    width: 18px;
    height: 18px;
    opacity: 0.4;
    transition: var(--transition);
}

.card-item a:hover .card-arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* Dropdowns */
.dropdown-trigger {
    width: 100%;
    cursor: pointer;
    /* Sem `border: none` aqui de propósito — isso zerava o `border-style`
       (herdado de `.card-item a, .dropdown-trigger` acima, que já deixa a
       borda transparente/invisível em repouso), e como a regra `:hover` só
       muda `border-color`, um `border-style: none` nunca mostra borda
       nenhuma no hover, mesmo com a cor certa. Era por isso que "Status de
       Internet" (item de card que usa esta classe via <button>) não ganhava
       o mesmo destaque laranja no hover que os links <a> do mesmo card. */
    font-size: inherit;
    font-family: inherit;
}

.sub-list {
    list-style: none;
    padding-left: 1rem;
    margin-top: 0.5rem;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
}

.sub-list.active {
    display: flex;
}

.sub-item a {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Footer */
footer {
    margin-top: 4rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

footer a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-card {
    animation: fadeIn 0.6s ease forwards;
}

.section-card:nth-child(2) { animation-delay: 0.1s; }
.section-card:nth-child(3) { animation-delay: 0.2s; }

/* Responsive */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .header-top {
        flex-direction: column;
        gap: 1rem;
    }
    
    .dashboard-meta {
        flex-direction: column;
        height: auto;
        padding: 0.75rem 1.5rem;
        border-radius: var(--radius);
        gap: 0.5rem;
    }
}

/* Help Widget (WhatsApp Style) */
.help-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.help-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(243, 108, 33, 0.4);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    animation: pulseHelp 2.5s infinite;
}
.help-trigger {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    text-align: inherit;
}
.help-trigger:hover .help-btn {
    background: var(--accent-hover);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(243, 108, 33, 0.6);
    animation: none;
}
@keyframes pulseHelp {
    0% { box-shadow: 0 0 0 0 rgba(243, 108, 33, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(243, 108, 33, 0); }
    100% { box-shadow: 0 0 0 0 rgba(243, 108, 33, 0); }
}
.help-mascot-top {
    width: 105px;
    height: 105px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    background: white;
    box-shadow: 0 4px 12px rgba(243, 108, 33, 0.3);
    cursor: pointer;
    margin-right: 1.5rem;
    margin-bottom: -12px;
    z-index: 1000;
    transition: var(--transition);
    animation: fadeIn 0.4s ease;
}
.help-trigger:hover .help-mascot-top {
    transform: translateY(-5px) scale(1.05);
}
.help-popup {
    background: var(--bg-main);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin-bottom: 1rem;
    text-align: center;
    width: 250px;
    display: none;
    position: relative;
    animation: fadeIn 0.3s ease;
}
.help-popup.active {
    display: block;
}
.help-popup p {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    font-weight: 500;
}
.help-popup img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.05);
}
.close-popup {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.close-popup:hover {
    color: var(--text-main);
    background: rgba(0,0,0,0.05);
}

/* Botão Voltar Global */
.btn-back-header {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    box-shadow: 0 4px 10px rgba(243, 108, 33, 0.2);
}

.btn-back-header:hover {
    background: var(--accent-hover);
    transform: translateX(-5px);
    box-shadow: 0 6px 15px rgba(243, 108, 33, 0.4);
}

/* Chrome Bookmarks Style (Customizado com Cores do Portal) */
#links-uteis-wrapper {
    position: relative;
}

/* Forçar o card pai a ficar acima de tudo quando o menu de links úteis estiver aberto */
.section-card:has(#favoritos-list.active) {
    z-index: 1002 !important;
    position: relative;
}

#favoritos-list {
    position: absolute;
    left: 102%;
    top: 0;
    width: 380px;
    max-height: 480px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 0 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    
    /* Configuração e Suporte para Scrollbar Branca (Firefox) */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.7) rgba(255, 255, 255, 0.1);
}

/* Suporte para Scrollbar Branca (Webkit: Chrome, Safari, Edge) */
#favoritos-list::-webkit-scrollbar {
    width: 8px;
}

#favoritos-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

#favoritos-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#favoritos-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.9);
}

.chrome-menu-container {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    padding: 12px 0;
    width: 100%;
    max-width: 480px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    box-shadow: var(--card-shadow);
    height: fit-content;
}

/* Regra Responsiva para o Menu de Links Úteis */
@media (max-width: 768px) {
    #favoritos-list {
        position: static;
        width: 100%;
        max-height: none;
        overflow-y: visible;
        box-shadow: none !important;
        border: none;
        background: transparent;
        backdrop-filter: none;
        margin-top: 8px !important;
    }
}

.chrome-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    margin: 2px 12px;
    transition: var(--transition);
}

.chrome-item:hover, .chrome-folder-header:hover {
    background-color: rgba(243, 108, 33, 0.1);
    color: var(--accent);
}

.chrome-item:hover .chrome-icon {
    transform: scale(1.1);
}

.chrome-item:hover .chrome-folder-icon,
.chrome-folder-header:hover .chrome-folder-icon {
    fill: var(--accent);
}

.chrome-item:hover .chrome-arrow,
.chrome-folder-header:hover .chrome-arrow {
    fill: var(--accent);
}

.chrome-icon {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    flex-shrink: 0;
    object-fit: contain;
    transition: var(--transition);
}

.chrome-folder-icon {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    fill: var(--text-muted);
    flex-shrink: 0;
    transition: var(--transition);
}

.chrome-label {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chrome-arrow {
    width: 16px;
    height: 16px;
    fill: var(--text-muted);
    transition: transform 0.2s ease, fill 0.3s ease;
}

.chrome-folder {
    display: flex;
    flex-direction: column;
}

.chrome-folder-header {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    cursor: pointer;
    user-select: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    margin: 2px 12px;
    color: var(--text-main);
    transition: var(--transition);
}

.chrome-folder-content {
    display: none;
    padding-left: 12px;
    margin-left: 24px;
    border-left: 1.5px dashed rgba(243, 108, 33, 0.2);
}

.chrome-folder.open > .chrome-folder-content {
    display: flex;
    flex-direction: column;
}

.chrome-folder.open > .chrome-folder-header .chrome-arrow {
    transform: rotate(90deg);
}

/* ============================================================
   Classes movidas dos <style> inline de cada página HTML
   original (ContatosVoip, tokens_Milvus) durante a migração
   para React — ver intranet_local/src/pages/.
   ============================================================ */

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-back:hover {
    background: var(--accent-hover);
    transform: translateX(-5px);
}

.voip-card {
    max-width: 600px;
    margin: 2rem auto;
    text-align: center;
}

.instruction-text {
    margin-bottom: 2rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.token-card {
    max-width: 800px;
    margin: 2rem auto;
    animation: fadeIn 0.6s ease forwards;
}

.token-list {
    list-style: none;
    padding: 0;
}

.token-item {
    display: grid;
    grid-template-columns: 150px 1fr 100px;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.token-item:hover {
    background: rgba(255, 255, 255, 0.5);
}

.token-col-first {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-copy {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-copy:hover {
    color: var(--accent);
    background: rgba(0, 0, 0, 0.05);
}

.token-code {
    font-family: 'Outfit', monospace;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
}

.token-name {
    font-weight: 500;
    color: var(--text-main);
}

.badge {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}

.badge.ativo {
    background: #dcfce7;
    color: #166534;
}

.badge.inativo {
    background: #fee2e2;
    color: #991b1b;
}