/* ===== カスタムカラースキーム ===== */
:root {
    /* プライマリカラー: 落ち着いたネイビーブルー */
    --primary-color: #2c3e50;
    --primary-light: #34495e;
    --primary-dark: #1a252f;

    /* アクセントカラー: 信頼感のあるブルー */
    --accent-color: #3498db;
    --accent-light: #5dade2;
    --accent-dark: #2980b9;

    /* セカンダリカラー: グレートーン */
    --secondary-color: #7f8c8d;
    --secondary-light: #95a5a6;
    --secondary-dark: #6c7a7b;

    /* 背景色 */
    --bg-primary: #f8f9fa;
    --bg-secondary: #ecf0f1;
    --bg-card: #ffffff;

    /* テキストカラー */
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --text-light: #95a5a6;

    /* ボーダー */
    --border-color: #dee2e6;
    --border-light: #e9ecef;

    /* ステータスカラー */
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #3498db;

    /* シャドウ */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
}

html {
    font-size: 14px;
    height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 15px;
    }
}

body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
}

/* ===== ナビゲーションバー ===== */
.navbar-custom {
    background-color: var(--primary-color);
    padding: 0.75rem 0;
    box-shadow: var(--shadow-md);
    margin-bottom: 0;
}

.navbar-custom .navbar-brand {
    color: white;
    font-weight: 600;
    font-size: 1.3rem;
    transition: all 0.2s ease;
}

.navbar-custom .navbar-brand:hover {
    color: var(--accent-light);
    transform: translateY(-1px);
}

.navbar-custom .navbar-brand i {
    margin-right: 0.5rem;
}

.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.navbar-custom .nav-link:hover {
    color: white;
    background-color: var(--primary-light);
}

.navbar-custom .nav-link.active {
    color: white;
    background-color: var(--accent-color);
}

.navbar-custom .user-info {
    color: var(--accent-light);
    font-weight: 500;
}

.navbar-custom .btn-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.navbar-custom .btn-link:hover {
    color: white;
    background-color: var(--danger-color);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.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(255, 255, 255, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== フッター ===== */
.footer-custom {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 1.5rem 0;
    margin-top: 3rem;
    border-top: 3px solid var(--accent-color);
    font-size: 0.9rem;
}

/* ===== メインコンテンツエリア ===== */
main.pb-3 {
    padding-top: 1.5rem;
    padding-bottom: 1rem !important;
}

/* ===== ページタイトル ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-color);
    font-weight: 600;
}

.page-title {
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* ===== カード共通スタイル ===== */
.card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    background-color: var(--bg-card);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    border-bottom: none;
    padding: 1rem 1.25rem;
    font-weight: 500;
    border-radius: 8px 8px 0 0 !important;
}

.card-header h5,
.card-header h6 {
    margin: 0;
    font-weight: 500;
    color: white;
}

/* ===== メールアプリケーションレイアウト ===== */
.mail-app-container {
    height: calc(100vh - 120px);
    min-height: 600px;
    padding: 0 1rem;
}

.mail-app-layout {
    display: flex;
    gap: 1rem;
    height: 100%;
}

/* 左サイドバー: メール一覧 */
.mail-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.mail-sidebar .card {
    display: flex;
    flex-direction: column;
}

.mail-sidebar .card-body {
    overflow-y: auto;
    flex: 1;
}

/* メール一覧 */
.mail-list {
    display: flex;
    flex-direction: column;
}

.mail-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mail-item:hover {
    background-color: var(--bg-secondary);
}

.mail-item.active {
    background-color: var(--accent-color);
    color: white;
}

.mail-item-with-icon {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mail-unread-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: transparent;
    flex-shrink: 0;
}

.mail-unread-indicator.unread {
    background-color: var(--accent-color);
}

.mail-item-content {
    flex: 1;
    min-width: 0;
}

.mail-item-content.unread .mail-item-title,
.mail-item-content.unread .mail-item-info {
    font-weight: bold;
}

.mail-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.mail-item-title {
    font-weight: 600;
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mail-item-date {
    font-size: 0.85rem;
    opacity: 0.7;
    white-space: nowrap;
}

.mail-item-info {
    font-size: 0.9rem;
    opacity: 0.85;
}

.mail-item-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
}

/* メインコンテンツエリア */
.mail-main-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.mail-content-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    grid-template-rows: 1fr;
    gap: 1rem;
    height: 100%;
}

/* 既読状況セクションが表示されている場合 */
.mail-content-grid.with-read-status {
    grid-template-columns: 280px 1fr 320px;
}

/* ファイル一覧セクション */
.file-list-section {
    overflow: hidden;
    min-width: 200px;
    max-width: 600px;
    position: relative;
}

.file-list-section .card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.file-list-section .card-body {
    flex: 1;
    min-height: 0;
}

.file-actions-footer {
    flex-shrink: 0;
}

/* リサイズハンドル */
.resize-handle {
    position: absolute;
    right: 0;
    top: 0;
    width: 5px;
    height: 100%;
    cursor: ew-resize;
    background-color: transparent;
    transition: background-color 0.2s ease;
    z-index: 10;
}

.resize-handle:hover,
.resize-handle.resizing {
    background-color: var(--accent-color);
}

/* プレビューセクション */
.preview-section {
    overflow: hidden;
}

.preview-section .card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.preview-section .card-body {
    overflow: hidden;
    flex: 1;
}

/* 既読状況セクション */
.read-status-section {
    overflow: hidden;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.read-status-section .card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.read-status-section .card-body {
    overflow-y: auto;
    flex: 1;
}

/* ユーザーリスト */
.user-list {
    max-height: 100%;
    overflow-y: auto;
}

.user-item {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.user-item:last-child {
    border-bottom: none;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-department {
    font-size: 0.75rem;
    color: var(--text-light);
}

.user-timestamp {
    font-size: 0.7rem;
    color: var(--text-light);
    white-space: nowrap;
}

/* メール本文表示 */
.email-body-container {
    height: 100%;
    overflow-y: auto;
}

.email-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--background-light) !important;
    border-bottom: 2px solid var(--border-light);
}

.email-body-content {
    line-height: 1.6;
    color: var(--text-primary);
}

.email-body-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 0.5rem 0;
}

.email-body-content a {
    color: var(--accent-color);
    text-decoration: none;
}

.email-body-content a:hover {
    text-decoration: underline;
}

.email-body-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
}

.email-body-content table td,
.email-body-content table th {
    border: 1px solid var(--border-light);
    padding: 0.5rem;
}

/* 既読状況サマリー */
.read-status-summary {
    font-size: 0.9rem;
}

/* タブ（小サイズ） */
.nav-tabs-sm .nav-link {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

/* プレビューコンテンツの高さを一定に保つ */
#previewContent {
    height: 100%;
    overflow: auto;
}

/* レスポンシブ対応 */
@media (max-width: 1400px) {
    .mail-content-grid.with-read-status {
        grid-template-columns: 1fr 2fr 280px;
    }
}

@media (max-width: 1200px) {
    .mail-sidebar {
        width: 240px;
    }

    .mail-content-grid {
        grid-template-columns: 1fr 1.5fr;
    }

    .mail-content-grid.with-read-status {
        grid-template-columns: 1fr 1.5fr 260px;
    }
}

@media (max-width: 992px) {
    .mail-app-layout {
        flex-direction: column;
    }

    .mail-sidebar {
        width: 100%;
        height: 200px;
    }

    .mail-content-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .mail-content-grid.with-read-status {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
    }

    .read-status-section {
        max-height: 300px;
    }
}

/* ===== ファイルリストアイテム ===== */
.list-group-item {
    cursor: pointer;
    transition: all 0.2s ease;
    border-color: var(--border-light);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
}

.list-group-item:hover {
    background-color: var(--bg-secondary);
}

.list-group-item.active {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-dark) !important;
    color: white !important;
    box-shadow: var(--shadow-sm);
}

.list-group-item.unread {
    background-color: rgba(243, 156, 18, 0.05);
    border-left: 3px solid var(--warning-color);
}

.list-group-item.unread:hover {
    background-color: rgba(243, 156, 18, 0.1);
}

/* PDFプレビュー */
.pdf-preview-container {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.pdf-iframe {
    width: 100%;
    height: 100%;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

/* 縦横切り替えタブ */
.dual-pdf-preview {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dual-pdf-preview .nav-tabs {
    border-bottom: 2px solid var(--border-color);
    flex-shrink: 0;
}

.dual-pdf-preview .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    border: none;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.dual-pdf-preview .nav-link:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-light);
}

.dual-pdf-preview .nav-link.active {
    color: var(--accent-color);
    background-color: transparent;
    border-bottom-color: var(--accent-color);
}

.dual-pdf-preview .tab-content {
    padding-top: 10px;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dual-pdf-preview .tab-pane {
    height: 100%;
    flex: 1;
}

.dual-pdf-preview .pdf-preview-container {
    height: 100%;
}


/* 画像プレビュー */
.image-preview-container {
    height: 100%;
    overflow: auto;
    padding: 20px;
}

.image-preview-container img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

/* テキストプレビュー */
.text-preview-container {
    height: 100%;
    overflow: auto;
}

.text-preview {
    background-color: var(--bg-secondary);
    padding: 15px;
    border-radius: 6px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: var(--text-primary);
}

/* CSVプレビュー（テーブル） */
.csv-preview-container {
    height: 100%;
    overflow: auto;
}

.csv-preview-container table {
    font-size: 14px;
}

.csv-preview-container th {
    position: sticky;
    top: 0;
    background-color: var(--primary-color);
    color: white;
    z-index: 10;
    font-weight: 500;
    padding: 0.75rem;
}

.csv-preview-container td {
    white-space: nowrap;
    padding: 0.75rem;
}

.csv-preview-container tbody tr:hover {
    background-color: var(--bg-secondary);
}

/* プレースホルダー */
#previewPlaceholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 400px;
    color: var(--text-light);
}

/* ===== ローディング ===== */
#previewLoading,
#loadingFiles {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.spinner-border {
    border-color: var(--accent-light);
    border-right-color: transparent;
}

.spinner-border.text-primary {
    border-color: var(--accent-light);
    border-right-color: transparent;
}

/* レスポンシブ対応 */
@media (max-width: 767px) {
    .file-preview-container {
        height: auto;
    }

    .file-list-panel {
        margin-bottom: 20px;
    }

    .file-list-panel .card-body {
        max-height: 300px;
    }

    .preview-panel .card-body {
        max-height: 500px;
    }

    .pdf-preview-container,
    .image-preview-container,
    .text-preview-container,
    .csv-preview-container {
        max-height: 400px;
    }
}

/* ===== ボタン共通スタイル ===== */
.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    border: none;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn:active {
    transform: translateY(0);
}

.btn.active {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-dark);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-warning {
    background-color: var(--warning-color);
    color: white;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-light {
    background-color: white;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-light:hover {
    background-color: var(--bg-secondary);
}

/* ===== 既読機能のスタイル ===== */
.unread-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

#markAsReadBtn {
    font-size: 0.9rem;
    padding: 8px 18px;
    transition: all 0.3s ease;
}

#markAsReadBtn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

#readConfirmation {
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 更新ボタンのアニメーション */
.spin {
    animation: spin 0.5s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

#refreshFilesBtn {
    transition: all 0.2s ease;
}

#refreshFilesBtn:hover:not(:disabled) {
    transform: scale(1.1);
}

#refreshFilesBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 新しいファイル通知 */
#newFilesNotification {
    animation: pulse 1s ease-in-out infinite;
}

#newFilesNotification:hover {
    animation: none;
    opacity: 0.9;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* ===== バッジスタイル ===== */
.badge {
    padding: 0.35em 0.65em;
    font-weight: 500;
    border-radius: 4px;
}

/* ===== フォルダ表示のスタイル ===== */
.folder-item {
    border: none;
}

.folder-header {
    background-color: var(--bg-secondary);
    border: none;
    border-bottom: 1px solid var(--border-light);
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.folder-header:hover {
    background-color: #dce4ec;
}

.folder-children {
    background-color: var(--bg-card);
}

.file-item {
    border-left: none;
    border-bottom: 1px solid var(--border-light);
}

.file-item:last-child {
    border-bottom: none;
}

.caret-icon {
    transition: transform 0.2s ease;
    display: inline-block;
    vertical-align: middle;
    font-size: 0.8rem;
}

.folder-icon {
    vertical-align: middle;
    font-size: 1.1rem;
}

.file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
}

.file-info-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.file-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.file-size {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.85rem;
    color: var(--text-light);
}

.file-name.unread-file {
    font-weight: bold;
}

/* ダウンロードボタン */
.download-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.list-group-item:hover .download-btn {
    opacity: 1;
}

.download-btn:hover {
    transform: scale(1.1);
}

/* ===== フォーム要素 ===== */
.form-control,
.form-select {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.15);
}

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.input-group-text {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.input-group:focus-within .input-group-text {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* ===== アラート ===== */
.alert {
    border-radius: 6px;
    border: none;
    padding: 1rem 1.25rem;
}

.alert-success {
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
}

.alert-warning {
    background-color: rgba(243, 156, 18, 0.1);
    color: var(--warning-color);
}

.alert-danger {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
}

.alert-info {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--info-color);
}

/* ===== モーダル ===== */
.modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    background-color: var(--primary-color);
    color: white;
    border-radius: 8px 8px 0 0;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-footer {
    border-top: 1px solid var(--border-light);
}

/* ===== ログインページ ===== */
.login-card {
    box-shadow: var(--shadow-lg);
    border: none;
}

.login-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: var(--shadow-md);
}

.login-card h2 {
    color: var(--primary-color);
    font-weight: 600;
    border: none;
    padding: 0;
    margin-bottom: 0.5rem;
}

.login-card .input-group-text {
    background-color: var(--bg-secondary);
    border-right: none;
    color: var(--text-secondary);
}

.login-card .form-control {
    border-left: none;
}

.login-card .form-control:focus {
    border-color: var(--border-color);
    box-shadow: none;
}

.login-card .input-group:focus-within .input-group-text {
    border-color: var(--accent-color);
}

.login-card .input-group:focus-within .form-control {
    border-color: var(--accent-color);
}

/* ===== テーブル ===== */
.table {
    color: var(--text-primary);
}

.table thead th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    border: none;
    padding: 0.75rem;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--bg-secondary);
}

.table-hover tbody tr:hover {
    background-color: var(--accent-light);
    color: white;
    cursor: pointer;
}

/* ===== スクロールバー ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 5px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-dark);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) var(--bg-secondary);
}

/* ===== 追加のユーティリティスタイル ===== */
.gap-2 {
    gap: 0.5rem !important;
}

/* カードヘッダーの小サイズボタン */
.card-header .btn-sm {
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
}

/* バッジのスタイル微調整 */
.badge.bg-warning {
    background-color: var(--warning-color) !important;
}

.badge.bg-success {
    background-color: var(--success-color) !important;
}

.badge.bg-danger {
    background-color: var(--danger-color) !important;
}

.badge.bg-info {
    background-color: var(--info-color) !important;
}