/* Заголовок раздела на страницах нейросетей */
.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 1.25rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #eee;
}

/* Drag & Drop зона - единый стиль */
.upload-container {
  width: 100%;
  margin: 20px 0;
}

.upload-area {
  position: relative;
  width: 100%;
  min-height: 120px;
  border: 2px dashed #e0e0e0;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.upload-area:hover {
  border-color: #0066FF;
  background: #fafafa;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.1);
}

.upload-area.drag-over {
  border-color: #0066FF;
  background: #f0f7ff;
  transform: scale(1.01);
  box-shadow: 0 8px 16px rgba(0, 102, 255, 0.15);
}

.file-input {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  pointer-events: none;
  z-index: 1;
}

.upload-icon {
  font-size: 28px;
  color: #999;
  transition: color 0.2s;
}

.upload-area:hover .upload-icon {
  color: #0066FF;
}

.upload-text {
  font-size: 15px;
  color: #666;
  text-align: center;
  line-height: 1.5;
  transition: color 0.2s;
}

.upload-area:hover .upload-text {
  color: #333;
}

/* Сетка превью */
.preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.preview-item {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  background: #f5f5f5;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

.preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #ff4444;
  padding: 0;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.preview-remove:hover {
  background: #ff4444;
  color: white;
  transform: scale(1.1);
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .upload-area {
    min-height: 100px;
  }

  .upload-content {
    padding: 16px;
    gap: 8px;
  }

  .upload-icon {
    font-size: 24px;
  }

  .upload-text {
    font-size: 14px;
  }

  .preview-item {
    width: 70px;
    height: 70px;
  }
}
