/* =====================================================
   APP
===================================================== */
#app{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 15px;
    gap: 10px;
}

/* =====================================================
   SIDEBAR
===================================================== */

.sidebar {
    position: fixed;
    top: 0;
    left: -270px;
    width: 240px;
    min-height: 100dvh;
    background: var(--navy);
    color: #ffffff;
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    gap: 12px;
    transition: left 0.25s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
    z-index: 100;
}

.sidebar.open {
    left: 0;
}


.side-nav {
    display: flex;
    flex-direction: column;

    gap: 5px;
}

.side-nav button {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    gap: 10px;
    min-height: 42px;
    padding: 9px 12px;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    border: none;
    background: transparent;

    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}


.side-nav button img {
    width: 20px;
    height: 20px;

    object-fit: contain;
}


.side-nav button:hover {
    background: rgba(255, 255, 255, 0.10);

    color: #ffffff;

    transform: translateX(2px);
}


.side-nav button.active {
    background: rgba(255, 255, 255, 0.16);

    color: #ffffff;

    font-weight: 700;
}


/* =====================================================
   BRAND
===================================================== */

.brand {
    display: flex;
    flex-direction: column;

    gap: 5px;

    margin: 4px 8px 18px;

    color: inherit;

    text-decoration: none;
}


.brand img {
    display: block;

    width: 100%;
    max-width: 180px;
    height: auto;

    margin: auto;

    padding: 7px;

    background: #ffffff;

    border-radius: 12px;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.12);
}


.brand small {
    margin-top: 3px;

    text-align: center;

    color: rgba(255, 255, 255, 0.55);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}

/* =====================================================
   SIDEBAR USER
===================================================== */

.sidebar-user {
    margin-top: auto;

    padding: 12px;

    border-top: 1px solid rgba(255, 255, 255, 0.10);

    color: rgba(255, 255, 255, 0.8);

    font-size: 13px;
}

/* =====================================================
   MENU UND REFRESH BUTTON
===================================================== */
#menuBtn, #refreshBtn {
    display: inline-flex;
    position: absolute;
    top: 10px;
}

#menuBtn{
    left: 10px;
}

#refreshBtn{
    right: 10px;
}

.icon-only-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.icon-only-btn img {
    width: 22px;
    height: 22px;
    padding: 0;
    object-fit: contain;
}

/* =====================================================
   VERBINDUNG STATUS
===================================================== */
#connectionStatusIndicator{
    height: 15px;
    z-index: 9999; 
    font-size: 11px; 
    padding: 2px 10px; 
    border-radius: 10px; 
    background: rgba(0,0,0,0.6); 
    color: #fff; 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    pointer-events: none; 
    opacity: 0.8; 
    transition: background 0.3s;
}

#statusDot{
    width: 7px; 
    height: 7px; 
    border-radius: 50%; 
    background: #2ecc71; 
    display: inline-block;
}

/* =====================================================
   PAGE_HEAD
===================================================== */
.page-head {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    height: 55px;
}

.headername {
    color: #0f172a;
    text-align: center;
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 750;
    line-height: 1.2;
}

.muted {
    color: #64748b;
    text-align: center;
    font-size: 13px;
}

/* =====================================================
   CONTENT
===================================================== */
.content {
    width: 100%;
    height: calc(100% - 100px);
    display: flex;
    flex-direction: column;
    gap: 5px;
}