.required::after {
    content: " *";
    color: red;
}

[v-cloak] {
    display: none;
}

/* Vue Native Dropzone Custom Styles */
.vue-dropzone {
    border: 2px dashed #c7d2fe;
    border-radius: 10px;
    background: #ffffff;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    position: relative;
}

    .vue-dropzone.is-dragover {
        background-color: #eef2ff;
        border-color: #6366f1;
    }

    .vue-dropzone .dz-message {
        font-weight: 400;
        color: #6c757d;
    }

    .vue-dropzone .dz-icon {
        font-size: 2.5rem;
        color: #6366f1;
        margin-bottom: 10px;
    }

/* 파일 미리보기 리스트 */
.file-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.file-card {
    width: 120px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 5px;
    position: relative;
    background: white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

    .file-card img {
        width: 100%;
        height: 80px;
        object-fit: cover;
        border-radius: 3px;
        background: #f8f9fa;
        margin-bottom: 5px;
    }

    .file-card .file-icon-placeholder {
        width: 100%;
        height: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f8f9fa;
        color: #adb5bd;
        font-size: 2rem;
        border-radius: 3px;
        margin-bottom: 5px;
    }

    .file-card .file-name {
        font-size: 0.75rem;
        color: #333;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: center;
    }

    .file-card.is-main {
        border: 2px solid #28a745;
        background-color: #f0fff4;
    }

/* 대표 이미지 선택 버튼 (왼쪽 상단 별표) */
.btn-set-main {
    position: absolute;
    top: -8px;
    left: -8px;
    background: #e9ecef;
    color: #adb5bd;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
}

    .btn-set-main:hover {
        background: #fff;
        border-color: var(--bs-warning, #ffc107);
        color: var(--bs-warning, #ffc107);
    }

    .btn-set-main.active {
        background: var(--bs-warning, #ffc107);
        color: white;
        border-color: var(--bs-warning, #ffc107);
    }

/* "대표" 라벨 배지 */
.main-badge {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    pointer-events: none;
}

.btn-remove-file {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

    .btn-remove-file:hover {
        background: #bb2d3b;
    }
