/* Main tabs styling */
.nav-pills .nav-link.btn-clear {
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0.5rem 1rem;
}

.nav-pills .nav-link.btn-clear.text-primary {
    color: var(--bs-secondary) !important;
}

.nav-pills .nav-link.btn-clear.text-primary.active {
    color: var(--bs-primary) !important;
    background-color: transparent !important;
    border-bottom: 2px solid var(--bs-primary) !important;
}

.nav-pills .nav-link.btn-clear.text-primary:hover {
    color: var(--bs-primary) !important;
    background-color: transparent !important;
}

/* Sub-tabs styling */
.sub-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 1rem;
}

.sub-tabs .nav-link {
    border: none;
    border-radius: 0;
    padding: 0.5rem 1rem;
    color: var(--bs-secondary);
    background-color: transparent;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.sub-tabs .nav-link:hover {
    color: var(--bs-primary);
    background-color: rgba(var(--bs-primary-rgb), 0.1);
}

.sub-tabs .nav-link.active {
    color: var(--bs-primary);
    background-color: transparent;
    border-bottom: 2px solid var(--bs-primary);
}

/* Assistants card hover effect */
.card.hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.card.hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Category Cards Layout */
#category-cards-container {
    width: 100%;
}

#category-breadcrumb {
    display: flex;
    align-items: center;
}

#back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
}

#breadcrumb-path {
    font-size: 1rem;
    font-weight: 500;
}

/* Category Card Styling */
.category-card {
    border-radius: var(--tblr-card-border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    min-height: 280px;
    position: relative;
    background-color: var(--tblr-secondary);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* .category-card:nth-child(4n+1) {
    background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
}

.category-card:nth-child(4n+2) {
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
}

.category-card:nth-child(4n+3) {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.category-card:nth-child(4n+4) {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
} */

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.category-card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* padding: 2rem; */
    height: 100%;
    position: relative;
}

.category-card-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.category-card-image img {
    /* max-width: 180px;
    max-height: 180px; */
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.category-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 180px;
    color: rgba(255, 255, 255, 0.7);
}

.category-card-text {
    color: white;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.category-card-text h5 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-card-text p {
    font-size: 1rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

.category-card-arrow {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.category-card:hover .category-card-arrow {
    background: rgba(255, 255, 255, 0.5);
    transform: translateX(4px);
}

.category-card-arrow i {
    font-size: 1.25rem;
    color: white;
}

/* Assistants grid styling */
#assistants-grid {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#assistants-grid.show {
    opacity: 1;
}

/* Animation classes */
.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .category-card {
        min-height: 240px;
    }

    .category-card-content {
        /* padding: 1.5rem; */
    }

    .category-card-image img {
        /* max-width: 140px;
        max-height: 140px; */
    }

    .category-card-placeholder {
        /* width: 140px;
        height: 140px; */
    }

    .category-card-text h5 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-pills .nav-link.btn-clear {
        padding: 0.3rem 0.6rem;
        font-size: 0.9rem;
    }

    .sub-tabs {
        padding-left: 0;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .sub-tabs .nav-link {
        display: inline-block;
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .category-card {
        min-height: 220px;
    }

    .category-card-content {
        padding: 1.25rem;
    }

    .category-card-image img {
        /* max-width: 120px;
        max-height: 120px; */
    }

    .category-card-placeholder {
        width: 120px;
        height: 120px;
    }

    .category-card-text h5 {
        font-size: 1.25rem;
    }

    .category-card-arrow {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 35px;
        height: 35px;
    }
}

