/* 리뷰 모달 스타일 */
/* 모달 스타일 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background-color: white;
  margin: 0 auto;
  border-radius: 8px;
  width: 90%;
  max-width: 650px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  top: 50%;
  transform: translateY(-53%);
}
.modal-content.large {
  max-width: 1200px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e9ecef;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
  flex-shrink: 0;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #495057;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6c757d;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: #e9ecef;
  color: #495057;
}

.modal-body {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid #e9ecef;
  background: #f8f9fa;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-radius: 0 0 8px 8px;
  flex-shrink: 0;
}

.required {
  color: red;
}

.ql-editor {
  min-height: 220px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 폼 스타일 */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 9px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--point-color);
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.form-group input::placeholder,
.form-group select::placeholder {
  color: #999;
}

/* 버튼 스타일 */
.btn-reset,
.btn-add {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
  min-width: 80px;
}

.btn-reset {
  background-color: #6c757d;
  color: white;
}

.btn-reset:hover {
  background-color: #5a6268;
}

.btn-add {
  background-color: var(--point-color);
  color: white;
}

.btn-add:hover {
  background-color: var(--point-color-hover);
}

/* 썸네일 업로드 스타일 */
.thumbnail-upload-container {
  margin-top: 10px;
}

.thumbnail-upload-area {
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 10px 30px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
  position: relative;
}

.thumbnail-upload-area:hover {
  border-color: var(--point-color);
  background-color: #f8f9fa;
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.upload-placeholder .material-symbols-outlined {
  font-size: 48px;
  color: #999;
}

.upload-placeholder p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.file-preview {
  margin-top: 10px;
}

.file-preview img {
  max-width: 100%;
  border-radius: 5px;
}

.thumbnail-preview-container {
  position: relative;
  display: inline-block;
}

.thumbnail-preview-container img {
  max-height: 120px;
  border-radius: 5px;
}

.thumbnail-remove-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background-color 0.2s;
}

.thumbnail-remove-btn:hover {
  background: #c82333;
}

.thumbnail-remove-btn .material-symbols-outlined {
  font-size: 14px;
}

/* 텍스트 스타일 */
.text-muted {
  color: #6c757d;
  font-size: 12px;
  margin-top: 5px;
}

/* 애니메이션 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 10% auto;
    max-height: 85vh;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 15px 20px;
  }

  .form-group input,
  .form-group select {
    padding: 10px 12px;
  }

  .btn-reset,
  .btn-add {
    padding: 8px 16px;
    font-size: 13px;
  }
}
