@import url('main-layout.css');
@import url('views/container-field.css');
@import url('views/change-password.css');
@import url('views/button-layout.css');
@import url('views/board-view.css');
@import url('views/form-view.css');
@import url('views/master-detail-view.css');
@import url('views/tag-container.css');
@import url('views/record-view.css');
@import url('views/gridwith-filters-view.css');
@import url('views/login.css');


html {
    --lumo-line-height-m: 1.4;
    --lumo-line-height-s: 1.2;
    --lumo-line-height-xs: 1.1;
    --lumo-space-xl: 1.875rem;
    --lumo-space-l: 1.25rem;
    --lumo-space-m: 0.625rem;
    --lumo-space-s: 0.3125rem;
    --lumo-space-xs: 0.1875rem;
    --lumo-size-xl: 3rem;
    --lumo-size-l: 2.5rem;
    --lumo-size-m: 2rem;
    --lumo-size-s: 1.75rem;
    --lumo-size-xs: 1.5rem;

}

[theme~="dark"] {
    --lumo-shade-5pct: rgba(33, 33, 33, 0.05);
    --lumo-shade-10pct: rgba(33, 33, 33, 0.1);
    --lumo-shade-20pct: rgba(33, 33, 33, 0.2);
    --lumo-shade-30pct: rgba(33, 33, 33, 0.3);
    --lumo-shade-40pct: rgba(33, 33, 33, 0.4);
    --lumo-shade-50pct: rgba(33, 33, 33, 0.5);
    --lumo-shade-60pct: rgba(33, 33, 33, 0.6);
    --lumo-shade-70pct: rgba(33, 33, 33, 0.7);
    --lumo-shade-80pct: rgba(33, 33, 33, 0.8);
    --lumo-shade-90pct: rgba(33, 33, 33, 0.9);
    --lumo-primary-color-50pct: rgba(235, 89, 5, 0.5);
    --lumo-primary-color-10pct: rgba(235, 89, 5, 0.1);
    --lumo-error-color-50pct: rgba(231, 24, 24, 0.5);
    --lumo-error-color-10pct: rgba(231, 24, 24, 0.1);
    --lumo-success-color-50pct: rgba(62, 229, 170, 0.5);
    --lumo-success-color-10pct: rgba(62, 229, 170, 0.1);
    --lumo-shade: hsl(0, 0%, 13%);
    --lumo-primary-color: hsl(22, 96%, 47%);
    --lumo-primary-text-color: hsl(22, 100%, 42%);
    --lumo-error-color: hsl(0, 81%, 50%);
    --lumo-error-text-color: hsl(0, 86%, 45%);
    --lumo-success-color: hsl(159, 76%, 57%);
    --lumo-success-contrast-color: hsl(159, 29%, 10%);
    --lumo-success-text-color: hsl(159, 61%, 40%);

}


#app {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

#header {
    background-color: #4CAF50;
    color: white;
    text-align: center;
    padding: 15px;
}

#contact-list {
    width: 20%;
    background-color: #f1f1f1;
    padding: 5px;
    overflow-y: auto;
    margin-top: 10px;
}

#floating-button {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background-color: #25D366;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 30%;
    font-size: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.contact {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
}

.contact-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    margin-right: 10px;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-name {
    font-size: 14px;
    font-weight: bold;
    text-align: left;
}

.last-message {
    font-size: 12px;
    color: #777;
}

#chat-container {
    display: flex;
    flex: 1;
}

#chat {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#chat-header {
    background-color: #128C7E;
    color: white;
    text-align: center;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#contact-info {
    display: flex;
    align-items: center;
}

#contact-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    margin-right: 10px;
}

#contact-details {
    display: flex;
    flex-direction: column;
}

#contact-name {
    font-size: 16px;
    font-weight: bold;
    text-align: left;
}

#last-online {
    font-size: 12px;
    color: white;
    text-align: left;
}

#header-buttons {
    display: flex;
}

.search-button,
.config-button {
    background-color: #25D366;
    color: white;
    border: none;
    padding: 8px;
    margin-left: 5px;
    cursor: pointer;
    border-radius: 5px;
}

.config-button {
    margin-right: 5px;
}

#chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 8px;
    max-width: 70%;
    word-wrap: break-word;
    display: flex;
}

.sent {
    background-color: #25D366;
    color: white;
    align-self: flex-end;
    margin-left: auto;
    justify-content: flex-end;
}

.received {
    background-color: #f1f1f1;
    align-self: flex-start;
    margin-right: auto;
}

#message-input {
    display: flex;
    align-items: center;
    padding: 10px;
}

#message-input input {
    flex: 1;
    padding: 10px;
    margin-right: 5px;
    margin-left: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#message-input button {
    background-color: #25D366;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
}

#message-input button:hover {
    background-color: #128C7E;
}
