/**
 * Avatar Cropper UI Styles
 * Estilos específicos para funcionalidade de Avatar Cropper
 * 
 * @author Kolansky Developer
 * @version 1.0.0
 */

/* ====================================
   Avatar Container (Hover Effects)
==================================== */
.avatar-container {
   position: relative;
   cursor: pointer;
   transition: all 0.3s ease;
   display: inline-block;
}

.avatar-container:hover {
   transform: scale(1.02);
}

.avatar-container .avatar-simple {
   position: relative;
   display: block;
   border-radius: 50%;
   overflow: hidden;
   border: 3px solid transparent;
   transition: all 0.3s ease;
}

.avatar-container:hover .avatar-simple {
   /* Removido border-color e box-shadow para compatibilidade com ambos os temas */
}

.avatar-container .avatar-simple img {
   border-radius: 50%;
   object-fit: cover;
   transition: all 0.3s ease;
}

/* Overlay transparente */
.avatar-container::before {
   content: "";
   position: absolute;
   top: 3px;
   left: 3px;
   right: 3px;
   bottom: 3px;
   background: var(--dark, #343a40);
   border-radius: 50%;
   opacity: 0;
   transition: opacity 0.3s ease;
   z-index: 1;
}

.avatar-container:hover::before {
   opacity: 0.7;
}

/* Texto "Alterar" */
.avatar-container::after {
   content: "Alterar";
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   color: white;
   font-size: 0.9em;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 1px;
   opacity: 0;
   transition: opacity 0.3s ease;
   z-index: 2;
   pointer-events: none;
}

.avatar-container:hover::after {
   opacity: 1;
}

/* Versão responsiva para telas menores */
@media (max-width: 768px) {
   .avatar-container::after {
      font-size: 0.8em;
   }
}

/* ====================================
   Avatar Cropper Modal Customization
==================================== */
.custom-avatar-modal .modal-content {
   border-radius: 15px;
   border: none;
   box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.custom-modal-body {
   padding: 1rem;
}

.btn-gradient-primary {
   background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
   border: none;
   box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
   transition: all 0.3s ease;
}

.btn-gradient-primary:hover {
   transform: translateY(-2px);
   box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.custom-editor-container {
   border-radius: 12px;
   border: 2px solid var(--primary, #12153b);
   background: linear-gradient(135deg, rgba(18, 21, 59, 0.05) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.custom-upload-area {
   background: linear-gradient(135deg, rgba(18, 21, 59, 0.1) 0%, rgba(102, 126, 234, 0.1) 100%);
   border: 2px dashed var(--primary, #12153b);
   transition: all 0.3s ease;
}

.custom-upload-area:hover {
   background: linear-gradient(135deg, #12153b 0%, #667eea 100%);
   transform: scale(1.02);
}