body {
    background-image: url('../img/bg.png');
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 100vh;
}

footer {
    width: 100%;
    height: 3rem;
}

.login-container {
    height: calc(100vh - 3rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-container {
    min-height: calc(100vh - 7rem);
    padding: 2rem 7rem;
}

.login-form {
    width: 27rem;
}

.login-title {
    font-size: 4.5rem;
    font-weight: 700;
}

/* Menu */
.bg-menu {
    display: none;
    position: fixed;

    width: 100%;
    height: 100vh;

    background-color: #3a3a3a73;

    top: 0rem;
    left: 0rem;

    z-index: 999;
}

.app-menu {
    display: none;

    position: fixed;
    min-width: 25rem;
    height: 100vh;
    z-index: 1000;

    overflow-y: scroll;

    top: 0rem;
    left: 0rem;

    animation: opening .5s;
}

/* Estilo da scrollbar */
*::-webkit-scrollbar {
    width: 6px;
}

*::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 10px;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

*::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

/* Header */
.app-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.app-nav a:not(:last-child) {
    margin-right: 2.2rem;
}

.app-nav .navbar-left,
.app-nav .navbar-right {
    display: flex;
    align-items: center;
}

.app-nav .navbar-left a,
.app-nav .navbar-right a {
    display: flex;
    align-items: center;
    color: #3a3a3a;
    text-decoration: none;
}

.app-nav .navbar-left i,
.app-nav .navbar-right i {
    font-size: 1.5rem;
    font-weight: 500;
}

.material-symbols-rounded {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 48
}

.content-left {
    width: 30%;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-between;

    margin-right: 3%;
}

.content-right {
    width: 70%;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.content-right div {
    flex: 1;
}

.content-right div:not(:last-child) {
    margin-bottom: 4.5%;
}

.chat-list div {
    margin: .3rem 0rem;
}

.recent-contacts {
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.list-contacts {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#connections-list {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    list-style: none;
}

#connections-list li {
    cursor: pointer;
}

#connections-list li:hover {
    background-color: #8080801e;
}

#chat-display {
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    overflow: hidden;
}

.chat-header {
    flex-shrink: 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
}

.message-input-container {
    display: flex;
}

#message-input {
    border: none;
    resize: none;
}

#message-input:focus {
    box-shadow: none;
}

/* Bolha de notificação */
.notification-bubble {
    display: none;
    align-items: center;
    justify-content: center;

    position: absolute;
    top: 0;
    right: 0;
    width: 1rem;
    height: 1rem;
    background-color: red;
    border-radius: 50%;
    border: 2px solid white;
    font-size: 10px;
    color: white;
    font-weight: bold;
}

.notification-bubble.show {
    display: block;
}

/* Container de mensagens */
.div-message {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

/* Cada mensagem */
.message-item {
    color: #626262;
    font-size: .85rem;
    display: flex;
    align-items: center;
    padding: .5rem;
    margin-bottom: .5rem;
    max-width: 75%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}


/* animations */
@keyframes opening {
    from {
        left: -100rem;
    }

    to {
        left: 0rem;
    }

}

.from-me {
    background: #d9d9d9;
    border-radius: .4em;
    margin-left: auto;
    position: relative;
}

.from-me:after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 0;
    height: 0;
    border: 9px solid transparent;
    border-left-color: #d9d9d9;
    border-right: 0;
    margin-top: -9px;
    margin-right: -8px;
}

.from-them {
    background: #f2f2f2;
    border-radius: .4em;
    position: relative;
    margin-right: auto;
}

.from-them:after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 0;
    border: 9px solid transparent;
    border-right-color: #f2f2f2;
    border-left: 0;
    margin-top: -9px;
    margin-left: -8px;
}

.timestamp {
    margin-left: .5rem;
    font-size: 0.65rem;
    color: #888;
}


/* Buttons */
.btn-outline-gray {
    border: 1px solid lightgray;
}

/* BS Custom */
.accordion-header button {
    color: gray;
}

.accordion-item {
    border: none;
    border-bottom: 1px solid lightgray;
}

.accordion-button:not(.collapsed) {
    color: #000;
    background-color: #fff;
    font-weight: 500;
}

.accordion-body {
    padding: 2rem 1.5rem;
}

.accordion-button:focus {
    outline: none !important;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000000'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.table>:not(:last-child)>:last-child>* {
    border-bottom-color: lightgray;
}

.form-check-input:checked {
    background-color: #c96e06;
    border-color: #c96e06;
}

.form-switch .form-check-input:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='%23f7e3ce'/%3E%3C/svg%3E");

}

.form-check-input:focus {
    box-shadow: 0 0 0 .25rem rgba(253, 141, 13, 0.25);
}

.table-responsive {
    overflow: visible;
}

.ss-content .ss-list .ss-option:hover,
.ss-content .ss-list .ss-option.ss-highlighted,
.ss-content .ss-list .ss-option:not(.ss-disabled).ss-selected,
.ss-main .ss-values .ss-value {
    background-color: #c96e06 !important;
}

.ss-content .ss-search input:focus,
.ss-main:focus {
    box-shadow: 0 0 0 .25rem rgba(253, 141, 13, 0.25) !important;
}

.ss-main {
    min-height: 2.8rem !important;
    padding: .5rem !important;
}