﻿/* -------------------------------------------------
 *  ui.css – UI で使用するスタイルをまとめたファイル
 * ------------------------------------------------- */

/* 1️⃣ スピナー（「Loading」中に表示） */
.loading {
    position: relative;
    min-height: 2rem;               /* バブルの最低高さを確保 */
}
.loading .spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-left: 0.4rem;
    border: 2px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 2️⃣ セッション一覧オーバーレイの「閉じる」ボタン */
.session-overlay .close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    line-height: 24px;
    font-size: 20px;
    font-weight: bold;
    color: #555;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}
.session-overlay .close-btn:hover {
    color: #e00;
    background: rgba(0,0,0,0.05);
}

/* 3️⃣ 右クリックメニュー（Markdown 保存 / コピー） */
.context-menu {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    padding: 5px;
    z-index: 1000;
}
.context-menu div {
    cursor: pointer;
    user-select: none;
    padding: 2px 4px;
}
.context-menu div:hover {
    background-color: #f0f0f0;
}
