/* --- History Page Styles --- */

.history-container {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-empty {
    text-align: center;
    padding: 3rem;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    color: #94a3b8;
}

/* History Card */
.history-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}

.history-card:hover {
    transform: translateX(4px);
}

/* Win/Loss Borders */
.history-card.win {
    border-left: 4px solid #4ade80;
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.1) 0%, rgba(15, 23, 42, 0.6) 100%);
}

.history-card.loss {
    border-left: 4px solid #f87171;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.1) 0%, rgba(15, 23, 42, 0.6) 100%);
}

/* Left Side (Info) */
.history-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.game-name {
    font-weight: 700;
    color: white;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.game-time {
    font-size: 0.75rem;
    color: #64748b;
}

/* Right Side (Result) */
.history-result {
    text-align: right;
}

.result-value {
    font-family: 'Fira Code', monospace;
    font-weight: 700;
    font-size: 1.1rem;
}

.win .result-value { color: #4ade80; text-shadow: 0 0 10px rgba(74, 222, 128, 0.3); }
.loss .result-value { color: #f87171; }

.bet-info {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Guaranteed Icon */
.guarantee-icon {
    color: #facc15;
    font-size: 0.8rem;
    animation: pulse 2s infinite;
}