html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background: #ffffff;
    /* background: linear-gradient(to bottom, #ffffff 92%, #eafbe6 97%, #1d9b36 100%);
    background: linear-gradient(to bottom, #fafafa, #fafafa, #1d9b364f), #ffffff; */
    color: #000000;
}


.word-category-scroll::-webkit-scrollbar {
    height: 12px;
    background: transparent;
    /* No background */
}

.word-category-scroll::-webkit-scrollbar-thumb {
    background: #000000;
    /* Solid black */
    border-radius: 6px;
    border: none;
}

.word-category-scroll::-webkit-scrollbar-thumb:hover {
    background: #5f5f5f;
    /* Slightly lighter black on hover */
}

/* Hide scrollbar arrows (buttons) */
.word-category-scroll::-webkit-scrollbar-button {
    width: 0;
    height: 0;
    display: block;
    background: transparent;
}

.word-category-scroll {
    scrollbar-width: thin;
    scrollbar-color: #000000 transparent;
    scroll-behavior: smooth;
}


.history__header {
    display: grid;
    grid-template-columns: 2.5fr 0.5fr 0.7fr 1.2fr 1.2fr 1.3fr;
    gap: 1.2rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid #e3e3e3;
    font-weight: 700;
    color: #2d4739;
    font-size: 1.05rem;
    margin-bottom: 0.7rem;
    position: sticky;
    top: 0;
    background: #f9fafb;
    z-index: 1;
}

.history__grid {
    width: 100%;
    position: relative;
    height: 78vh;
    overflow-y: auto;
}

.history__row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    align-items: center;
    background: #fff;
    border-radius: 1.25rem;
    margin-bottom: 1rem; /* Consistent spacing */
    padding: 1rem 0;
    box-shadow: rgba(0, 0, 0, 0.07) 2px 2px 8px 2px;
    border: 1px solid #e3e3e3;
    word-break: break-word;
    transition: box-shadow 0.2s;
    min-height: 64px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .history__header {
        grid-template-columns: 2.5fr 0.5fr 0.7fr !important;
    }
    .hide-on-mobile {
        display: none !important;
    }
}