﻿.header_user {
  width: 100%;
  padding: 1rem 2rem;
  background: #f7f3f9;
  border-bottom: 1px solid #e0d3ea;
  margin-bottom: 1rem;
  box-sizing: border-box;
}

.header_user_nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.header_user_nome {
  font-weight: bold;
  color: #7f5698;
  font-size: 1.1rem;
}

.header_user_toggle {
  display: none;
}

.header_user_button {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid #dcc0da;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(127, 86, 152, 0.12);
}

.header_user_button span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #7f5698;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.header_user_overlay {
  display: none;
}

.header_user_menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.5rem;
}

.header_user_link {
  color: #7f5698;
  text-decoration: none;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.header_user_link:hover {
  background: #dcc0da;
  color: #4b2c5e;
}

.header_user_sair {
  background: #e57373;
  color: #fff;
  margin-left: 1rem;
}

.header_user_sair:hover {
  background: #c62828;
  color: #fff;
}

@media (max-width: 768px) {
  .header_user {
    padding: 1rem;
  }

  .header_user_nav {
    min-height: 46px;
  }

  .header_user_nome {
    font-size: 1rem;
    max-width: calc(100% - 62px);
  }

  .header_user_button {
    display: inline-flex;
  }

  .header_user_overlay {
    position: fixed;
    inset: 0;
    background: rgba(44, 22, 55, 0.45);
    backdrop-filter: blur(3px);
    z-index: 999;
  }

  .header_user_menu {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: min(320px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: 4.5rem 1rem 1rem;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(44, 22, 55, 0.22);
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    z-index: 1000;
  }

  .header_user_link {
    display: block;
    padding: 0.9rem 1rem;
    text-align: left;
    background: #f7f3f9;
  }

  .header_user_sair {
    margin-left: 0;
    text-align: center;
  }

  .header_user_toggle:checked + .header_user_button {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1001;
    border-color: transparent;
    box-shadow: none;
  }

  .header_user_toggle:checked + .header_user_button span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .header_user_toggle:checked + .header_user_button span:nth-child(2) {
    opacity: 0;
  }

  .header_user_toggle:checked + .header_user_button span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .header_user_toggle:checked + .header_user_button + .header_user_overlay {
    display: block;
  }

  .header_user_toggle:checked + .header_user_button + .header_user_overlay + .header_user_menu {
    display: flex;
  }
}

/* Carrossel de Feedbacks */
.feedback-slide {
  text-align: center;
  padding: 40px 20px;
}

.feedback-slide .aux-modern-heading-primary {
  text-align: center;
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #5A5494;
}

.feedback-slide .aux-modern-heading-secondary {
  text-align: center;
  margin-bottom: 10px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #B483B3;
}

.feedback-slide .aux-modern-heading-description {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #D37CD2;
}

.aux-custom-nav {
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 48px;
  color: #a67fb8;
  user-select: none;
}

.aux-custom-nav:hover {
  color: #7f5698;
  transform: scale(1.2);
}

.spinner-loader {
  color: #7f5698 !important;
  background-color: #7f5698 !important;
}

.modal-image-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.galeria-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.galeria-item:hover {
  transform: translateY(-2px);
}

.galeria-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.galeria-thumb {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.galeria-item:hover .galeria-thumb {
  transform: scale(1.05);
}

.galeria-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  gap: 10px;
}

.galeria-item:hover .galeria-overlay {
  opacity: 1;
}

.galeria-overlay .btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  color: white;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
  padding: 0;
}

.galeria-overlay .btn:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.1);
}

.btn-view:hover {
  border-color: #0d6efd;
  color: #0d6efd;
}

.btn-delete:hover {
  border-color: #dc3545;
  color: #dc3545;
}

.btn-selecionar {
  background: rgba(40, 167, 69, 0.8) !important;
  border-color: #28a745 !important;
  color: white !important;
}

.btn-selecionar:hover {
  background: rgba(40, 167, 69, 1) !important;
  border-color: #1e7e34 !important;
  color: white !important;
  transform: scale(1.1);
}

/* Feedbacks Admin */
.feedbacks-admin-card {
  border-radius: 14px;
  border: 1px solid #eadff1;
  overflow: hidden;
}
.feedbacks-admin-table thead th {
  background: #f7f3f9;
  color: #5a4a66;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
  border-bottom: 1px solid #eadff1;
  padding: 0.9rem 1.2rem;
}
.feedbacks-admin-table tbody td {
  padding: 0.95rem 1.2rem;
  border-color: #f0e7f5;
}
.feedbacks-admin-table tbody tr:hover {
  background: #fcf9fe;
}
.feedbacks-admin-cliente {
  font-weight: 700;
  color: #7f5698;
}
.feedbacks-admin-servico {
  color: #6d6d6d;
}
.feedbacks-admin-actions {
  display: inline-flex;
  gap: 0.5rem;
}
.feedbacks-admin-actions .btn {
  min-width: 84px;
}
.feedbacks-admin-vazio {
  font-style: italic;
}

#btn-abrir-galeria {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.ratio-1x1 {
  --bs-aspect-ratio: 100%;
}


.custom-form {
  max-width: 100% !important;
}

input.custom-form {
  max-height: 30px !important;
}

/* BotÃµes Flutuantes de EdiÃ§Ã£o de Imagens */
.floating-edit-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: none;
  flex-direction: column;
  gap: 12px;
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.btn-floating {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  min-width: 200px;
  justify-content: center;
}

.btn-floating:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.btn-floating:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.btn-floating i {
  font-size: 16px;
}

#btn-salvar-trocas {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
}

#btn-salvar-trocas:hover {
  background: linear-gradient(135deg, #218838 0%, #1aa179 100%);
}

#btn-continuar-trocando {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
}

#btn-continuar-trocando:hover {
  background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

#btn-cancelar-trocas {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
}

#btn-cancelar-trocas:hover {
  background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
}

/* Responsive */
@media (max-width: 768px) {
  .floating-edit-buttons {
    bottom: 20px;
    right: 20px;
    left: 20px;
  }

  .btn-floating {
    min-width: auto;
    width: 100%;
  }
}

/* Exemplos de ServiÃ§os - Imagens adaptÃ¡veis */
.exemplo-img {
  object-fit: contain; /* contain mostra a imagem completa sem cortar */
  object-position: center;
  background: #f8f8f8; /* fundo para preencher espaÃ§os vazios */
  min-height: 60px;
}

/* Cards dos exemplos - altura flexÃ­vel */
.exemplo-item {
  height: auto !important;
  min-height: 300px;
  margin-bottom: 1.5rem;
}

.exemplo-item .card-body {
  overflow: hidden;
}

.exemplo-par-imagem {
  overflow: hidden;
}

/* Garantir que as imagens nÃ£o quebrem o layout */
.exemplo-par-imagem img {
  max-width: 100% !important;
  height: auto !important;
  max-height: 120px !important;
}

.container-cropper {
  display: flex;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  padding: 20px;
  border-radius: 8px;
}

.crop-area {
  flex: 2;
  max-width: 600px;
}

/* Importante: A imagem precisa ter display block e 100% de largura */
.img-cropper {
  display: block;
  max-width: 100%;
}

.controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.input-group {
  display: flex;
  flex-direction: column;
}

input {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-top: 5px;
}

button {
  background: #2ecc71;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 4px;
}

