/* 기본 스타일 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

h1 {
    text-align: center;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555; 
    
}

input[type="text"],
input[type="number"],
textarea,
select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 10px;
}

textarea {
    resize: vertical;
    height: 500px;
    resize: none;
}

button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background-color: #218838;
}

/* 업로드 영역 스타일 */
.upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background-color: #fafafa;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.upload-area:hover {
    border-color: #28a745;
}

.upload-instruction {
    color: #777;
}

.upload-instruction i {
    font-size: 40px;
    margin-bottom: 10px;
    color: #28a745;
}

.upload-instruction p {
    margin: 0;
    font-size: 14px;
}

/* 이미지 미리보기 스타일 */
.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.image-container {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-container button {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.image-container button:hover {
    background-color: rgba(255, 0, 0, 1);
}
input[readonly] {
   background-color: #f2f2f2;
  	color: #b3b3b3;
  	cursor: not-allowed;
}
input[readonly]:hover {
 	 box-shadow: none;
} 

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 24px;
    }

    .upload-instruction i {
        font-size: 30px;
    }

    .upload-instruction p {
        font-size: 12px;
    }

    .image-container {
        width: 80px;
        height: 80px;
    }

    input[type="text"],
    input[type="number"],
    textarea,
    select {
        font-size: 14px;
    }

    button {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    h1 {
        font-size: 20px;
    }

    .upload-instruction i {
        font-size: 24px;
    }

    .upload-instruction p {
        font-size: 10px;
    }

    .image-container {
        width: 60px;
        height: 60px;
    }

    input[type="text"],
    input[type="number"],
    textarea,
    select {
        font-size: 12px;
    }

    button {
        font-size: 12px;
    }
}