/* RESET */
*{
    box-sizing:border-box;
}

/* BODY */
body{
    margin:0;
    display:flex;
    flex-direction:column;
    height:100vh;
    overflow:hidden;
    background:#f4f8fa;
    color:#333;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
}

/* HEADER */
#app-header{
    background:#34495e;
    padding:4px 20px;
    flex-shrink:0;
}

#app-header h1{
    text-align:center;
    color:#fff;
    font-size:1rem;
}

/* MAIN NAVIGATION */
#main-navigation{
    display:flex;
    justify-content:center;
    background:#34495e;
    border-bottom:2px solid #e6f0fa;
    flex-shrink:0;
}

.menu-item{
    padding:5px 20px;
    color:#ecf0f1;
    text-decoration:none;
    font-size:.9rem;
    font-weight:500;
    transition:.2s;
}

.menu-item:hover{
    background:#1abc9c;
    color:#fff;
}

.menu-item.active{
    background:#1abc9c;
    color:#fff;
    border-bottom:3px solid #1a446c;
}

/* SUB NAVIGATION */
#sub-navigation{
    display:flex;
    align-items:center;
    gap:10px;
    height:36px;
    padding:0 20px;
    background:#e6f0fa;
    border-bottom:0px solid #cfe2f3;
    flex-shrink:0;
}

#mode-label{
    font-size:.8rem;
    font-weight:bold;
    color:#4a6b82;
}

#mode-selector{
    min-width:220px;
    padding:4px 10px;
    border:1px solid #cfe2f3;
    border-radius:4px;
    background:white;
}

/* TOOLBAR */
#toolbar{
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #e6f0fa;
    border-bottom: 1px solid #cfe2f3;
    flex-shrink: 0;
}

/* MAIN LAYOUT */
#main-container{
    display:flex;
    flex:1;
    overflow:hidden;
}

#sidebar{
    flex:0 0 30%;
    overflow:auto;
    background:#fff;
}

.tabcontent {
  display: none;
  padding: 0px 0px;
  border: none;
  border-top: none;
  font-size: 17px;
}

#resizer{
    width:3px;
    background:#cfe2f3;
    cursor:col-resize;
    flex-shrink:0;
}

#main-content{
    flex:1;
    overflow:auto;
    background:#fff;
}

.image{
    width:100%;
    height:100%;
    object-fit:contain;
}

/* FOOTER */
#app-footer{
    background:#34495e;
    color:#bdc3c7;
    text-align:center;
    font-size:.8rem;
    padding:6px;
    border-top:1px solid #cfe2f3;
    flex-shrink:0;
}

#app-footer p {
    margin: 0;
    padding: 0;
}

/* RESPONSIVE */
@media (max-width:768px){
    body{
        height:auto;
        overflow:auto;
    }

    #main-navigation{
        flex-wrap:wrap;
    }

    .menu-item{
        flex:1 1 auto;
        text-align:center;
    }

    #main-container{
        flex-direction:column;
    }

    #sidebar{
        width:100%;
        height:35vh;
        flex:none;
    }

    #main-content{
        width:100%;
        height:60vh;
        flex:none;
    }

    #resizer{
        display:none;
    }
}
