/*
    FKSmart V2 — core_overrides.css
    Este arquivo é carregado APÓS o app.min.css, garantindo que os overrides
    de layout e componentes sempre prevalecem sobre o bundle compilado.

    Regra: NÃO modificar arquivos em customer/css/core/
    Todos os overrides de layout ficam aqui.
*/

/* ── Tipografia global — Figtree ── */
body, * {
    font-family: 'Figtree', ui-sans-serif, system-ui, sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

/* ── Fundo da página ── */
body, .wrapper, .main {
    background: #f1f5f9 !important;
}

/* ═══════════════════════════════════════
   HEADER
═══════════════════════════════════════ */
.header {
    background: #1e293b !important;
    border-bottom: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18) !important;
}
.header .header__logo,
.header .header__logo a {
    color: #f1f5f9 !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
}
.header__logo-img {
    height: 32px !important;
    width: auto !important;
    display: block !important;
}
.header .header__nav a {
    color: #94a3b8 !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    transition: color 0.15s !important;
}
.header .header__nav a:hover {
    color: #ffffff !important;
}
/* Botões Entrar / Registrar */
.header .header__nav .btn,
.header .header__nav .btn--blue,
.header .header__nav a.btn {
    background: #2563eb !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 0.35rem 0.875rem !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    border: none !important;
    transition: background 0.15s !important;
}
.header .header__nav .btn:hover,
.header .header__nav a.btn:hover {
    background: #1d4ed8 !important;
    color: #fff !important;
}

/* ═══════════════════════════════════════
   HERO / SEARCH SECTION
═══════════════════════════════════════ */
.help-search {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%) !important;
    padding: 3.5rem 2rem 3rem !important;
    text-align: center !important;
    width: 100% !important;
}
.search__title,
.help-search h1 {
    color: #ffffff !important;
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.03em !important;
    margin-bottom: 1.25rem !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.15) !important;
}
/* Container da busca — .search__form é o wrapper gerado por displayKbSearch() */
.help-search .search__form,
.help-search .search-wrap,
.help-search form {
    max-width: 580px !important;
    margin: 0 auto !important;
    position: relative !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
.help-search .form-group {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
}
/* Input da busca dentro do hero */
.help-search input[type="text"],
.help-search input[type="search"] {
    width: 100% !important;
    height: 52px !important;
    padding: 0 120px 0 3rem !important;
    border: none !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    color: #1e293b !important;
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
}
.help-search input[type="text"]:focus,
.help-search input[type="search"]:focus {
    outline: none !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2), 0 0 0 3px rgba(255,255,255,0.3) !important;
}

/* ═══════════════════════════════════════
   CONTEÚDO PRINCIPAL
═══════════════════════════════════════ */
.main__content {
    background: #f1f5f9 !important;
    padding: 0 !important;
}
.contr {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 2rem 2rem !important;
}

/* ═══════════════════════════════════════
   NAV CARDS (Enviar chamado / Meus tickets)
═══════════════════════════════════════ */
.navlink {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 3px rgba(15,23,42,0.06) !important;
    transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease !important;
    text-decoration: none !important;
}
.navlink:hover {
    border-color: #bfdbfe !important;
    box-shadow: 0 4px 20px rgba(37,99,235,0.12) !important;
    transform: translateY(-2px) !important;
    background: #ffffff !important;
    text-decoration: none !important;
}
.icon-in-circle {
    border-radius: 12px !important;
    background: #eff6ff !important;
    transition: background 0.15s !important;
}
.icon-in-circle .icon {
    fill: #2563eb !important;
    transition: fill 0.15s !important;
}
.navlink:hover .icon-in-circle {
    background: #2563eb !important;
}
.navlink:hover .icon-in-circle .icon {
    fill: #ffffff !important;
}
.navlink__title {
    color: #1e293b !important;
    font-size: 0.9375rem !important;
    font-weight: 700 !important;
}
.navlink__descr {
    color: #64748b !important;
    font-size: 0.8125rem !important;
}

/* ═══════════════════════════════════════
   KNOWLEDGE BASE / ARTIGOS
═══════════════════════════════════════ */
.article {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 3px rgba(15,23,42,0.06) !important;
    overflow: hidden !important;
}
.article__heading {
    padding: 1.25rem 1.5rem 1rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
}
.article__heading a {
    color: #1e293b !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}
.article__heading a:hover {
    color: #2563eb !important;
}
.article__heading .icon-in-circle {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 8px !important;
}

/* Tabs da KB */
.tabbed__head {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 0 1.5rem !important;
}
.tabbed__head .tabbed__head_tabs li {
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
    background: transparent !important;
    border-width: 0 0 2px 0 !important;
    border-color: transparent !important;
    border-radius: 0 !important;
    transition: color 0.15s, border-color 0.15s !important;
}
.tabbed__head .tabbed__head_tabs li.current,
.tabbed__head .tabbed__head_tabs li:hover {
    color: #2563eb !important;
    background: transparent !important;
    border-bottom-color: #2563eb !important;
}

/* Preview de artigos */
.preview {
    padding: 0.875rem 1.5rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
    border-radius: 0 !important;
    transition: background 0.12s !important;
}
.preview:hover {
    background: #f8fafc !important;
}
.preview .icon-in-circle {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    border-radius: 8px !important;
}
.preview__title,
h3.preview__title {
    color: #2563eb !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
}
.preview:hover .preview__title {
    color: #1d4ed8 !important;
}

/* Footer da KB card */
.article__footer {
    padding: 1rem 1.5rem !important;
    border-top: 1px solid #f1f5f9 !important;
    background: #f8fafc !important;
}

/* ═══════════════════════════════════════
   BREADCRUMBS
═══════════════════════════════════════ */
.breadcrumbs {
    font-size: 0.8125rem !important;
    color: #64748b !important;
}
.breadcrumbs a {
    color: #2563eb !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}
.breadcrumbs a:hover {
    color: #1d4ed8 !important;
    text-decoration: underline !important;
}

/* Ocultar breadcrumbs nas páginas KB (artigo/categoria) — hero é suficiente */
.page-view-article .breadcrumbs,
.page-view-category .breadcrumbs {
    display: none !important;
}

/* Hero compacto nas páginas internas (sem título, só busca) */
.page-view-article .help-search,
.page-view-category .help-search {
    padding: 2rem 2rem !important;
}

/* ═══════════════════════════════════════
   BOTÕES GLOBAIS
═══════════════════════════════════════ */
.btn--blue,
.btn-full,
input[type="submit"],
button[type="submit"] {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    transition: background 0.15s ease !important;
}
.btn--blue:hover,
.btn-full:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
}
.btn--blue-border {
    background: #ffffff !important;
    color: #2563eb !important;
    border: 1.5px solid #2563eb !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: background 0.15s !important;
}
.btn--blue-border:hover {
    background: #eff6ff !important;
}

/* ═══════════════════════════════════════
   INPUTS
═══════════════════════════════════════ */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    border-color: #cbd5e1 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #1e293b !important;
    font-size: 0.875rem !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
}
input:focus,
textarea:focus,
select:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.16) !important;
    outline: none !important;
}

/* ═══════════════════════════════════════
   ALERTAS
═══════════════════════════════════════ */
.notification.green { background: #f0fdf4 !important; border-color: #bbf7d0 !important; color: #166534 !important; border-radius: 10px !important; }
.notification.red   { background: #fef2f2 !important; border-color: #fecaca !important; color: #991b1b !important; border-radius: 10px !important; }
.notification.orange{ background: #fefce8 !important; border-color: #fef08a !important; color: #854d0e !important; border-radius: 10px !important; }
.notification.blue  { background: #eff6ff !important; border-color: #bfdbfe !important; color: #1e40af !important; border-radius: 10px !important; }

/* ═══════════════════════════════════════
   RODAPÉ
═══════════════════════════════════════ */
.footer {
    background: #f1f5f9 !important;
    border-top: 1px solid #e2e8f0 !important;
    color: #64748b !important;
    font-size: 0.8125rem !important;
}
.footer a { color: #2563eb !important; font-weight: 500 !important; }
.footer a:hover { color: #1d4ed8 !important; }