/* historySidebar.css - 歷史紀錄側欄專用樣式 */
.history-sidebar {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background: #232323;
    color: #fff;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.4);
    z-index: 2000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.history-sidebar.open {
    right: 0;
}
.history-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em;
    border-bottom: 1px solid #444;
    font-size: 1.1em;
    background: #1e1e1e;
}
#close-history-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
}
.history-list {
    list-style: none;
    margin: 0;
    padding: 1em;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}
.history-list::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Webkit */
}
.history-list li {
    padding: 0.7em 0.5em;
    border-bottom: 1px solid #333;
    font-size: 1em;
    display: flex;
    flex-direction: column;
    gap: 0.2em;
    transition: background 0.18s, color 0.18s;
    cursor: pointer;
}
.history-list li:hover {
    background: #413f3fc7;
    color: #fffbe0;
}
.history-list li:last-child {
    border-bottom: none;
}
.history-type-monster {
    color: #ffcc00;
    font-weight: bold;
}
.history-type-item {
    color: #42aaff;
    font-weight: bold;
}
.history-timestamp {
    font-size: 0.85em;
    color: #aaa;
}
#clear-history-btn {
    padding: 0.2em 0.7em;
    border-radius: 5px;
    border: 1px solid #ff6666;
    background: #2a2a2a;
    color: #ff6666;
    cursor: pointer;
    font-size: 1em;
}
#history-btn {
    padding: 0.2em 0.5em;
    border-radius: 5px;
    border: 1px solid #42aaff;
    background: #222;
    color: #42aaff;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.18s, color 0.18s, border 0.18s;
}
#history-btn.active {
    background: #42aaff;
    color: #222;
    border: 1.5px solid #42aaff;
    font-weight: bold;
}
