/* History Page Specific Styles */

/* History Panel - Main content area positioned to the right of menu */
.history-panel {
    position: absolute;
    top: 20px;
    left: 116px;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    font-family: 'Kanit', sans-serif;
    /* Golden border around entire panel */
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #c9a861;
    box-sizing: border-box;
    padding: 16px;
}

/* Tab Buttons Container */
.history-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

/* Individual Tab Button */
.tab-button {
    flex: 1;
    position: relative;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.2s ease;
    text-align: center;
}

.tab-button.active {
    background: linear-gradient(180deg, #FFFFFF, #E1C59C);
    border: 2px solid #c9a861;
}

.tab-button:not(.active) {
    background: transparent;
    border: 2px solid #c9a861;
}

.tab-label {
    font-size: 24px;
    font-weight: 700;
    font-family: 'Kanit', sans-serif;
    color: #ffe3aa; /* Yellow for inactive */
}

.tab-button.active .tab-label {
    color: #000; /* Black for active */
}

/* Data Table */
.history-table {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Table Header */
.table-header {
    display: flex;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-family: 'Kanit', sans-serif;
}

/* Table Row */
.table-row {
    display: flex;
    padding: 12px 16px;
    font-size: 14px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: background 0.2s ease;
    font-family: 'Kanit', sans-serif;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Column Widths */
.col-id {
    width: 100px;
    flex-shrink: 0;
}

.col-time {
    flex: 1;
    text-align: center;
}

.col-coin {
    width: 120px;
    flex-shrink: 0;
    text-align: center;
    font-weight: 700;
}

.col-status {
    width: 80px;
    flex-shrink: 0;
    text-align: right;
    font-weight: 700;
}

/* Status Colors */
.col-coin.positive {
    color: #b8ff84; /* Light green for winning */
}

.col-coin.negative {
    color: #ff6b6b; /* Red for losing */
}

.col-status.won {
    color: #b8ff84;
}

.col-status.lost {
    color: #ff6b6b;
}

/* Scrollbar Styling */
.history-table::-webkit-scrollbar {
    width: 4px;
}

.history-table::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.history-table::-webkit-scrollbar-thumb {
    background: rgba(255, 227, 170, 0.3);
    border-radius: 2px;
}

.history-table::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 227, 170, 0.5);
}

/* Hidden class for tab switching */
.hidden {
    display: none !important;
}

/* Prize History Columns */
.col-account {
    width: 120px;
    flex-shrink: 0;
}

.col-value {
    width: 140px;
    flex-shrink: 0;
    text-align: center;
    font-weight: 700;
}

.usd {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin-left: 4px;
}

/* Prize Status Colors */
.col-status.pending {
    color: #ffe3aa; /* Yellow for pending */
}

.col-status.successful {
    color: #b8ff84; /* Green for successful */
}

.col-status.fail {
    color: #ff6b6b; /* Red for fail */
}

/* Purchase History Columns */
.col-no {
    width: 60px;
    flex-shrink: 0;
    text-align: center;
}

.col-type {
    width: 120px;
    flex-shrink: 0;
    text-align: right;
    font-weight: 700;
}

.coins {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin-left: 4px;
}

/* Purchase Type Colors */
.col-type.daily-package {
    color: #ffe3aa; /* Yellow for daily package */
}

.col-type.buy-turn {
    color: #4fc3f7; /* Blue for buy turn */
}
