/* Da Capo SNS - スタイルシート */
/* Aipo風：ライトオレンジを基調とした温かみのあるデザイン */

:root {
    /* Primary（メインカラー：オレンジ系） */
    --primary-color: #f5a623;
    --primary-hover: #e09000;
    --primary-light: #fff3e0;

    /* Semantic Colors */
    --success-color: #66bb6a;
    --danger-color: #ef5350;
    --warning-color: #ffca28;
    --info-color: #42a5f5;

    /* 背景 */
    --bg-light: #fffaf5;
    --bg-dark: #1a1512;

    /* テキスト */
    --text-light: #3d3d3d;
    --text-dark: #f5f0eb;

    /* カード背景 */
    --card-bg-light: #ffffff;
    --card-bg-dark: #2d2520;

    /* ボーダー */
    --border-light: #f0e6dc;
    --border-dark: #4a3f35;

    /* アクセント */
    --accent-warm: #ffcc80;
}

/* ライトモード */
[data-bs-theme="light"] {
    --bg-color: var(--bg-light);
    --text-color: var(--text-light);
    --card-bg: var(--card-bg-light);
    --border-color: var(--border-light);
}

/* ダークモード */
[data-bs-theme="dark"] {
    --bg-color: var(--bg-dark);
    --text-color: var(--text-dark);
    --card-bg: var(--card-bg-dark);
    --border-color: var(--border-dark);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

/* ナビゲーション */
.navbar {
    background-color: var(--primary-color);
    border-bottom: none;
    box-shadow: 0 2px 8px rgba(245, 166, 35, 0.3);
}

.navbar-brand {
    color: white !important;
    font-weight: 600;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* カード */
.card-like {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s, border-color 0.2s, box-shadow 0.2s;
}

.card-like:hover {
    box-shadow: 0 4px 16px rgba(245, 166, 35, 0.15);
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: background-color 0.3s, border-color 0.2s;
}

.card-header {
    background-color: rgba(245, 166, 35, 0.1);
    border-bottom: 1px solid var(--border-color);
}

/* ボタン */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(245, 166, 35, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 4px 8px rgba(245, 166, 35, 0.4);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* フォーム */
.form-control,
.form-select {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
    border-radius: 10px;
    transition: background-color 0.3s, border-color 0.2s;
}

.form-control:focus,
.form-select:focus {
    background-color: var(--card-bg);
    border-color: var(--primary-color);
    color: var(--text-color);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.2);
}

/* タイムライン投稿 */
.timeline-post {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: background-color 0.3s, border-color 0.2s, box-shadow 0.2s;
}

.timeline-post:hover {
    box-shadow: 0 4px 16px rgba(245, 166, 35, 0.12);
    border-color: var(--accent-warm);
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.post-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    margin-right: 0.75rem;
    box-shadow: 0 2px 6px rgba(245, 166, 35, 0.3);
}

.post-meta {
    flex: 1;
}

.post-author {
    font-weight: 600;
    margin-bottom: 0;
    color: var(--text-color);
}

.post-time {
    font-size: 0.85rem;
    color: #9e9e9e;
}

.post-content {
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.post-actions {
    display: flex;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.post-action-btn {
    background: none;
    border: none;
    color: #9e9e9e;
    cursor: pointer;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    transition: all 0.2s;
}

.post-action-btn:hover {
    color: var(--primary-color);
    background-color: var(--primary-light);
}

.post-action-btn.liked {
    color: var(--danger-color);
}

/* 添付ファイル */
.attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.attachment-item {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: rgba(245, 166, 35, 0.1);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--primary-hover);
    text-decoration: none;
    transition: all 0.2s;
}

.attachment-item:hover {
    background-color: rgba(245, 166, 35, 0.2);
    color: var(--primary-hover);
}

.attachment-item i {
    margin-right: 0.375rem;
}

.attachment-preview {
    max-width: 200px;
    max-height: 150px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* メッセージ */
.message-list {
    max-height: calc(100vh - 350px);
    overflow-y: auto;
    padding: 1rem;
    background-color: var(--bg-color);
}

.message-item {
    display: flex;
    margin-bottom: 1rem;
}

.message-item.own {
    flex-direction: row-reverse;
}

.message-bubble {
    max-width: 70%;
    padding: 0.875rem 1.25rem;
    border-radius: 18px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

.message-item.own .message-bubble {
    background-color: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(245, 166, 35, 0.3);
}

.message-sender {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.message-time {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

.message-item.own .message-time {
    color: rgba(255, 255, 255, 0.8);
}

/* ルームリスト */
.room-list-item {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.2s;
}

.room-list-item:hover {
    background-color: rgba(245, 166, 35, 0.05);
    color: var(--text-color);
}

.room-list-item:last-child {
    border-bottom: none;
}

/* コメント */
.comment-item {
    background-color: rgba(245, 166, 35, 0.05);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

[data-bs-theme="dark"] .comment-item {
    background-color: rgba(245, 166, 35, 0.08);
}

/* ログインページ */
.login-container {
    max-width: 400px;
    margin: 2rem auto;
}

.login-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(245, 166, 35, 0.15);
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo i {
    font-size: 3.5rem;
    color: var(--primary-color);
}

.login-logo h1 {
    font-size: 1.75rem;
    margin-top: 0.75rem;
    color: var(--text-color);
    font-weight: 600;
}

/* テーブル */
.table {
    color: var(--text-color);
}

.table thead th {
    background-color: rgba(245, 166, 35, 0.1);
    border-color: var(--border-color);
    font-weight: 600;
}

.table td,
.table th {
    border-color: var(--border-color);
    vertical-align: middle;
}

/* ドロップダウン */
.dropdown-menu {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    color: var(--text-color);
    border-radius: 8px;
    margin: 0.125rem 0.25rem;
}

.dropdown-item:hover {
    background-color: rgba(245, 166, 35, 0.15);
    color: var(--primary-hover);
}

/* アラート */
.alert {
    border-radius: 12px;
    border: none;
}

.alert-success {
    background-color: rgba(102, 187, 106, 0.15);
    color: #2e7d32;
}

.alert-danger {
    background-color: rgba(239, 83, 80, 0.15);
    color: #c62828;
}

.alert-warning {
    background-color: rgba(255, 202, 40, 0.15);
    color: #f57c00;
}

.alert-info {
    background-color: rgba(66, 165, 245, 0.15);
    color: #1565c0;
}

/* ページネーション */
.pagination {
    gap: 0.25rem;
}

.page-link {
    border-radius: 10px !important;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    background-color: var(--card-bg);
    padding: 0.5rem 0.875rem;
    transition: all 0.2s;
}

.page-link:hover {
    background-color: rgba(245, 166, 35, 0.15);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.page-item.disabled .page-link {
    background-color: var(--card-bg);
    opacity: 0.5;
}

/* バッジ */
.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

.badge.bg-success {
    background-color: var(--success-color) !important;
}

/* フォーカス */
:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.25);
}

/* ユーティリティ */
.text-muted {
    color: #9e9e9e !important;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

/* レスポンシブ */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .timeline-post {
        padding: 1rem;
        border-radius: 12px;
    }

    .message-bubble {
        max-width: 85%;
    }

    .login-card {
        padding: 1.5rem;
        margin: 1rem;
    }
}

/* スクロールバー（Chrome/Edge） */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-warm);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ボタングループ */
.btn-group .btn {
    border-radius: 8px !important;
}

.btn-group .btn:not(:last-child) {
    margin-right: 2px;
}

/* フォームチェック */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.25);
    border-color: var(--primary-color);
}

/* 検索ハイライト */
.search-highlight {
    background-color: #fff176;
    color: #333;
    padding: 0.1em 0.2em;
    border-radius: 3px;
    font-weight: 500;
}

[data-bs-theme="dark"] .search-highlight {
    background-color: #ffa000;
    color: #1a1512;
}

/* Bootstrapデフォルトの青色をオレンジに上書き */
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-primary:first-child:active {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.35) !important;
}

.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active,
.btn-outline-primary:first-child:active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.35) !important;
}

.btn-check:checked + .btn-outline-primary,
.btn-check:active + .btn-outline-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.page-link:focus,
.page-link:active {
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.35) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color);
    background-color: rgba(245, 166, 35, 0.1);
}

.page-item.active .page-link:focus {
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.35) !important;
}

/* リンクのフォーカス */
a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.25);
    border-radius: 4px;
}

/* 全般的なボタンフォーカス */
.btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.35) !important;
}

/* フォームのセレクト */
.form-select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.2) !important;
}

/* いいねツールチップ */
.like-wrapper {
    position: relative;
    display: inline-block;
}

.like-tooltip {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 8px 12px;
    background-color: rgba(50, 50, 50, 0.95);
    color: white;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    max-width: 200px;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.like-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(50, 50, 50, 0.95);
}

.like-wrapper:hover .like-tooltip {
    display: block;
}

.like-tooltip-content {
    max-height: 120px;
    overflow-y: auto;
}

.like-tooltip-empty {
    color: #aaa;
    font-style: italic;
}

/* コメントアクション */
.comment-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

/* URLリンク */
.text-link {
    color: var(--primary-color);
    text-decoration: none;
    word-break: break-all;
}

.text-link:hover {
    text-decoration: underline;
    color: var(--primary-hover);
}

/* OGPカード */
.ogp-card-container {
    margin-top: 0.75rem;
}

.ogp-card-loading {
    color: #9e9e9e;
    font-size: 0.85rem;
    padding: 0.5rem;
}

.ogp-card {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--card-bg);
    transition: box-shadow 0.2s, border-color 0.2s;
    max-width: 500px;
}

.ogp-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
    color: var(--text-color);
}

.ogp-card-image {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.ogp-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ogp-card-content {
    flex: 1;
    padding: 0.75rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ogp-card-title {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.ogp-card-description {
    font-size: 0.8rem;
    color: #9e9e9e;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.ogp-card-site {
    font-size: 0.75rem;
    color: #9e9e9e;
}

/* 画像サムネイル */
.image-thumbnail {
    max-width: 200px;
    max-height: 150px;
    border-radius: 12px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-thumbnail:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ライトボックス */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 1;
}

/* ファイルプレビューカード */
.file-preview-card {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--card-bg);
    text-decoration: none;
    color: var(--text-color);
    transition: box-shadow 0.2s, border-color 0.2s;
    max-width: 300px;
}

.file-preview-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
    color: var(--text-color);
}

.file-preview-icon {
    font-size: 2rem;
    margin-right: 0.75rem;
    color: var(--primary-color);
}

.file-preview-icon.pdf { color: #e53935; }
.file-preview-icon.word { color: #2196f3; }
.file-preview-icon.excel { color: #4caf50; }
.file-preview-icon.ppt { color: #ff9800; }

.file-preview-info {
    flex: 1;
    min-width: 0;
}

.file-preview-name {
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-preview-type {
    font-size: 0.75rem;
    color: #9e9e9e;
}

/* ドラッグ&ドロップエリア */
.dropzone {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s;
    background-color: rgba(245, 166, 35, 0.02);
    cursor: pointer;
}

.dropzone:hover {
    border-color: var(--primary-color);
    background-color: rgba(245, 166, 35, 0.05);
}

.dropzone-dragover {
    border-color: var(--primary-color);
    background-color: rgba(245, 166, 35, 0.1);
    border-style: solid;
}

.dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.dropzone-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.7;
}

.dropzone-text {
    font-size: 0.95rem;
    color: var(--text-color);
    margin: 0;
}

.dropzone-subtext {
    font-size: 0.8rem;
    color: #9e9e9e;
    margin: 0;
}

/* コンパクトなドロップゾーン（コメント用） */
.dropzone-compact {
    padding: 0.75rem 1rem;
}

.dropzone-compact .dropzone-content {
    flex-direction: row;
    gap: 0.75rem;
}

.dropzone-compact .dropzone-icon {
    font-size: 1.5rem;
}

.dropzone-text-inline {
    font-size: 0.85rem;
    color: #9e9e9e;
}

/* ファイルプレビューリスト */
.file-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.file-preview-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    max-width: 250px;
    position: relative;
}

.file-preview-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
}

.file-preview-icon-wrapper {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(245, 166, 35, 0.1);
    border-radius: 6px;
}

.file-preview-icon-wrapper i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.file-preview-icon-wrapper i.fa-file-pdf { color: #e53935; }
.file-preview-icon-wrapper i.fa-file-word { color: #2196f3; }
.file-preview-icon-wrapper i.fa-file-excel { color: #4caf50; }
.file-preview-icon-wrapper i.fa-file-powerpoint { color: #ff9800; }

.file-preview-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.file-preview-name {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-preview-size {
    font-size: 0.75rem;
    color: #9e9e9e;
}

.file-preview-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--danger-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.file-preview-item:hover .file-preview-remove {
    opacity: 1;
}

.file-preview-remove:hover {
    background-color: #c62828;
}

/* AIコメント関連 */
.ai-comment {
    background-color: rgba(76, 175, 80, 0.08);
    border-left: 3px solid #4caf50;
}

.ai-comment.ai-critical {
    background-color: rgba(255, 152, 0, 0.08);
    border-left: 3px solid #ff9800;
}

[data-bs-theme="dark"] .ai-comment {
    background-color: rgba(76, 175, 80, 0.12);
}

[data-bs-theme="dark"] .ai-comment.ai-critical {
    background-color: rgba(255, 152, 0, 0.12);
}

.ai-avatar {
    background-color: #4caf50 !important;
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-critical .ai-avatar {
    background-color: #ff9800 !important;
}

.ai-badge {
    display: inline-block;
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    background-color: #4caf50;
    color: white;
    margin-left: 0.5rem;
    vertical-align: middle;
    font-weight: 500;
}

.ai-badge-critical {
    background-color: #ff9800;
}

.ai-actions {
    display: flex;
    gap: 0.5rem;
}

.ai-comment-btn {
    font-size: 0.8rem;
    transition: all 0.2s;
}

.ai-comment-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-outline-success.ai-comment-btn {
    color: #4caf50;
    border-color: #4caf50;
}

.btn-outline-success.ai-comment-btn:hover:not(:disabled) {
    background-color: #4caf50;
    color: white;
}

.btn-outline-warning.ai-comment-btn {
    color: #ff9800;
    border-color: #ff9800;
}

.btn-outline-warning.ai-comment-btn:hover:not(:disabled) {
    background-color: #ff9800;
    color: white;
}

/* 通知バッジ */
.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    background-color: #f44336;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(25%, -25%);
}

/* 通知一覧 */
.notification-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s;
    position: relative;
}

.notification-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    color: var(--text-color);
}

.notification-item.unread {
    background-color: rgba(245, 166, 35, 0.05);
    border-color: var(--primary-color);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-message {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.notification-time {
    font-size: 0.8rem;
    color: #9e9e9e;
}

.notification-unread-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
    flex-shrink: 0;
}

/* レスポンシブ対応 */
@media (max-width: 576px) {
    .ogp-card {
        flex-direction: column;
    }

    .ogp-card-image {
        width: 100%;
        height: 150px;
    }

    .image-thumbnail {
        max-width: 150px;
        max-height: 100px;
    }

    .dropzone-compact .dropzone-content {
        flex-direction: column;
    }

    .dropzone-text-inline {
        display: none;
    }

    .ai-actions {
        flex-direction: column;
        gap: 0.25rem;
    }

    .ai-comment-btn {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }

    .notification-item {
        padding: 0.75rem;
    }

    .notification-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .notification-message {
        font-size: 0.9rem;
    }
}
