.upload-section-title {
  margin: 0 0 12px 0;
  font-size: 1rem;
  color: #2c3e50;
}

.default-images-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.default-image-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 140px;
  padding: 10px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.default-image-btn:hover {
  border-color: #3498db;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.25);
  transform: translateY(-2px);
}

.default-image-thumb {
  width: 120px;
  height: 75px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
  pointer-events: none;
}

.default-image-label {
  font-size: 0.9em;
  font-weight: 600;
  color: #495057;
}

.upload-divider {
  margin: 8px 0 12px 0;
  color: #6c757d;
  font-size: 0.9em;
}

.upload-btn {
  background: linear-gradient(45deg, #3498db, #2980b9);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

.upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.upload-btn:active {
  transform: translateY(0);
}

.upload-hint {
  color: #6c757d;
  font-size: 0.95em;
  margin: 0;
}

/* 숨은그림 게임 스타일 */
.hidden-game-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #f0f0f0;
}

.hidden-game-upload {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.hidden-game-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hidden-points-input {
  width: 70px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #ced4da;
}

.hidden-game-canvas-container {
  max-width: 100%;
}

#hiddenImageCanvas {
  border: 2px solid #ddd;
  border-radius: 10px;
  cursor: crosshair;
  background: #ffffff;
}

.hidden-game-message {
  text-align: center;
  margin-top: 10px;
  color: #495057;
  font-size: 0.95em;
}

.hidden-points-wrapper {
  margin-top: 30px;
}

.hidden-points-wrapper h3 {
  text-align: center;
  margin-bottom: 15px;
  color: #2c3e50;
}

.hidden-points-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.hidden-point-item {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.hidden-point-item.found {
  border-color: #28a745;
  background: #e9f7ef;
}

.hidden-point-preview {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: #f8f9fa;
  flex-shrink: 0;
}

.hidden-point-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hidden-point-info h4 {
  margin: 0 0 4px;
  font-size: 0.95em;
  color: #2c3e50;
}

.hidden-point-info p {
  margin: 0;
  font-size: 0.85em;
  color: #6c757d;
}

.no-points {
  text-align: center;
  color: #6c757d;
  font-size: 0.9em;
}

/* 파일 업로드 진행률 */
.upload-progress {
  width: 100%;
  height: 4px;
  background: #e9ecef;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 10px;
}

.upload-progress-bar {
  height: 100%;
  background: linear-gradient(45deg, #3498db, #2980b9);
  width: 0%;
  transition: width 0.3s ease;
}

/* 파일 타입별 아이콘 색상 */
.file-icon[data-type="image"] {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.file-icon[data-type="document"] {
  background: linear-gradient(135deg, #3498db, #2980b9);
}

.file-icon[data-type="code"] {
  background: linear-gradient(135deg, #f39c12, #e67e22);
}

.file-icon[data-type="archive"] {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .file-item {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .file-info {
    text-align: center;
  }

  .file-actions {
    justify-content: center;
  }

  .upload-btn {
    padding: 10px 20px;
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .file-upload-area {
    padding: 20px;
  }

  .file-item {
    padding: 15px;
  }

  .file-icon {
    width: 40px;
    height: 40px;
    font-size: 1.5em;
  }
}

/* 그림판 스타일 */
.drawing-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #f0f0f0;
}

.drawing-tools {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

.tool-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tool-group label {
  font-weight: 600;
  color: #2c3e50;
  min-width: 80px;
}

.brush-slider {
  width: 120px;
  height: 6px;
  border-radius: 3px;
  background: #ddd;
  outline: none;
  -webkit-appearance: none;
}

.brush-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3498db;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.brush-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3498db;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

#brushSizeValue {
  font-weight: 600;
  color: #3498db;
  min-width: 40px;
}

.color-picker {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: none;
}

.color-picker::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-picker::-webkit-color-swatch {
  border: 2px solid #ddd;
  border-radius: 8px;
}

.tool-btn {
  background: linear-gradient(45deg, #3498db, #2980b9);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9em;
}

.tool-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.tool-btn:active {
  transform: translateY(0);
}

.canvas-container {
  display: flex;
  justify-content: center;
  margin: 30px 0;
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#drawingCanvas {
  border: 2px solid #ddd;
  border-radius: 10px;
  cursor: crosshair;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#drawingCanvas:hover {
  border-color: #3498db;
}

.saved-drawings {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #f0f0f0;
}

.saved-drawings h3 {
  color: #2c3e50;
  font-size: 1.5em;
  margin-bottom: 20px;
  text-align: center;
}

.drawings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.drawing-item {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.drawing-item:hover {
  border-color: #3498db;
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.1);
  transform: translateY(-2px);
}

.drawing-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
}

.drawing-preview canvas {
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
}

.drawing-info {
  text-align: center;
}

.drawing-info h4 {
  color: #2c3e50;
  font-size: 1em;
  margin-bottom: 5px;
  font-weight: 600;
}

.drawing-info p {
  color: #6c757d;
  font-size: 0.8em;
  margin: 0;
}

.drawing-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .drawing-tools {
    flex-direction: column;
    gap: 15px;
  }

  .tool-group {
    justify-content: center;
  }

  #drawingCanvas {
    width: 100%;
    max-width: 500px;
    height: auto;
  }

  .drawings-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .drawing-tools {
    padding: 15px;
  }

  .tool-btn {
    padding: 8px 12px;
    font-size: 0.8em;
  }

  .canvas-container {
    padding: 10px;
  }

  .drawings-grid {
    grid-template-columns: 1fr;
  }
}
