.pageContainer {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px; /* Below Location/Filterable */
    left: 0;
    right: 0;
    bottom: 10px;
    background: transparent;
    border-radius: 24px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .pageContainer {
        border-radius: 16px;
    }
}



.clientsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding: 30px;
    overflow-y: auto;
    flex-grow: 1;
    z-index: 1;
    align-content: start;
}

@media (max-width: 768px) {
    .clientsGrid {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 16px;
    }
}

.clientCard {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03), 0 1px 4px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(226, 232, 240, 1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

@media (max-width: 768px) {
    .clientCard {
        padding: 16px;
        gap: 16px;
        align-items: flex-start; /* Prevents vertical squishing of content */
        border-radius: 16px;
    }
}

/* Accent line on hover */
.clientCard::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--wine);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 4px 0 0 4px;
}

@media (min-width: 769px) {
    .clientCard:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05), 0 3px 8px rgba(0, 0, 0, 0.02);
        border-color: rgba(226, 232, 240, 1);
    }

    .clientCard:hover::after {
        opacity: 1;
    }
}

/* Banned Card Styles */
.clientCard.banned {
    background: #fffafa;
    border: 1px solid rgba(254, 226, 226, 1);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.03);
}

.clientCard.banned::after {
    background: #ef4444;
    opacity: 1;
}

@media (min-width: 769px) {
    .clientCard.banned:hover {
        box-shadow: 0 12px 30px rgba(239, 68, 68, 0.08);
    }
}

/* Alternating Pastel Colors for Cards */
.clientCard:nth-child(6n + 1):not(.banned) {
    background: #f0f9ff;
    border-color: #e0f2fe;
}
.clientCard:nth-child(6n + 2):not(.banned) {
    background: #f5f3ff;
    border-color: #ede9fe;
}
.clientCard:nth-child(6n + 3):not(.banned) {
    background: #f0fdf4;
    border-color: #dcfce7;
}
.clientCard:nth-child(6n + 4):not(.banned) {
    background: #fff7ed;
    border-color: #ffedd5;
}
.clientCard:nth-child(6n + 5):not(.banned) {
    background: #fdf2f8;
    border-color: #fce7f3;
}
.clientCard:nth-child(6n + 6):not(.banned) {
    background: #fefce8;
    border-color: #fef08a;
}

/* Avatar Styling */
.avatarContainer {
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .avatarContainer {
        margin-top: 4px; /* Align nicely with the text if align-items: flex-start is used */
    }
}

.avatarContainer::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color 0.4s ease;
}

@media (min-width: 769px) {
    .clientCard:hover .avatarContainer::before {
        border-color: rgba(139, 92, 246, 0.2);
    }

    .clientCard.banned .avatarContainer::before {
        border-color: rgba(239, 68, 68, 0.2);
    }
}

.infoContainer {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 6px; /* Reduced gap to prevent cutting off text */
    min-width: 0; /* Ensures truncation works within flex children */
}

.headerRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
}

.clientName {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #1e293b; /* Dark slate */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .clientName {
        font-size: 16px;
    }
}

.bannedBadge {
    background: #fef2f2;
    color: #dc2626;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid #fecaca;
    flex-shrink: 0;
}

/* Contact Details */
.clientDetail, .clientPhone {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #475569; /* Slate 600 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .clientDetail, .clientPhone {
        font-size: 12px;
    }
}

/* Beautiful Icon Wrappers */
.iconWrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #94a3b8;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

@media (min-width: 769px) {
    .clientCard:hover .iconWrapper {
        background: rgba(139, 92, 246, 0.1);
        color: var(--wine);
    }

    .clientCard.banned:hover .iconWrapper {
        background: rgba(239, 68, 68, 0.1);
        color: #ef4444;
    }
}

.paginationWrapper {
    padding: 16px 30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    display: flex;
    justify-content: center;
    z-index: 10;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

@media (max-width: 768px) {
    .paginationWrapper {
        padding: 12px 16px;
        border-bottom-left-radius: 16px;
        border-bottom-right-radius: 16px;
    }
}

.emptyState {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 20px;
    color: #94a3b8;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
