/* =================================================
   RESET BASE
================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    overflow: hidden;
}

/* =================================================
   HEADER & FOOTER (LAYOUT)
================================================= */

header, footer {
    position: fixed;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    z-index: 100;
}

header { top: 0; }
footer { bottom: 0; }

.header-left, .header-center, .header-right,
.footer-left, .footer-center, .footer-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.header-center,
.footer-center {
    justify-content: center;
}

.footer-center {
    padding-top: 20px;
}

.header-right,
.footer-right {
    justify-content: flex-end;
}

/* =================================================
   BODY LAYOUT
================================================= */

#app-body {
    position: absolute;
    top: 60px;
    bottom: 60px;
    width: 100%;
    overflow-y: auto;
    scrollbar-width: none;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

#app-body::-webkit-scrollbar {
    display: none;
}

#body-content {
    flex: 1;
    min-height: 100%;
    position: relative;
}

/* =================================================
   LOGIN MODE (ESTRUCTURAL)
================================================= */

body.login-mode header,
body.login-mode footer {
    display: none;
}

body.login-mode #app-body {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

body.login-mode #body-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
