/* ========================================
   NOVA TABELA DE PACOTES - CRIADA DO ZERO
   ======================================== */

/* Container da tabela */
.nova-tabela-pacotes {
    width: 100%;
    background: var(--theme-card-bg, #ffffff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Cabeçalho da tabela */
.nova-tabela-pacotes table {
    width: 100%;
    border-collapse: collapse;
}

.nova-tabela-pacotes thead {
    background: var(--theme-bg-secondary, #f8f9fa);
}

.nova-tabela-pacotes thead tr th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--theme-text-secondary, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--theme-border-color, #e5e7eb);
}

/* Corpo da tabela */
.nova-tabela-pacotes tbody tr {
    border-bottom: 1px solid var(--theme-border-color, #e5e7eb);
    transition: background-color 0.2s ease;
}

.nova-tabela-pacotes tbody tr:hover {
    background: var(--theme-card-bg-hover, #f9fafb);
}

.nova-tabela-pacotes tbody tr td {
    padding: 18px 20px;
    font-size: 14px;
    color: var(--theme-text-primary, #1f2937);
    vertical-align: middle;
}

/* Célula de Cliente */
.celula-cliente {
    font-weight: 500;
}

.celula-cliente small {
    display: block;
    font-size: 12px;
    color: var(--theme-text-secondary, #6b7280);
    margin-top: 4px;
}

/* Badge de Plano */
.badge-plano {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--theme-bg-secondary, #f3f4f6);
    border-radius: 8px;
    font-weight: 500;
    font-size: 13px;
}

.badge-plano i {
    color: currentColor;
}

/* Badge de Tipo */
.badge-tipo {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-tipo.limitado {
    background: #fef3c7;
    color: #d97706;
}

.badge-tipo.ilimitado {
    background: #dbeafe;
    color: #2563eb;
}

/* Créditos */
.info-creditos {
    display: flex;
    align-items: center;
    gap: 10px;
}

.barra-progresso {
    width: 80px;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.barra-progresso-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    transition: width 0.3s ease;
}

.texto-creditos {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

/* Validade */
.info-validade {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.data-validade {
    font-weight: 500;
    font-size: 14px;
}

.dias-restantes {
    font-size: 12px;
    color: var(--theme-text-secondary, #6b7280);
}

/* Status Badge */
.badge-status {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-status.ativo {
    background: #d1fae5;
    color: #065f46;
}

.badge-status.vencendo {
    background: #fef3c7;
    color: #92400e;
}

.badge-status.vencido {
    background: #fee2e2;
    color: #991b1b;
}

.badge-status.cancelado {
    background: #e5e7eb;
    color: #4b5563;
}

/* Valor */
.info-valor {
    font-weight: 600;
    font-size: 15px;
}

.info-valor small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--theme-text-secondary, #6b7280);
    margin-top: 2px;
}

/* Ações */
.acoes-tabela {
    display: flex;
    gap: 6px;
}

.btn-acao {
    width: 32px;
    height: 32px;
    border: 1px solid var(--theme-border-color, #d1d5db);
    background: var(--theme-card-bg, #ffffff);
    color: var(--theme-text-secondary, #6b7280);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-acao:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-acao.danger:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

/* Responsivo */
@media (max-width: 768px) {
    .nova-tabela-pacotes thead {
        display: none;
    }

    .nova-tabela-pacotes tbody tr {
        display: block;
        margin-bottom: 16px;
        border: 1px solid var(--theme-border-color, #e5e7eb);
        border-radius: 8px;
    }

    .nova-tabela-pacotes tbody tr td {
        display: flex;
        justify-content: space-between;
        padding: 12px 16px;
        border-bottom: 1px solid var(--theme-border-color, #e5e7eb);
    }

    .nova-tabela-pacotes tbody tr td:last-child {
        border-bottom: none;
    }

    .nova-tabela-pacotes tbody tr td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--theme-text-secondary, #6b7280);
    }
}
