html, body {
    height: 100%;
}

.xaf-ai-chat {
    width: 100%;
    height: 100%;
    min-height: 0;
}

.ai-chat-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100000;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background-color: var(--bs-primary, #0d6efd);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.ai-chat-fab:hover {
    filter: brightness(1.08);
}

.ai-chat-panel {
    position: fixed;
    bottom: 92px;
    right: 24px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    width: 400px;
    height: 560px;
    background: var(--bs-body-bg, #fff);
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.ai-chat-panel-closed {
    visibility: hidden;
    pointer-events: none;
}

.ai-chat-panel-open {
    visibility: visible;
    pointer-events: auto;
}

.ai-chat-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    padding: 10px 12px;
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
    background: var(--bs-tertiary-bg, #f8f9fa);
}

.ai-chat-panel-title {
    font-weight: 600;
}

.ai-chat-panel-close {
    border: none;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    color: inherit;
}

.ai-chat-panel-body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

app {
    display: block;
    height: 100%;
}

.header-logo {
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: url('../images/Logo.svg') center / contain no-repeat;
    mask: url('../images/Logo.svg') center / contain no-repeat;
    width: 98px;
    height: 24px;
}

#blazor-error-ui {
    background: inherit;
    bottom: 0;
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 100001;
}

.theme-settings .settings-bar .themes-fluent-header:has(+ .themeswitcher-custom-color),
.theme-settings .settings-bar .themeswitcher-custom-color {
    display: none !important;
}

.xaf-loading-content img,
img[src*="SplashScreen.svg"] {
    height: 30px !important;
    max-height: none !important;
    width: auto !important;
}
