/* ═══════════════════════════════════════════════════════════════════
   shared-panels.css — Reusable floating panel components
   Used by: Main monitoring page, Trip Logbook, and future pages
   ═══════════════════════════════════════════════════════════════════ */

/* ── Panel Header ─────────────────────────────────────────────────── */
.panel-header {
    display: flex;
    align-items: center;
    padding: 12px 14px 8px 14px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
    border-radius: 12px 12px 0 0;
}
.panel-header-title {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    display: flex;
    align-items: center;
    gap: 6px;
}
.panel-header-title .material-icons {
    font-size: 20px;
    color: var(--brand-primary);
}
.panel-header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 2px;
}
.panel-header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.panel-header-btn:hover {
    background: #f0f0f0;
    color: var(--brand-primary);
}
.panel-header-btn .material-icons {
    font-size: 20px;
}

/* ── Resize Handle ────────────────────────────────────────────────── */
.sidebar-resize-handle {
    width: 6px;
    cursor: col-resize;
    background: transparent;
    flex-shrink: 0;
    transition: background .15s;
    border-radius: 0 3px 3px 0;
    margin-left: -1px;
}
.sidebar-resize-handle:hover,
.sidebar-resize-handle:active {
    background: #1e88e5;
}
body.sidebar-resizing {
    user-select: none;
    cursor: col-resize !important;
}

/* ── Mobile Toggle Bar ────────────────────────────────────────────── */
.mobile-toggle-bar {
    display: none;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 40px;
    z-index: 1035;
    background: var(--brand-primary);
}
.mobile-toggle-btn {
    flex: 1;
    border: none;
    background: transparent;
    color: rgba(255,255,255,.65);
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    height: 100%;
    transition: background .15s, color .15s;
}
.mobile-toggle-btn:hover { color: #fff; }
.mobile-toggle-btn.active {
    background: rgba(255,255,255,.15);
    color: #fff;
}

/* ── Floating Panel Base ──────────────────────────────────────────── */
.floating-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ── Panel Scrollable Content ─────────────────────────────────────── */
.panel-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}
