/* --- サイドバー（オーバーレイ形式） --- */
#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#sidebar.open {
    transform: translateX(0);
}

/* --- 背景オーバーレイ --- */
#sidebar-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- メニューデザイン --- */
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: #64748b;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-item:hover {
    background-color: #f8fafc;
    color: #334155;
}

.nav-item.active {
    background-color: #eef2ff;
    color: #4f46e5;
}

/* --- テーブル横スクロール・改行禁止 --- */
#history-list td,
thead th {
    white-space: nowrap !important;
}

.custom-scrollbar::-webkit-scrollbar {
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}