/* IMBA (Infinity Market Brain AI) カスタムスタイル */

/* カードのホバーエフェクト */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* レスポンス表示エリアのスタイル */
#response-area pre {
    font-size: 0.875rem;
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 400px;
    overflow-y: auto;
}

/* ルーティングヒントのスタイル */
#routing-hint {
    font-weight: 500;
    transition: color 0.3s ease;
}

/* バッジのスタイル調整 */
.badge {
    font-size: 0.75rem;
}

/* アイコンのスタイル調整 */
[data-feather] {
    vertical-align: middle;
}

/* ボタンのホバーエフェクト */
.btn {
    transition: all 0.2s ease-in-out;
}

/* ステータス表示の色調整 */
.text-success {
    color: var(--bs-success) !important;
}

.text-danger {
    color: var(--bs-danger) !important;
}

.text-info {
    color: var(--bs-info) !important;
}

.text-warning {
    color: var(--bs-warning) !important;
}

/* フォームコントロールのフォーカス効果 */
.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    #prompt-input {
        font-size: 1rem;
    }
}

/* ローディング用のアニメーション */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* コードブロックのスタイル改善 */
pre {
    background-color: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
    padding: 1rem;
}

/* ヘッダーのスタイル調整 */
header {
    margin-bottom: 3rem;
}

header .display-4 {
    font-weight: 600;
    color: var(--bs-body-color);
}

/* フッターのスタイル */
footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--bs-border-color);
}

/* カード内のアイコンサイズ統一 */
.card-body i[data-feather] {
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.5rem;
}

/* 小さなアイコンのサイズ調整 */
.btn i[data-feather],
.card-title i[data-feather] {
    width: 1rem;
    height: 1rem;
}
