/**
 * File: /assets/css/character-upload-modal.css
 * 
 * Purpose:
 * - Styles für Upload Modal
 * - Preview Boxes (Square, Rounded, Circle)
 * - Cropper Container
 * Load:     index.php
 */

/* Upload Preview Boxes */
.upload-preview {
  width: 100px;
  height: 100px;
  background: var(--bs-dark, #212529);
  border: 2px solid rgba(93, 214, 201, 0.4);
  margin: 0 auto;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.upload-preview-square {
  border-radius: 0;
}

.upload-preview-rounded {
  border-radius: 12px;
}

.upload-preview-circle {
  border-radius: 50%;
}

/* Cropper Image Container */
#uploadStep2 img {
  max-width: 100%;
  display: block;
}

/* Modal specific overrides */
#uploadIconModal .modal-body {
  min-height: 200px;
}

#uploadIconModal .cropper-container {
  max-height: 400px !important;
}

/* File input styling */
#uploadFileInput {
  cursor: pointer;
}

#uploadFileInput:hover {
  border-color: var(--bs-primary);
}

/* Progress spinner */
#uploadProgress {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .upload-preview {
    width: 80px;
    height: 80px;
  }
  
  #uploadIconModal .cropper-container {
    max-height: 300px !important;
  }
}