.wcs_widget {
    display: flex;
    padding: 20px;
    height: 160px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;

    .stat-logininfo {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
        color: #4a5568;
        font-size: 0.875rem;
        font-weight: 500;
        transition: all 0.2s ease;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);

        // Hover effects
        &:hover {
            background-color: #edf2f7;
            transform: translateY(-1px);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

            &::before {
                transform: translateX(2px);
            }
        }
    }


    &:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .wcs_left {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding-right: 15px;
        overflow-y: scroll;

        .expand-details-btn {
            margin-left: 5px;
            color: #757575;
            padding: 2px;

            position: absolute;
            right: 30px;
            top: 115px;

            &:hover {
                color: #1976d2;
            }

            svg {
                font-size: 16px;
            }
        }

        /* Custom scrollbar */
        &::-webkit-scrollbar {
            width: 4px;
            /* Very thin scrollbar */
        }

        &::-webkit-scrollbar-track {
            background: transparent;
            /* Transparent track */
        }

        &::-webkit-scrollbar-thumb {
            background: #ffffff;
            /* White scrollbar thumb */
            border-radius: 2px;
            /* Rounded corners for the thumb */
        }

        &::-webkit-scrollbar-thumb:hover {
            background: #f0f0f0;
            /* Slightly lighter on hover */
        }

        .wcs_title {
            font-size: 13px;
            font-weight: 600;
            color: #4a5568;
            display: flex;
            align-items: center;
            gap: 6px;

            .wcs_tooltip_icon {
                width: 14px;
                height: 14px;
                color: #a0aec0;
                cursor: help;

                &:hover {
                    color: #718096;
                }
            }


        }

        .wcs_counter {
            font-size: 26px;
            font-weight: 600;
            color: #2d3748;
            margin: 8px 0;

            &.list_of_plug {
                font-size: 12px;
                padding-right: 8px;

                &::-webkit-scrollbar {
                    width: 3px;
                }

                &::-webkit-scrollbar-thumb {
                    background: #cbd5e0;
                    border-radius: 3px;
                }

                &::-webkit-scrollbar-track {
                    background: transparent;
                }

                &.lat_active_plugin_name,
                &.total_deactivaed_plugin,
                &.todays_who_logged,
                &.todays_who_out {
                    line-height: 1.5;
                }
            }
        }

        .wcs_link {
            font-size: 12px;
            color: #4299e1;
            text-decoration: none;
            transition: color 0.2s ease;

            &:hover {
                color: #3182ce;
                text-decoration: underline;
            }
        }

        ol.lat_active_plugin_name {
            font-size: 12px;
            margin: 0;
            padding-left: 16px;
        }
    }

    .wcs_right {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-end;

        .wcs_percentage.wcs_positive {
            display: flex;
            gap: 5px;
            align-items: center;
        }

        // Icon styles
        [class*="wcs_"][class*="_icon"] {
            padding: 8px;
            border-radius: 8px;
            font-size: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .wcs_staff_icon {
            background-color: #ebf8ff;
            color: #3182ce;
        }

        .wcs_users_icon {
            background-color: #fefcbf;
            color: #d69e2e;
        }

        .wcs_resolve_icon {
            background-color: #e6fffa;
            color: #319795;
        }

        .wcs_pending_icon {
            background-color: #fff5f5;
            color: #e53e3e;
        }

        .wcs_icon {
            background-color: #faf5ff;
            color: #805ad5;
        }
    }
}

/* Modal Styles */
.detailed-active-plugins,
.detailed-deactive-plugins,
.detailed-login-info,
.detailed-logout-info {
    padding: 16px;

    h3 {
        margin-top: 0;
        margin-bottom: 16px;
        font-size: 18px;
        color: #333;
    }

    .modal-active-plugin-list,
    .modal-deactive-plugin-list {
        padding-left: 20px;
        margin: 0;

        li {
            padding: 8px 0;
            border-bottom: 1px solid #eee;
            font-size: 14px;

            &:last-child {
                border-bottom: none;
            }
        }
    }

    .modal-login-list,
    .modal-logout-list {
        max-height: 400px;
        overflow-y: auto;

        .modal-login-item,
        .modal-logout-item {
            padding: 10px;
            margin: 5px 0;
            background-color: #f9f9f9;
            border-radius: 4px;
            font-size: 14px;
            line-height: 1.5;
        }
    }
}

span.wcs_counter.list_of_plug.total_plugin_update {
    font-size: 40px !important;
}

// Pro badge styling
.wcs_widget.wcs_widgets_free {
    h4.pro_badge {
        position: absolute;
        bottom: 15px;
        right: 0;
        background: linear-gradient(135deg, #805ad5, #6b46c1);
        color: white;
        padding: 4px 10px;
        font-size: 11px;
        font-weight: 500;
        border-top-left-radius: 6px;
        border-bottom-left-radius: 6px;
        letter-spacing: 0.5px;
        box-shadow: 0 2px 8px rgba(107, 70, 193, 0.2);
    }
}

// Responsive styles
@media (max-width: 1400px) {
    .wcs_widget {
        flex: 1 1 calc(25% - 20px);
    }
}

@media (max-width: 1200px) {
    .wcs_widget {
        flex: 1 1 calc(33.333% - 20px);
    }
}

@media (max-width: 992px) {
    .wcs_widget {
        flex: 1 1 calc(50% - 20px);
        height: 150px;
    }
}

@media (max-width: 576px) {
    .wcs_widget {
        flex: 1 1 100%;
        height: 140px;
        padding: 15px;

        .wcs_left {
            .wcs_title {
                font-size: 12px;
            }

            .wcs_counter {
                font-size: 24px;
            }
        }

        .wcs_right {
            [class*="wcs_"][class*="_icon"] {
                padding: 6px;
                font-size: 18px;
            }
        }
    }
}