:root {
    --border-radius-main: 48px;
    --palette-primary-light: #2bbbad;
    --palette-primary-main: #26a69a;
    --palette-primary-dark: #00796b;
    --palette-primary-contrast-text: #FFFFFF;

    --palette-secondary-main: #2B3E94;
    --palette-secondary-dark: #223277;
    
    --palette-grey-50: #F5F5F8;
    --palette-grey-200: #EBEBF1;
    --palette-grey-500: #b7c9c4;
    --palette-grey-700: #669291;
    --palette-grey-900: #233a35;
}

html, body {
    font-family: "Noto Sans JP", sans-serif;

    background-color: var(--palette-grey-50);
}

.secondary {
    background-color: var(--palette-secondary-main);
}

a.secondary:hover{
    background-color: var(--palette-secondary-dark);
}

body {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

button.btn {
    border-radius: var(--border-radius-main);
    padding: 6px 24px;
    height: auto;
    background-color: var(--palette-primary-main);
    color: var(--palette-primary-contrast-text)
}

button.btn:hover {
    background-color: var(--palette-primary-light);
}

.card {
    border-radius: var(--border-radius-main);
}

.card-title {
    color: var(--palette-secondary-main);
}

input[type="password"] {
    font-family: Arial, Helvetica, sans-serif;
}

nav {
    width: 210px;
    height: 100vh;
    position: relative;

    transition: width 0.2s;
}

nav ul {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

nav ul a.accounts-logo {
    padding: 0px 8px;
    height: auto;
}

nav ul a.accounts-logo img {
    width: 230px;
    height: auto;
}

nav .menu-item {
    max-height: 64px;
}

nav .menu-item a {
    display: flex;
    align-items: center;
    width: 230px;
}

nav .menu-item a i {
    margin-right: 16px;
}

nav .btn-floating {
    position: absolute;
    top: 50px;
    left: 191.5px;
    transform: rotate(180deg);

    margin: 0px !important;
}

nav .btn-floating i#bars {
    display: none;
}

nav .btn-floating i {
    height: 37px;
    line-height: 37px;
}

nav.collapsed {
    width: 60px;
}

nav.collapsed ul li.menu-logo-item {
    width: 50px;
    overflow-x: hidden;
}

nav.collapsed .btn-floating {
    left: 41.5px;
    transform: rotate(0deg);
}

#content {
    overflow-y: auto;
    width: 100%;
    height: 100vh;
    scrollbar-width: thin;

    padding-top: 24px;
}

.email-footer button:not(:first-child) {
    margin-left: 4px;
}

@media (max-width: 960px) {
    body {
        flex-direction: column;
    }

    nav {
        width: 100vw;
        height: 64px;
        position: relative;
        overflow-y: hidden;
        
        transition: height 0.2s, max-height 0.2s;
    }

    nav.collapsed {
        width: 100vw;
        height: auto;
        overflow: initial;
    }

    nav ul li.menu-logo-item {
        display: flex;
        justify-content: space-between;
        height: 64px;
        padding: 0 16px 0 0;
    }

    nav.collapsed ul li.menu-logo-item {
        width: 100% !important;
        overflow-x: hidden;
    }

    nav.collapsed ul li,
    nav.collapsed ul li a:not(.btn-floating) {
        width: 100%;
    }

    nav.collapsed ul li.menu-logo-item {
        width: 50px;
        overflow: hidden;
    }

    nav .btn-floating {
        display: block;
        position: static;
        align-self: center;
    }
    
    nav.collapsed .btn-floating {
        left: 0px;
        top: 0px;
        transform: rotate(0deg);
    }

    nav .btn-floating i#arrow {
        display: none;
    }
    nav .btn-floating i#bars {
        display: block;
    }

    .email-footer {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .email-footer button:not(:first-child) {
        margin-top: 4px;
    }
}