/* タブ切り替え部分 */
.sidebar-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    background: #f0f0f0;
}

.tab-btn {
    flex: 1;
    padding: 8px 0;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover { background-color: #e0e0e0; }
.tab-btn.active {
    color: #007acc;
    font-weight: bold;
    border-bottom: 2px solid #007acc;
    background-color: #fff;
}

.tab-content {
    display: none;
    height: calc(100% - 35px); /* タブの高さを引く */
    overflow: hidden;
}

.tab-content.active {
    display: block;
}

/* 検索フォーム */
.search-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.search-form {
    flex-shrink: 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.search-input {
    width: 100%;
    padding: 6px;
    margin-bottom: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.search-options {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 11px;
}

.search-dates {
    display: flex;
    align-items: center;
    gap: 5px;
}

.date-input {
    width: 45%;
    font-size: 10px;
    padding: 2px;
}

/* 検索結果リスト */
.search-results-list {
    flex-grow: 1;
    overflow-y: auto;
}

.search-item {
    padding: 8px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}
.search-item:hover { background-color: #f5f5f5; }

.search-path {
    font-size: 10px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-name {
    font-size: 13px;
    font-weight: bold;
    color: #333;
    margin: 2px 0;
}

.search-snippet {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
}

/* ハイライト */
mark {
    background-color: #fff59d;
    padding: 0 2px;
    border-radius: 2px;
    color: #000;
}