/* Generic table styling with light/dark theme support */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin: 1rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
    line-height: 1.4;
}

th, td {
    padding: 0.75rem;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8em;
    color: var(--text-muted);
    background-color: var(--bg-secondary);
}

tr:hover {
    background-color: var(--bg-hover);
}

/* td:first-child,
th:first-child {
    text-align: left;
} */

/* Dark mode specific styles */
:root[data-theme="dark"] table {
    --bg-secondary: rgba(255, 255, 255, 0.05);
    --bg-hover: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-muted: rgba(255, 255, 255, 0.7);
}

/* Light mode specific styles */
:root[data-theme="light"] table {
    --bg-secondary: rgba(0, 0, 0, 0.02);
    --bg-hover: rgba(0, 0, 0, 0.01);
    --border-color: rgba(0, 0, 0, 0.1);
    --text-muted: rgba(0, 0, 0, 0.6);
}


/* Responsive adjustments */
@media (max-width: 640px) {
    th, td {
        padding: 0.5rem;
        font-size: 0.85em;
    }
}
