@import "styles/theme.css";
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
@import "styles/css/chat.css";
@import "styles/css/navigation.css";
@import "styles/css/forms.css";
@import "styles/dark-theme.css";

body {
    background-color: var(--md-sys-color-on-primary);
    font-family: 'Roboto', sans-serif;
    margin: 0;
    height: 100vh;
    overflow: hidden;
    padding: 0;
}

:root {
    font-size: 10px;
}

section {
    height: 100%;
}

.main {
    height: 100%;
}

.section {
    height: 100%;
    display: flex;
}

.section > * {
    width: 100%;
}

.main-view {
    display: flex;
    justify-content: center;
}

.main-view-wrapper {
    width: 100%;
}

.main-view-wrapper .listItem:hover {
    color: black;
}

.otw-top-app-bar {
    height: 5rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 15px 0 2.4rem 1.6rem 1.6rem;
    /*background-color: var(--md-sys-color-on-primary);*/
    border-bottom: 1px solid var(--md-ref-palette-neutral80-light)
}

.otw-top-app-bar > .avatar {
    border-radius: 50%;
    /*aspect-ratio: 1/1;*/
    /*height: 100%;*/
    overflow: hidden;
    position: relative;
    width: 3.5rem;
    height: 3.5rem;
    /*width: 100%;*/
}

.otw-top-app-bar > .avatar > img {
    height: 100%;
}

.otw-top-app-bar > .title {
    font-size: 18px;
    color: var(--md-sys-color-on-surface);
    /*    padding-left: 1.2rem;*/
    margin-left: 24px;
    flex-grow: 4;
}

.otw-bottom-input {
    height: 7rem;
    /*background-color: var(--md-sys-color-surface-variant);*/
    display: flex;
    flex-direction: column;
    padding-left: 16px;
    padding-right: 16px;
    position: sticky;
    bottom: 0;
    padding-top: 12px;
}


.chat-markers {
    display: none;
    margin-right: 15px;
}

.chat-markers > div {
    height: 14px;
    margin-left: auto;
    display: flex;
}

.chat-markers > div > div.avatars {
    height: 100%;
    display: flex;
}

.chat-markers > div > div.description {
    align-self: center;
    margin-left: 10px;
}

.chat-markers .otw-avatar {
    width: 14px;
    height: 14px;
}

.date-divider {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--md-ref-palette-neutral80-light);
    line-height: 0.1em;
    margin: 10px 0 20px;
    opacity: 0.6;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.date-divider > span {
    background: var(--md-sys-color-surface);
    padding: 0 10px;
    height: 18px;
    line-height: 16px;
    position: relative;
    top: 8px;
}

div.avatar-item {
    /* Center the content */
    align-items: center;
    display: flex;
    justify-content: center;

    /* Colors */
    /*background-color: #d1d5db;*/
    /*   color: white;*/

    /* Rounded border */
    border-radius: 50%;
    height: 100%;
    width: 100%;

    font-size: 14px;
}

.avatar-item.large {
    font-size: 42px;
}

img.avatar-item {
    border-radius: 50%;
    height: 100%;
    width: 100%;
}

.chat-markers div.avatar-item {
    font-size: 7px;
}

.roster-label {
    display: flex;
    justify-content: space-between;
    flex-grow: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.roster-label div.name {
    font-weight: 500;
    text-overflow: ellipsis;
    overflow: hidden;
    width: 257px;
}

.badge {
    background-color: var(--light-blue);
    color: var(--black);
    padding: 2px;
    font-size: 14px;
    border-radius: 50px;
    height: 24px;
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.listItem > .button {
    padding: 0px 5px;
    text-align: center;
    font-size: 1.4rem;
}

.attachment {
    border-radius: 8px;
    /*    background-color: var(--md-sys-color-surface-variant);*/
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.attachment img {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;

    /*width: 100%;*/
    width: 300px;
    object-fit: cover;
    object-position: bottom;
}


.attachment .footer {
    padding: 8px;
    color: #fff;
    font-size: 12px;
    /*background-color: var(--md-sys-color-surface-variant);*/
}

.attachment .footer a {
    text-decoration: none;
    color: #fff;
}

.error-panel {
    background-color: var(--md-sys-color-error-container);
    color: var(--md-sys-color-on-error-container);
    border-radius: 12px;
    padding: 12px;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

button.round {
    border: none;
    padding: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

button.round:hover {
    /*background-color: var(--md-sys-color-secondary-container);;*/
    background-color: transparent;

}

button.round:active {
    box-shadow: 0 0 2px var(--md-sys-color-shadow);
    transform: translateY(2px);
}

.vcard-property {
    display: flex;
    flex-direction: row;
    padding: 8px;
}

.vcard-property-icon {
    margin-right: 8px;
}

.vcard-property-content {
}

.vcard-property-value {
    font-size: 16px;
}

.vcard-property-label {
    font-size: 12px;
}

.vcard-avatar {
    width: 150px;
    height: 150px;
    margin-right: 20px;
}

.vcard-header {
    display: flex;
    flex-direction: row;
    padding: 8px;
    align-items: center;
}

.vcard-name {
    font-size: 22px;
    font-weight: bold;
    padding-bottom: 8px;
}

.vcard-jid {
    font-size: 14px;
    padding-bottom: 8px;
}

.vcard-role {
    font-size: 16px;
    padding-bottom: 8px;
}

.vcard-header-fields {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nav-toggle-btn {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 16 16" fill="%23000000"%3E%3Cpath fill-rule="evenodd" clip-rule="evenodd" d="M14 5H2V3h12v2zm0 4H2V7h12v2zM2 13h12v-2H2v2z"/%3E%3C/svg%3E');
    height: 24px;
    flex: 0 0 24px;
    width: 24px;
    background-repeat: no-repeat;
    background-position: center;
}

@media (min-width: 991.99px) {
    .nav-toggle-btn {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .navbar-left {
        display: none;
        transition: transform 1s ease-in-out;
    }

    .navbar-left.navbar-open {
        display: block;
        position: absolute;
        top: 0;
        bottom: 0;
        max-width: 360px;
        width: 100%;
        z-index: 10;
        transform: translateX(0);
    }


    .navbar-open .nav-close-btn {
        background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="-0.5 0 25 25" fill="none"%3E%3Cpath d="M3 21.32L21 3.32001" stroke="%23fff" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/%3E%3Cpath d="M3 3.32001L21 21.32" stroke="%23fff" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/%3E%3C/svg%3E');
        height: 24px;
        width: 24px;
        background-repeat: no-repeat;
        background-position: center;
        position: absolute;
        top: 14px;
        right: 14px;
        display: block;
        padding: 8px;
    }
}

@media (max-width: 575.98px) {
    .nav-toggle-btn {
        position: absolute;
        top: 8px;
        left: 24px;
    }

    .vcard-avatar{
        flex: 0 0 75px;
        width: 75px;
        height: 75px;
    }
}


.pure-material-checkbox {
    z-index: 0;
    position: relative;
    display: inline-block;
    color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.87);
    font-family: var(--pure-material-font, "Roboto", "Segoe UI", BlinkMacSystemFont, system-ui, -apple-system);
    font-size: 16px;
    line-height: 1.5;
}

/* Input */
.pure-material-checkbox > input {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    z-index: -1;
    position: absolute;
    left: -10px;
    top: -8px;
    display: block;
    margin: 0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.6);
    box-shadow: none;
    outline: none;
    opacity: 0;
    transform: scale(1);
    pointer-events: none;
    transition: opacity 0.3s, transform 0.2s;
}

/* Span */
.pure-material-checkbox > span {
    display: inline-block;
    width: 100%;
    cursor: pointer;
}

/* Box */
.pure-material-checkbox > span::before {
    content: "";
    display: inline-block;
    box-sizing: border-box;
    margin: 3px 11px 3px 1px;
    border: solid 2px; /* Safari */
    border-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.6);
    border-radius: 2px;
    width: 18px;
    height: 18px;
    vertical-align: top;
    transition: border-color 0.2s, background-color 0.2s;
}

/* Checkmark */
.pure-material-checkbox > span::after {
    content: "";
    display: block;
    position: absolute;
    top: 3px;
    left: 1px;
    width: 10px;
    height: 5px;
    border: solid 2px transparent;
    border-right: none;
    border-top: none;
    transform: translate(3px, 4px) rotate(-45deg);
}

/* Checked, Indeterminate */
.pure-material-checkbox > input:checked,
.pure-material-checkbox > input:indeterminate {
    background-color: rgb(var(--pure-material-primary-rgb, 33, 150, 243));
}

.pure-material-checkbox > input:checked + span::before,
.pure-material-checkbox > input:indeterminate + span::before {
    border-color: rgb(var(--pure-material-primary-rgb, 33, 150, 243));
    background-color: rgb(var(--pure-material-primary-rgb, 33, 150, 243));
}

.pure-material-checkbox > input:checked + span::after,
.pure-material-checkbox > input:indeterminate + span::after {
    border-color: rgb(var(--pure-material-onprimary-rgb, 255, 255, 255));
}

.pure-material-checkbox > input:indeterminate + span::after {
    border-left: none;
    transform: translate(4px, 3px);
}

/* Hover, Focus */
.pure-material-checkbox:hover > input {
    opacity: 0.04;
}

.pure-material-checkbox > input:focus {
    opacity: 0.12;
}

.pure-material-checkbox:hover > input:focus {
    opacity: 0.16;
}

/* Active */
.pure-material-checkbox > input:active {
    opacity: 1;
    transform: scale(0);
    transition: transform 0s, opacity 0s;
}

.pure-material-checkbox > input:active + span::before {
    border-color: rgb(var(--pure-material-primary-rgb, 33, 150, 243));
}

.pure-material-checkbox > input:checked:active + span::before {
    border-color: transparent;
    background-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.6);
}

/* Disabled */
.pure-material-checkbox > input:disabled {
    opacity: 0;
}

.pure-material-checkbox > input:disabled + span {
    color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.38);
    cursor: initial;
}

.pure-material-checkbox > input:disabled + span::before {
    border-color: currentColor;
}

.pure-material-checkbox > input:checked:disabled + span::before,
.pure-material-checkbox > input:indeterminate:disabled + span::before {
    border-color: transparent;
    background-color: currentColor;
}

.pure-material-button-contained {
    position: relative;
    display: inline-block;
    box-sizing: border-box;
    border: none;
    border-radius: 4px;
    padding: 0 16px;
    min-width: 64px;
    height: 36px;
    vertical-align: middle;
    text-align: center;
    text-overflow: ellipsis;
    text-transform: uppercase;
    box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
    font-family: var(--pure-material-font, "Roboto", "Segoe UI", BlinkMacSystemFont, system-ui, -apple-system);
    font-size: 14px;
    font-weight: 500;
    line-height: 36px;
    overflow: hidden;
    outline: none;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.pure-material-button-contained.primary{
    color: rgb(var(--pure-material-onprimary-rgb, 255, 255, 255));
    background-color: rgb(var(--pure-material-primary-rgb, 98, 0, 238));
}

.pure-material-button-contained.secondary{
    color: rgb(var(--pure-material-onsecondary-rgb, 255, 255, 255));
    background-color: rgb(var(--pure-material-secondary-rgb, 3, 218, 198));
}

.pure-material-button-contained::-moz-focus-inner {
    border: none;
}

/* Overlay */
.pure-material-button-contained::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgb(var(--pure-material-onprimary-rgb, 255, 255, 255));
    opacity: 0;
    transition: opacity 0.2s;
}

/* Ripple */
.pure-material-button-contained::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    padding: 50%;
    width: 32px; /* Safari */
    height: 32px; /* Safari */
    background-color: rgb(var(--pure-material-onprimary-rgb, 255, 255, 255));
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
    transition: opacity 1s, transform 0.5s;
}

/* Hover, Focus */
.pure-material-button-contained:hover,
.pure-material-button-contained:focus {
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
}

.pure-material-button-contained:hover::before {
    opacity: 0.08;
}

.pure-material-button-contained:focus::before {
    opacity: 0.24;
}

.pure-material-button-contained:hover:focus::before {
    opacity: 0.3;
}

/* Active */
.pure-material-button-contained:active {
    box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);
}

.pure-material-button-contained:active::after {
    opacity: 0.32;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0s;
}

/* Disabled */
.pure-material-button-contained:disabled {
    color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.38);
    background-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.12);
    box-shadow: none;
    cursor: initial;
}

.pure-material-button-contained:disabled::before {
    opacity: 0;
}

.pure-material-button-contained:disabled::after {
    opacity: 0;
}