:root {
    --cor-primaria: #3d4452;
    --cor-destaque: #6ecf94;
    --cor-botao: #34a853;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa; color: #202124;
    padding-top: 56px;
}

/* === Top Bar === */
.topbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: var(--cor-primaria); height: 56px;
    display: flex; align-items: center; padding: 0 16px; gap: 12px;
}
.topbar-logo {
    font-size: 20px; font-weight: 700; color: white;
    text-decoration: none; white-space: nowrap; flex-shrink: 0;
    display: flex; align-items: center; gap: 8px;
}
.topbar-logo span { color: var(--cor-destaque); }
.topbar-simbolo { height: 32px; width: auto; display: block; }
.topbar-search { flex: 1; max-width: 540px; position: relative; }
.topbar-search input {
    width: 100%; padding: 8px 40px 8px 14px; font-size: 14px;
    border: none; border-radius: 20px; outline: none;
    background: white;
}
.topbar-search input:focus { box-shadow: 0 0 0 2px var(--cor-destaque); }
.topbar-search .search-icon {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    color: #9aa0a6; font-size: 16px; cursor: pointer;
}
.topbar-autocomplete {
    position: absolute; top: 100%; left: 0; right: 0;
    background: white; border: 1px solid #dfe1e5; border-top: none;
    border-radius: 0 0 16px 16px; box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: none; z-index: 10; max-height: 300px; overflow-y: auto;
}
.topbar-autocomplete.visible { display: block; }
.topbar-ac-item {
    padding: 10px 14px; cursor: pointer; display: flex; align-items: center; gap: 10px; font-size: 13px;
}
.topbar-ac-item:hover { background: #f1f3f4; }
.topbar-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; margin-left: auto; }
.topbar-btn {
    color: white; text-decoration: none; font-size: 13px;
    padding: 6px 12px; border-radius: 6px; display: flex; align-items: center; gap: 6px;
    background: transparent; border: none; cursor: pointer; white-space: nowrap;
    transition: background 0.15s;
}
.topbar-btn:hover { background: rgba(255,255,255,0.12); }
.topbar-btn .badge {
    background: #e94560; color: white; border-radius: 10px;
    padding: 0 6px; font-size: 11px; font-weight: 700; min-width: 18px; text-align: center;
}

/* === Breadcrumbs === */
.breadcrumbs {
    padding: 10px 20px; font-size: 13px; color: #5f6368;
    background: white; border-bottom: 1px solid #e8eaed;
}
.breadcrumbs a { color: #1a73e8; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { margin: 0 6px; color: #ccc; }

/* === Mobile bottom bar === */
.mobile-bar {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    background: white; border-top: 1px solid #e8eaed;
    height: 76px; justify-content: space-around; align-items: center;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobile-bar a {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    text-decoration: none; color: #5f6368; font-size: 12px; position: relative;
    padding: 4px 8px;
}
.mobile-bar a.active { color: #1a73e8; }
.mobile-bar a .icon { font-size: 28px; line-height: 1; }
.mobile-bar .mob-badge {
    position: absolute; top: 0; right: -4px;
    background: #e94560; color: white; border-radius: 10px;
    padding: 1px 6px; font-size: 11px; font-weight: 700;
}

/* === Pulse de busca (chama atenção até o usuário clicar no campo) === */
@keyframes pbc-search-wave {
    0%   { box-shadow: 0 0 0 0 rgba(255, 107, 28, 0.65); }
    70%  { box-shadow: 0 0 0 18px rgba(255, 107, 28, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 28, 0); }
}
.pbc-search-pulse {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.6em; height: 1.6em; border-radius: 50%;
    animation: pbc-search-wave 1.6s ease-out infinite;
}
.pbc-search-pulse.no-pulse { animation: none !important; box-shadow: none !important; }

@media (max-width: 768px) {
    .topbar { padding: 0 10px; gap: 8px; }
    .topbar-logo { font-size: 16px; }
    .topbar-actions { display: none; }
    .mobile-bar { display: flex; }
    body { padding-bottom: 76px; }
    .breadcrumbs { padding: 8px 16px; font-size: 12px; }
}
