/**
 * Profile-style tabs — blue underline, icons, sliding cursor.
 */

.profile-tabs-header {
    padding: 0 !important;
    padding-bottom: 0 !important;
    background: #f8f9fa !important;
    border-bottom: none !important;
    min-height: 3.125rem;
    display: flex;
    align-items: stretch;
}

.list-page .card .card-header.profile-tabs-header,
.detail-page .card-header.profile-tabs-header {
    border-bottom: none !important;
}

.profile-tabs-wrapper {
    position: relative;
    width: 100%;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-bottom: 1px solid #e9ecef;
}

.profile-tabs-nav {
    flex-wrap: nowrap !important;
    border-bottom: none !important;
    background: transparent !important;
    overflow-x: auto;
    scrollbar-width: thin;
    gap: 0;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.profile-tabs-nav::-webkit-scrollbar {
    height: 4px;
}

.profile-tabs-nav::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

.profile-tabs-nav .nav-item {
    flex-shrink: 0;
}

.profile-tabs-nav .nav-link {
    white-space: nowrap;
    font-size: 0.8125rem;
    padding: 0.875rem 1rem;
    border: none !important;
    border-radius: 0 !important;
    color: #1e3a5f;
    background: transparent !important;
    transition: color 0.2s ease;
    transform: none !important;
    font-weight: 500;
    margin: 0 !important;
}

.profile-tabs-nav .nav-link:hover {
    color: #0d6efd;
    border: none !important;
    background: transparent !important;
    transform: none !important;
}

.profile-tabs-nav .nav-link.active {
    color: #0d6efd !important;
    font-weight: 600;
    background: transparent !important;
    border: none !important;
    border-bottom: none !important;
    transform: none !important;
}

.profile-tabs-nav .nav-link.active::after {
    display: none !important;
    content: none !important;
}

.tab-underline,
.profile-tab-cursor {
    position: absolute;
    bottom: -1px;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 3px 3px 0 0;
    transition: left 0.28s ease, width 0.28s ease;
    pointer-events: none;
    z-index: 2;
}

.card .profile-tabs-header::after {
    display: none !important;
}

.profile-tabs-header .card-header-tabs.profile-tabs-nav {
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* Override global .card-header-tabs rules in style.css */
.card-header-tabs.profile-tabs-nav .nav-link {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    transform: none !important;
}

.card-header-tabs.profile-tabs-nav .nav-link:hover {
    background: transparent !important;
    transform: none !important;
}

.card-header-tabs.profile-tabs-nav .nav-link.active {
    border-bottom: none !important;
    background: transparent !important;
    transform: none !important;
}

.card-header-tabs.profile-tabs-nav .nav-link.active::after {
    display: none !important;
    content: none !important;
}

@media (max-width: 576px) {
    .profile-tabs-nav .nav-link {
        font-size: 0.75rem;
        padding: 0.75rem 0.65rem;
    }

    .profile-tabs-nav .nav-link i {
        display: none;
    }
}
