﻿#mainBody {
    min-height: unset;
}

    #mainBody .wrapper {
        margin: 5rem auto 1rem;
    }

@media (min-width: 768px) {
    #mainBody .wrapper {
        margin: 7rem auto 3rem;
    }
}

.history-point-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    width: 100%;
    padding: 1rem;
}

@media (min-width: 768px) {
    .history-point-container {
        max-width: 768px;
        margin: auto;
    }
}

.history-point-header {
    width: 100%;
    border-bottom: 1px solid #DDE1E6;
    padding-bottom: 1rem;
}

@media (min-width: 768px) {
    .history-point-header {
        border: none;
    }
}

.history-point-container .history-point-title {
    font-family: "Vend Sans";
    color: #21272A;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.5rem;
    letter-spacing: 0;
    text-align: center;
}

.history-point-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.join-message-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

.join-message-wrapper .join-icon {
    width: 7.5rem;
    height: 7.5rem;
}

.join-message-wrapper .join-message {
    color: #4D5358;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5rem;
    letter-spacing: 0;
}

@media (min-width: 768px) {
    .join-message-wrapper .join-message {
        width: 50%;
        font-size: 1rem;
    }
}

/* Date grouping styles */
.date-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.date-header {
    font-family: "Vend Sans", 'Segoe UI', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: #878D96;
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

@media (min-width: 768px) {
    .date-header {
        font-size: 1rem;
    }
}

/* History card redesign */
.history-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 1rem 0.5rem;
    border-radius: 0.5rem;
}

.history-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* History info - left side */
.history-info {
    flex-grow: 1;
}

.history-info strong {
    display: block;
    font-size: 1rem;
    color: #21272A;
    font-weight: 600;
    line-height: 1.5rem;
    letter-spacing: 0;
}

.history-info span {
    font-size: 0.75rem;
    color: #A2A9B0;
}

/* History points badge */
.history-poin_ {
    font-weight: bold;
    font-size: 0.8125rem;
    padding: 0.4rem 0.75rem;
    border-radius: 0.25rem;
    white-space: nowrap;
    margin-left: 0.75rem;
}

.history-poin_.positive {
    background-color: #42BE65;
    color: white;
}

.history-poin_.negative {
    background-color: #FA4D56;
    color: white;
}

/* Pagination styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 1.5rem;
    padding: 0.5rem;
}

.page-btn {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: none;
    background-color: #DDE1E6;
    color: #4D5358;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-btn:hover {
    background-color: #C1C9D2;
}

.page-btn.active {
    background-color: #6B7279;
    color: white;
}

.page-btn.prev, .page-btn.next {
    background-color: #F2F4F8;
    font-weight: bold;
}

@media (min-width: 768px) {
    .pagination {
        gap: 12px;
    }
    
    .page-btn {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
}