/* Navbar + Nav Menu */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 900;
    background: #3b4a6b; height: 44px; display: flex; align-items: center;
    padding: 0 16px; box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.navbar .hamburger {
    background: none; border: none; color: #fff; font-size: 1.3rem;
    cursor: pointer; padding: 4px 8px; margin-right: 12px;
}
.navbar .brand { color: #fff; font-size: 0.95rem; font-weight: 600; flex: 1; }
.navbar .brand span { color: #4caf50; }
.navbar-right { display: flex; align-items: center; gap: 8px; }

.nav-menu {
    position: fixed; top: 0; left: -260px; width: 260px; height: 100%;
    background: #2d3a55; z-index: 1001; transition: left 0.3s ease;
    padding-top: 54px;
}
.nav-menu.open { left: 0; }
.nav-menu a {
    display: block; padding: 12px 20px; color: #ccc; text-decoration: none;
    font-size: 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-menu a:hover { background: rgba(255,255,255,0.05); color: #fff; }
.nav-menu a.active { color: #4caf50; background: rgba(76,175,80,0.1); }
.nav-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); z-index: 1000; display: none;
}
.nav-overlay.show { display: block; }

body { padding-top: 56px; padding-bottom: 42px; }

/* ── Calculadora — painel fixo inferior ── */
#calc-panel {
    position: fixed; bottom: 0; left: 50%; z-index: 900;
    width: min(600px, 95%); transform: translateX(-50%);
    background: #fff; box-shadow: 0 -2px 8px rgba(0,0,0,0.12);
    border-radius: 6px 6px 0 0;
}
#calc-panel-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 12px; height: 42px;
    background: #3b4a6b; color: #fff;
    cursor: pointer; user-select: none;
    font-size: 0.82rem; font-weight: 600; letter-spacing: 0.03em;
}
#calc-panel-bar:hover { background: #2e3a56; }
#calc-panel-actions { display: flex; align-items: center; gap: 6px; }
#calc-panel-chevron { font-size: 0.75rem; transition: transform 0.25s; }
#calc-detach-btn {
    background: none; border: none; color: #adc4f0; font-size: 1rem;
    cursor: pointer; padding: 2px 5px; line-height: 1; border-radius: 3px;
    transition: color 0.15s, background 0.15s;
}
#calc-detach-btn:hover { color: #fff; background: rgba(255,255,255,0.15); }
#calc-panel-body {
    height: 0; overflow: hidden;
    transition: height 0.25s ease;
}
#calc-panel-body.open { height: 330px; }
#calc-iframe {
    width: 100%; height: 330px;
    border: none; display: block;
}
