/* History Detail View Styles */
#historyDetailPanel {
    display: none;
    position: fixed;
    top: 25%;
    width: 90%;
    max-width: 380px;
    height: 70vh;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 20px;
    z-index: 1005;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    flex-direction: column;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.history-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

#historyList {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-item {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    color: #444;
    font-size: 16px;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.05);
}

.history-item:active {
    background: rgba(0, 0, 0, 0.05);
}

.history-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #888;
}

/* Make stats cards look clickable */
.stat-card.clickable {
    cursor: pointer;
}

.stat-card.clickable:active {
    background: #f0f1f2;
}
