.history-list-section {
    margin-top: 3rem;
}

.filters-container {
    background-color: #1F2937;
    padding: 1rem;
    border-radius: 0.75rem 0.75rem 0 0;
    border-bottom: 1px solid #374151;
}

.filters-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .filters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #9CA3AF;
    margin-bottom: 0.25rem;
}

.form-select {
    width: 100%;
    background-color: #374151;
    border: 1px solid #374151;
    border-radius: 0.375rem;
    padding: 0.5rem 2.5rem 0.5rem 0.75rem;
    color: white;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
}

.form-select:focus {
    outline: none;
    border-color: #10B981;
    box-shadow: 0 0 0 1px #10B981;
}

.history-table-container {
    width: 100%;
    overflow-x: auto;
    background-color: #1F2937;
    border-radius: 0 0 0.75rem 0.75rem;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th,
.history-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #374151;
    white-space: nowrap;
}

.history-table th {
    font-size: 0.75rem;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: #374151;
}

.history-table td {
    font-size: 0.9rem;
}

.history-table tbody tr:last-child td {
    border-bottom: none;
}

.history-table tbody tr {
    transition: background-color 0.2s;
}

.history-table tbody tr:hover {
    background-color: #111827;
}

.history-table__result-col {
    text-align: right;
}

@media (max-width: 768px) {
    .history-table__league-col {
        display: none;
    }
}

.status-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    line-height: 1.2;
}

.status-badge--won {
    background-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.status-badge--lost {
    background-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.empty-state {
    background-color: #1F2937;
    padding: 3rem;
    border-radius: 0.75rem;
    text-align: center;
}

.empty-state__title {
    font-size: 1.25rem;
    font-weight: 600;
}

.empty-state__text {
    margin-top: 0.5rem;
    color: #9CA3AF;
}

.history-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.history-pagination .pagination-btn {
    padding: 6px 10px;
    border: 1px solid var(--brand-border);
    background: var(--brand-surface);
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

.history-pagination .pagination-btn.active {
    background: var(--brand-primary);
    font-weight: bold;
}

.history-pagination .pagination-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.history-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: #1F2937;
    border-radius: 0.75rem;
    margin-top: 1rem;
}

.history-loader .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #10B981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
