/* ===== ESTILOS DE TABELAS MODERNAS ===== */

/* Tabelas básicas */
.table {
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .table {
    color: #ccc;
    border-color: #333;
}

.table thead th {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    padding: 1rem;
}

[data-theme="dark"] .table thead th {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-bottom: 2px solid #444;
}

.table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

[data-theme="dark"] .table tbody tr {
    border-bottom: 1px solid #333;
}

.table tbody tr:hover {
    background-color: var(--bg-secondary);
}

[data-theme="dark"] .table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.table tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
}

[data-theme="dark"] .table tbody td {
    color: #ccc;
}

/* Tabela striped */
.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: var(--bg-secondary);
}

[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * {
    background: rgba(255, 255, 255, 0.02);
}

/* Tabela bordered */
.table-bordered {
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .table-bordered {
    border: 1px solid #333;
}

.table-bordered > :not(caption) > * {
    border-width: 1px 0;
}

.table-bordered > :not(caption) > * > * {
    border-width: 0 1px;
}

/* Tabela hover */
.table-hover > tbody > tr:hover > * {
    background-color: var(--bg-secondary);
}

[data-theme="dark"] .table-hover > tbody > tr:hover > * {
    background: rgba(255, 255, 255, 0.05);
}

/* Tabela responsiva */
.table-responsive {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

[data-theme="dark"] .table-responsive {
    border: 1px solid #333;
}

/* Estilo de tabela dark completo */
[data-theme="dark"] .table-dark {
    background: #1a1a1a;
    color: #ffffff;
}

[data-theme="dark"] .table-dark thead th {
    background: #2a2a2a;
    border-color: #444;
}

[data-theme="dark"] .table-dark tbody tr:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Tabela com ações */
.table-actions {
    white-space: nowrap;
}

.table-actions .btn {
    margin: 0 0.25rem;
}

[data-theme="dark"] .table-actions .btn-sm {
    background: rgba(255, 255, 255, 0.05);
    border-color: #555;
    color: #ccc;
}

[data-theme="dark"] .table-actions .btn-sm:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}




