html, body {
    height: 100%;
}

app {
    display: block;
    height: 100%;
}

.header-logo {
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: url('../images/Logo.svg');
    mask: url('../images/Logo.svg');
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    width: 28px;
    height: 24px;
}

#blazor-error-ui {
    background: inherit;
    bottom: 0;
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 100001;
}

/* ========================================
   Chat System Styles
   WhatsApp-inspired chat UI
   ======================================== */

.chat-window {
    background: #f0f2f5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.chat-sidebar {
    background: #fff;
    overflow-y: auto;
}

.chat-main {
    background: #efeae2;
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h200v200H0z' fill='%23efeae2'/%3E%3Ccircle cx='20' cy='20' r='1.5' fill='%23d4cfc5' opacity='0.5'/%3E%3Ccircle cx='60' cy='40' r='1' fill='%23d4cfc5' opacity='0.3'/%3E%3Ccircle cx='120' cy='80' r='1.5' fill='%23d4cfc5' opacity='0.4'/%3E%3Ccircle cx='180' cy='20' r='1' fill='%23d4cfc5' opacity='0.3'/%3E%3Ccircle cx='40' cy='140' r='1.5' fill='%23d4cfc5' opacity='0.5'/%3E%3Ccircle cx='160' cy='160' r='1' fill='%23d4cfc5' opacity='0.3'/%3E%3C/svg%3E");
}

.conversation-item:hover {
    background-color: #f5f5f5;
}

.chat-bubble-mine {
    background: #d9fdd3;
    color: #111b21;
}

.chat-bubble-other {
    background: #fff;
    color: #111b21;
    box-shadow: 0 1px 0.5px rgba(11,20,26,0.13);
}

.chat-header {
    background: #f0f2f5;
}

.chat-input-area {
    background: #f0f2f5;
}

.chat-input-area textarea {
    border-radius: 20px;
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    background: #fff;
}

.chat-input-area textarea:focus {
    border-color: #00a884;
    box-shadow: 0 0 0 0.15rem rgba(0, 168, 132, 0.15);
}

.chat-input-area .btn-primary {
    border-radius: 50%;
    width: 42px;
    height: 42px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #00a884;
    border-color: #00a884;
}

.chat-input-area .btn-primary:hover {
    background-color: #008f72;
    border-color: #008f72;
}

.chat-avatar {
    font-weight: 600;
}