/* Professional Chat List Shimmer CSS */
@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes cardPulse {
    0% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.7;
    }
}

/* Main chat list container */
.chat-list-container {
    max-width: 100%;
    margin: 0 auto;
}

/* Chat item container with shimmer */
.chat-shimmer-item {
    animation: cardPulse 2s infinite ease-in-out;
    transition: transform 0.2s ease;
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

.chat-shimmer-item:hover {
    transform: translateX(5px);
}

/* Individual elements with shimmer */
.shimmer-wrapper {
    background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    position: relative;
    overflow: hidden;
}

/* Shapes */
.shimmer-circle {
    border-radius: 50%;
}

.shimmer-rounded {
    border-radius: 8px;
}

.shimmer-text {
    height: 14px;
    border-radius: 4px;
}

/* Specific elements for chat list */
.shimmer-chat-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    flex-shrink: 0;
}

.shimmer-chat-name {
    height: 18px;
    border-radius: 4px;
    margin-bottom: 8px;
    width: 60%;
}

.shimmer-chat-message {
    height: 14px;
    border-radius: 4px;
    margin-bottom: 5px;
    width: 90%;
}

.shimmer-chat-time {
    height: 12px;
    border-radius: 4px;
    width: 40px;
    margin-left: auto;
    flex-shrink: 0;
}

.shimmer-chat-badge {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-left: 10px;
    flex-shrink: 0;
}

/* Chat content structure */
.chat-content {
    margin-left: 15px;
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.chat-message-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Width classes */
.w-20 { width: 20%; }
.w-40 { width: 40%; }
.w-60 { width: 60%; }
.w-80 { width: 80%; }
.w-90 { width: 90%; }
.w-100 { width: 100%; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .shimmer-chat-avatar {
        width: 40px;
        height: 40px;
    }

    .shimmer-chat-name {
        height: 16px;
    }

    .shimmer-chat-message {
        height: 12px;
    }
}