/* ============================================================
   MIKA SHELL
   Header chrome, ported from the Studio Mika
   shell (avrl_studio_mika/template_mika_main.html). The Mika
   shell hosts modules in an iframe; this app has one page, so
   the module content is rendered inline inside .content.
   ============================================================ */

:root {
    --shell-header-height: 50px;
    --shell-sidebar-width: 280px;
}

/* ------------------------------------------------------------
   1. HEADER — grainy dark background
   ------------------------------------------------------------ */
.header {
    background-color: black;
    background-image: radial-gradient(ellipse at center, #0a0a0a 0%, #000 100%);
    border-bottom: 1px solid #333;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--shell-header-height);
    overflow: hidden;
}

.header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.26;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' result='t' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0' in='t'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

.header-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 24px 0 0;
    margin: 0 auto;
    gap: 24px;
}

.header-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: var(--shell-sidebar-width);
    padding-left: 10px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ------------------------------------------------------------
   2. MAIN CONTAINER + CONTENT
   ------------------------------------------------------------ */
.main-container {
    display: flex;
    margin-top: var(--shell-header-height);
    height: calc(100vh - var(--shell-header-height));
    overflow: hidden;
}

.content {
    flex: 1;
    min-width: 0;
    height: calc(100vh - var(--shell-header-height));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ------------------------------------------------------------
   3. RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 1024px) {

    .header-left {
        width: auto;
    }
}
