/*
 * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
 * See LICENSE in the project root for license information.
 */

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.taskpane-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sideload-msg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.app-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.taskpane-header {
    flex-shrink: 0;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.taskpane-header h1 {
    margin: 0;
    font-weight: 600;
}

.chat-iframe {
    flex: 1;
    width: 100%;
    min-height: 0;
    border: none;
    display: block;
}

.loader-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loader-overlay.visible {
    display: flex;
}

.loader-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e0e0e0;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loader-text {
    margin-top: 12px;
    font-size: 14px;
    color: #fff;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
