/* Enhanced Clients Page Styling */
.sidebar-sticky {
    position: sticky;
    top: 100px;
}

.nav-pills .nav-link {
    /* color: #6c757d; */
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    padding: 12px 16px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-pills .nav-link:hover {
    color: #1F1A56;
    background-color: rgba(31, 26, 86, 0.05);
    border-color: rgba(31, 26, 86, 0.1);
}

.nav-pills .nav-link.active {
    background-color: #1F1A56;
    color: white;
    border-color: #1F1A56;
    box-shadow: 0 4px 12px rgba(31, 26, 86, 0.3);
}

.nav-pills .nav-link .badge {
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

.client-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    overflow: hidden;
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(31, 26, 86, 0.15) !important;
    border-color: rgba(31, 26, 86, 0.2);
}

.client-logo {
    transition: all 0.3s ease;
    filter: grayscale(6%);
    opacity: 0.7;
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
}

.client-card:hover .client-logo {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.client-placeholder {
    padding: 20px;
    color: #6c757d;
}

.shadow-hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.transition-all {
    transition: all 0.3s ease;
}

.text-primary {
    color: #1F1A56 !important;
}

/* Search and Filter Styles */
.search-clients {
    border-radius: 25px;
    padding: 10px 20px;
    border: 1px solid #dee2e6;
}

.search-clients:focus {
    border-color: #1F1A56;
    box-shadow: 0 0 0 0.2rem rgba(31, 26, 86, 0.25);
}

/* Animation for filtering */
.client-item {
    animation: fadeInUp 0.5s ease-out;
}

.client-item.hidden {
    display: none !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar-sticky {
        position: relative;
        top: 0;
    }
    
    .nav-pills {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .nav-pills .nav-link {
        margin-bottom: 0;
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .client-logo {
        max-height: 60px;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .row-cols-2 > * {
        flex: 0 0 auto;
        width: 50%;
    }
    
    .client-card .card-body {
        padding: 1rem !important;
    }
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* No results state */
.no-results {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}