/* Estilo moderno para Pills navs */
.nav-pills {
    background: white;
    padding: 1rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 3rem;
    border: 1px solid #f1f5f9;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-pills .nav-link {
    color: #64748b;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    background: #f8fafc;
}

.nav-pills .nav-link:hover {
    background: #e2e8f0;
    color: #334155;
    transform: translateY(-2px);
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
    border-color: transparent;
}

/* Container das tabelas */
.tab-content {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}

/* Tabelas com design de cards */
.table {
    border-collapse: separate;
    border-spacing: 0 15px;
    margin-bottom: 0;
}

.table thead {
    display: none;
}

.table tbody tr {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}

.table tbody tr::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: linear-gradient(180deg, #3b82f6, #2563eb);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.table tbody tr:hover::before {
    opacity: 1;
}

.table tbody tr:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: #e2e8f0;
}

.table tbody td {
    padding: 0;
    border: none;
    background: transparent;
    flex: 1;
}

/* Local */
.table tbody td:first-child {
    font-weight: 600;
    color: #1e293b;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.table tbody td:first-child::before {
    content: '\f3c5'; /* fa-map-marker-alt */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 1rem;
    font-size: 1.2rem;
    color: #ef4444;
    background: #fee2e2;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.table tbody tr:hover td:first-child::before {
    background: #ef4444;
    color: white;
    transform: rotate(15deg);
}

/* Telefone */
.table tbody td:last-child {
    color: #3b82f6;
    font-weight: 700;
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 1.1rem;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.table tbody td:last-child::before {
    content: '\f095'; /* fa-phone */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 0.8rem;
    font-size: 1rem;
    color: #3b82f6;
    background: #dbeafe;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.table tbody tr:hover td:last-child::before {
    background: #3b82f6;
    color: white;
    transform: scale(1.1);
}

/* Animação de entrada */
.tab-pane {
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .nav-pills {
        padding: 0.5rem;
        border-radius: 15px;
    }

    .nav-pills .nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        flex: 1 1 auto;
        text-align: center;
    }

    .table tbody tr {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.2rem;
        gap: 1rem;
    }

    .table tbody td {
        width: 100%;
    }
    
    .table tbody td:last-child {
        justify-content: flex-start;
        padding-top: 0.5rem;
        border-top: 1px dashed #e2e8f0;
    }
}

/* Dark mode overrides for telefonesUteis.php */
body.dark-mode .nav-pills {
    background: #283347 !important;
    border-color: #475569 !important;
}
body.dark-mode .nav-pills .nav-link {
    background: #1e293b !important;
    color: #cbd5e1 !important;
}
body.dark-mode .nav-pills .nav-link:hover {
    background: #334155 !important;
    color: #fff !important;
}
body.dark-mode .nav-pills .nav-link.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: white !important;
}
body.dark-mode .table tbody tr {
    background: #283347 !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}
body.dark-mode .table tbody tr:hover {
    background: #334155 !important;
}
body.dark-mode .text-primary {
    color: #60a5fa !important;
}
body.dark-mode .text-muted {
    color: #94a3b8 !important;
}
body.dark-mode .fw-bold {
    color: #f1f5f9 !important;
}