.email__edit--body {
    margin-top: 50px;
}

.content__nav2 {
    background-color: #FFFFFF;
    height: 60px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1000;
}

.container-girds {
    display: grid;
    gap: 20px;
}

.preview-item.grid-item {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.preview-template-overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.7); /* Lớp phủ trắng mờ */
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.preview-item.grid-item:hover .preview-template-overlay {
    opacity: 1 !important;
    pointer-events: auto;
}

.preview-item.grid-item:hover .show-template {
    opacity: 1;
    transition: opacity 1s ease;

}

.preview-item.grid-item:hover {
    border: 1px solid #8d8d8d; /* màu đậm hơn, ví dụ: màu xám đậm */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* hiệu ứng nổi lên */
    border-radius: 15px;
}

.resizableDiv {
    margin-left: auto;
    margin-right: auto;
    display: table; /* Để nó tự fit width nhỏ gọn và căn giữa */
}

.div_template_list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.active-category {
    background-color: rgba(108, 117, 125, 0.2);
    border: 1px solid rgba(108, 117, 125, 0.5);
    border-radius: 6px;
}

.div_category_list {
    min-width: 100%;
}

.select_category:hover {
    border-radius: 8px;
    background-color: #9b9b9b;
}

@media (width >= 992px) {
    .container_template {
        display: flex;
        justify-content: center;
    }
}

@media (width <= 576px) {
    .div_template_list {
        grid-template-columns: repeat(2, minmax(0, 1fr));

    }

    .div_category_list {
        overflow-x: auto;
        width: 100%;
    }

    .select_category {
        min-width: 100px;
    }
}


.skeleton-loader {
    background: linear-gradient(90deg, #eee 25%, #ddd 50%, #eee 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
