/* styles-upload-form.css
   업로드 컨테이너 · 드롭존 · 메시지 · 진행률 · 미리보기 · 제출 버튼
   (분할 전 styles.css 의 647~793 줄 — 선언 순서 그대로 옮김) */
.container {
    position: relative;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card);
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    max-width: 1100px;
    width: 90%;
    z-index: 100;
    margin-top: 20px;
    border: 1px solid var(--border);
}
h1 {
    color: var(--brand);
    text-align: center;
    margin: 0 0 6px 0;
}
ol {
    line-height: 1.6; 
    margin-bottom: 30px;
}

li {
    margin-bottom: 10px;
}

.description {
    text-align: center;
    font-size: 16px;
    color: var(--muted);
    margin-bottom: 16px;
}
.dropzone {
    width: 97%;
    max-width: 100%;
    min-height: 110px;
    border: 2px dashed var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 16px;
    margin: 20px 0;
    cursor: pointer;
    text-align: center;
    padding: 16px;
    overflow-y: auto;
    flex-direction: column;
    background-color: rgba(0, 123, 255, 0.04);
    transition: background-color .2s ease, border-color .2s ease, transform .06s ease;
}
.dropzone.dragover {
    background-color: rgba(0, 123, 255, 0.08);
    border-color: var(--brand);
    transform: scale(0.998);
}
.message {
    display: none;
    margin-top: 10px;
    font-size: 15px;
    text-align: center;
    white-space: pre-line;
}
.message.success {
    color: #1a7f37;
}
.message.error {
    color: #dc3545;
}
.progress {
    font-size: 15px;
    margin-top: 14px;
    text-align: center;
    color: var(--muted);
}
.progress-bar {
    width: 0;
    height: 12px;
    background-color: var(--brand);
    border-radius: 8px;
    margin-top: 8px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: width 0.35s ease;
}
.preview-container {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 18px;
}
.preview-item-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.preview-item {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.remove-button {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(220, 53, 69, 0.92);
    color: white;
    border: none;
    border-radius: 8px;
    width: 22px;
    height: 22px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
button[type="submit"] {
    background-color: var(--brand);
    color: white;
    border: 1px solid transparent;
    padding: 12px 18px;
    font-size: 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    display: block;
    width: 100%;
    margin-top: 18px;
}
button[type="submit"]:hover {
    background-color: var(--brand-600);
}
