/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 9px;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 5px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #fff;
}

main {
    padding: 20px;
}

.history-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #181818;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 8px;

    max-height: 80vh;
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-gutter: stable; /* Keeps space for scrollbar, reduces layout shift */
}

.histtitle {
    color: #555;
    margin-bottom: 20px;
    text-shadow: none;
}

#history-list {
    list-style-type: none;
    padding: 0;
}

#history-list li {
    padding: 10px;
    margin: 10px 0;
    background: #000;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 1s;
}

#history-list li:hover {
    color: #fff;
    transform: scale(1.03);
}

#history-list li a {
    text-shadow: none;
    text-decoration: none;
    color: #0066cc;
    font-weight: bold;
}

#history-list li a:hover {
    color: #fff;
}

#history-list li span {
    font-size: 0.85em;
    color: #fff;
}

.clear-btn {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #cc0000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.clear-btn:hover {
    background-color: #990000;
}
