/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Wrapper mit Card-Stil */
.cua-wrapper {
  text-align: center;
  margin: 40px auto;
  max-width: 360px;
  background: #00354d;
  padding: 30px 20px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  font-family: "Segoe UI", sans-serif;
  color: white;
  position: relative;
}

/* Avatar-Vorschau */
.cua-avatar-preview img,
#cua-current-avatar {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #ffef42;
  margin-bottom: 8px;
}

/* Erfolgsmeldung */
#cua-success-msg {
  margin-top: 20px;
  color: #00ff99;
  font-weight: bold;
}

/* Neue dynamische Message nach Upload */
.cua-great-message {
  margin-top: 20px;
  background: limegreen;
  color: black;
  padding: 12px 18px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 10px;
  display: inline-block;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.4s ease-out forwards;
}

/* Animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* File input */
#cua-file {
  margin: 20px auto;
  padding: 10px;
  background: white;
  color: #00354d;
  border-radius: 8px;
  border: none;
  font-weight: bold;
  max-width: 100%;
  display: inline-block;
}

/* Crop Area */
#cua-crop-area {
  margin: 15px auto;
  max-width: 100%;
}

/* Slider */
#cua-zoom-slider {
  margin-top: 10px;
  width: 100%;
}

/* Buttons */
.cua-button-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.cua-btn {
  padding: 10px 20px;
  border-radius: 25px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

#cua-upload-btn {
  background: #0099cc;
  color: white;
}

#cua-upload-btn:hover {
  background: #0073aa;
}

#cua-cancel-btn {
  background: #ffef42;
  color: #00354d;
}

#cua-cancel-btn:hover {
  background: #ffe100;
}

/* Sidebar-Bild */
.user-avatar-sidebar img.user-avatar-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

/* Responsive */
@media (max-width: 480px) {
  .cua-wrapper {
    padding: 20px 15px;
  }

  .cua-button-group {
    flex-direction: column;
    gap: 10px;
  }

  .cua-btn {
    width: 100%;
  }

  #cua-file {
    width: 100%;
  }
}
