[x-cloak] {
    display: none !important;
}

.template-card {
    transition: all 0.3s ease;
}

.template-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.device-preview {
    transition: all 0.3s ease;
}

.editable-element {
    transition: all 0.2s ease;
    cursor: pointer;
    /* padding: 0.5rem; */
    border-radius: 0.25rem;
    border: 2px dashed transparent;
    white-space: nowrap; /* 자동 줄바꿈 금지 */
    overflow: hidden; /* 넘치는 텍스트 숨김 */
    /* display: inline-block; width 적용 가능 */
    max-width: 100%; /* 부모 영역 너비까지만 */
}

.editable-element:not(.cursor-not-allowed):hover {
    background-color: rgba(59, 130, 246, 0.1);
    border: 2px dashed oklch(80.9% 0.105 251.813);
    /* opacity: 0.75; */
}

.editable-element.cursor-not-allowed {
    cursor: default;
    border-color: transparent;
}

.editable-image {
    transition: all 0.2s ease;
    cursor: pointer;
    border-radius: 0.25rem;
    border: 2px dashed transparent;
}

.editable-image:not(.cursor-not-allowed):hover {
    background-color: rgba(59, 130, 246, 0.1);
    border: 2px dashed oklch(80.9% 0.105 251.813);
    /* opacity: 0.75; */
}

.editable-image.cursor-not-allowed {
    cursor: default;
    border-color: transparent;
}

.modal-backdrop {
    backdrop-filter: blur(4px);
}

.modal-content {
    animation: bounceIn 0.3s ease-out;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.pulse-animation {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}
