/* Chainlit ウォーターマーク — ロゴ非表示 & リンク無効化 */
a[href="https://github.com/Chainlit/chainlit"] img,
a[href="https://github.com/Chainlit/chainlit"] svg {
    display: none !important;
}

a[href="https://github.com/Chainlit/chainlit"] {
    pointer-events: none !important;
    cursor: default !important;
}

/* ---- 思考中インジケーター ---- */

@keyframes thinking-fade {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

/* 「思考中...」テキスト */
.thinking-indicator {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    padding: 2px 0;
}

.thinking-indicator .thinking-dots span {
    display: inline-block;
    animation: thinking-fade 1.4s infinite both;
}

.thinking-indicator .thinking-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.thinking-indicator .thinking-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

/* ---- サイドバーリンクカード ---- */

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    border-top: 1px solid hsl(var(--border));
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.8125rem;
    color: hsl(var(--foreground));
    text-decoration: none;
    transition: background-color 0.15s;
}

.sidebar-link:hover {
    background-color: hsl(var(--sidebar-accent));
}

.sidebar-link-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: hsl(var(--muted-foreground));
}

.sidebar-link-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-link-external {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: hsl(var(--muted-foreground));
    opacity: 0.6;
}

/* ダークモード: invertOnDark 指定のアイコンのみ反転 */
.dark .sidebar-link-img--invert {
    filter: invert(1);
}

/* ファイル添付クリップアイコン */
#upload-button {
    color: #e29446 !important;
}

/* Starter アイコン: テキスト色に合わせる */
.welcome-screen button img {
    opacity: 0.45;
}

.dark .welcome-screen button img {
    filter: invert(1);
    opacity: 0.7;
}
