/* Botão Fixo no Rodapé */
.fixed-bottom-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 15px 25px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 200px;
  justify-content: center;
}

.fixed-bottom-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 107, 53, 0.6);
  color: white;
  text-decoration: none;
}

.fixed-bottom-button i {
  font-size: 18px;
}

/* Responsividade do botão fixo */
@media (max-width: 768px) {
  .fixed-bottom-button {
    bottom: 15px;
    right: 15px;
    padding: 12px 20px;
    font-size: 14px;
    min-width: 160px;
  }
}

@media (max-width: 480px) {
  .fixed-bottom-button {
    bottom: 10px;
    right: 10px;
    padding: 10px 15px;
    font-size: 13px;
    min-width: 140px;
  }
}

/* Modal Styles */
.modal-dialog-top {
  margin-top: 0 !important;
  margin-bottom: auto !important;
}

.modal-dialog-top.modal-dialog-centered {
  transform: none !important;
  top: 0 !important;
}
.modal-content {
  backdrop-filter: blur(10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-backdrop {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.servico-modal-icon {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.info-item {
  transition: all 0.3s ease;
  padding: 10px;
  border-radius: 10px;
}

.info-item:hover {
  background: rgba(255, 183, 25, 0.1);
  transform: translateY(-5px);
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal-dialog {
    margin: 10px;
  }
  
  .servico-modal-price span {
    font-size: 2rem !important;
  }
  
  .servico-modal-icon i {
    font-size: 3rem !important;
  }
}

/* Animação de entrada dos cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Efeito de brilho nos ícones */
.servico-icon i,
.servico-modal-icon i {
  transition: all 0.3s ease;
}

/* Melhorar acessibilidade */
.servico-card:focus {
  outline: 3px solid #ffb719;
  outline-offset: 2px;
}

/* Efeito de loading no botão */
.btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn.loading i.fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Efeitos de hover nos cards de serviço */
.servico-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.servico-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,183,25,0.1), transparent);
  transition: left 0.5s ease;
}

.servico-card:hover::before {
  left: 100%;
}

.servico-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(255,183,25,0.3);
  border-color: #ffa500;
}

.servico-icon {
  transition: all 0.3s ease;
}

.servico-card:hover .servico-icon {
  transform: scale(1.1);
}

.servico-price {
  position: relative;
}

.servico-price::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: linear-gradient(45deg, #ffb719, #ffa500);
  border-radius: 1px;
}

/* Logo Animation */
.logo-container img {
  transition: all 0.3s ease;
}

.logo-container:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 12px rgba(255,183,25,0.4)) !important;
}

/* Responsive Design for Services */
@media (max-width: 768px) {
  .barbearia-section {
    padding: 40px 0 !important;
  }
  
  .servico-card {
    margin-bottom: 20px;
  }
  
  .servico-card h3 {
    font-size: 1.5rem !important;
  }
  
  .servico-price span {
    font-size: 1.5rem !important;
  }
}

@media (max-width: 576px) {
  .barbearia-section h1 {
    font-size: 2.5rem !important;
  }
  
  .servico-card {
    padding: 20px !important;
  }
}

/* Enhanced CSS Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Button Hover Effects */
.hero-buttons .btn:first-child:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255,183,25,0.4);
  background: linear-gradient(45deg, #ffa500, #ffb719) !important;
}

.hero-buttons .btn:last-child:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-banner {
    min-height: 60vh !important;
    background-attachment: scroll !important;
  }
  
  .display-3 {
    font-size: 2.5rem !important;
  }
  
  .lead {
    font-size: 1.2rem !important;
  }
  
  .hero-buttons {
    flex-direction: column !important;
  }
  
  .hero-stats h3 {
    font-size: 1.5rem !important;
  }
}

@media (max-width: 576px) {
  .display-3 {
    font-size: 2rem !important;
  }
  
  .hero-buttons .btn {
    min-width: auto !important;
    width: 100%;
  }
}

/* Estilos para seleção de profissionais */
.profissional-card {
  margin: 0.5rem;
}

.btn-profissional {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  border: 2px solid #ffc107;
  background: transparent;
  color: #ffc107;
  border-radius: 15px;
  transition: all 0.3s ease;
  min-width: 120px;
  text-decoration: none;
}

.btn-profissional:hover {
  background: #ffc107;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-profissional.selected {
  background: #ffc107;
  color: #000;
  border-color: #ffc107;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.5);
}

.profissional-avatar {
  margin-bottom: 0.5rem;
}

.profissional-avatar img {
  border: 2px solid #ffc107;
  transition: all 0.3s ease;
}

.btn-profissional:hover .profissional-avatar img,
.btn-profissional.selected .profissional-avatar img {
  border-color: #000;
}

.profissional-info h6 {
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
}

.profissional-info small {
  font-size: 0.75rem;
  opacity: 0.8;
}

.barbeiros-buttons-container {
  min-height: 100px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}

/* Loading spinner para profissionais */
.barbeiros-buttons-container .spinner-border {
  width: 2rem;
  height: 2rem;
}

/* Responsividade para profissionais */
@media (max-width: 768px) {
  .btn-profissional {
    min-width: 100px;
    padding: 0.75rem;
  }
  
  .profissional-avatar img {
    width: 50px !important;
    height: 50px !important;
  }
  
  .profissional-info h6 {
    font-size: 0.8rem;
  }
  
  .profissional-info small {
    font-size: 0.7rem;
  }
}

@media (max-width: 576px) {
  .barbeiros-buttons-container {
    gap: 0.25rem;
  }
  
  .profissional-card {
    margin: 0.25rem;
  }
  
  .btn-profissional {
    min-width: 80px;
    padding: 0.5rem;
  }
}

/* Estilos para horários disponíveis */
.horarios-container {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.horarios-grid {
  display: grid;
  gap: 1.5rem;
}

.horario-dia-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.horario-dia-card h5 {
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: capitalize;
}

.horarios-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-horario {
  background: transparent;
  border: 2px solid #ffc107;
  color: #ffc107;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  min-width: 120px;
  text-align: center;
}

.btn-horario:hover {
  background: #ffc107;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-horario.selected {
  background: #ffc107;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.5);
}

.btn-horario:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.25);
}

.horarios-info h4 {
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Responsividade para horários */
@media (max-width: 768px) {
  .horarios-container {
    padding: 1rem;
  }
  
  .horario-dia-card {
    padding: 1rem;
  }
  
  .btn-horario {
    min-width: 100px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .horarios-buttons {
    gap: 0.5rem;
  }
}

/* Modal de Agendamentos - Estilo Consistente com o Site */
#modalAgendamentos .modal-content {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border: 2px solid #ffb719;
  border-radius: 15px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

#modalAgendamentos .modal-header {
  background: rgba(255, 183, 25, 0.1);
  border-bottom: 2px solid #ffb719;
  border-radius: 13px 13px 0 0;
  padding: 1.5rem;
}

#modalAgendamentos .modal-title {
  color: #ffffff !important;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  font-size: 1.5rem;
}

#modalAgendamentos .modal-title i {
  color: #ffb719;
}

#modalAgendamentos .btn-close {
  filter: invert(1);
  opacity: 0.8;
}

#modalAgendamentos .btn-close:hover {
  opacity: 1;
}

#modalAgendamentos .modal-body {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  color: #ffffff;
}

#modalAgendamentos .form-label {
  color: #ffffff !important;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

#modalAgendamentos .form-label i {
  color: #ffb719;
}

#modalAgendamentos .form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #ffb719;
  border-radius: 10px;
  color: #ffffff;
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

#modalAgendamentos .form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffa500;
  box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
  color: #ffffff;
}

#modalAgendamentos .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

#modalAgendamentos .form-text {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

#modalAgendamentos .alert-info {
  background: rgba(255, 183, 25, 0.1);
  border: 1px solid #ffb719;
  color: #ffffff;
  border-radius: 10px;
}

#modalAgendamentos .alert-info h6 {
  color: #ffffff !important;
  font-weight: 600;
}

#modalAgendamentos .alert-info i {
  color: #ffb719;
}

#modalAgendamentos .alert-warning {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid #ffc107;
  color: #ffffff;
  border-radius: 10px;
}

#modalAgendamentos .alert-warning i {
  color: #ffc107;
}

#modalAgendamentos .modal-footer {
  background: rgba(255, 183, 25, 0.1);
  border-top: 2px solid #ffb719;
  border-radius: 0 0 13px 13px;
  padding: 1.5rem;
}

#modalAgendamentos .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

#modalAgendamentos .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
  transform: translateY(-2px);
}

#modalAgendamentos .btn-primary {
  background: linear-gradient(135deg, #ffb719, #ffa500);
  border: 2px solid #ffb719;
  color: #000000;
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

#modalAgendamentos .btn-primary:hover {
  background: linear-gradient(135deg, #ffa500, #ffb719);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
  color: #000000;
}

#modalAgendamentos .btn-primary:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

#modalAgendamentos .spinner-border.text-primary {
  color: #ffb719 !important;
}

#modalAgendamentos .text-center p {
  color: #ffffff !important;
  margin-top: 1rem;
}

/* Lista de agendamentos */
#modalAgendamentos #listaAgendamentos {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
}

#modalAgendamentos .agendamento-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 183, 25, 0.3);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

#modalAgendamentos .agendamento-item:hover {
  background: rgba(255, 183, 25, 0.1);
  border-color: #ffb719;
  transform: translateY(-2px);
}

#modalAgendamentos .agendamento-item h6 {
  color: #ffffff !important;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

#modalAgendamentos .agendamento-item p {
  color: rgba(255, 255, 255, 0.8) !important;
  margin-bottom: 0.25rem;
}

#modalAgendamentos .agendamento-item .badge {
  background: linear-gradient(135deg, #ffb719, #ffa500);
  color: #000000;
  font-weight: 500;
}

/* Responsividade do modal */
@media (max-width: 768px) {
  #modalAgendamentos .modal-dialog {
    margin: 1rem;
  }
  
  #modalAgendamentos .modal-body {
    padding: 1.5rem;
  }
  
  #modalAgendamentos .modal-header,
  #modalAgendamentos .modal-footer {
    padding: 1rem;
  }
  
  #modalAgendamentos .modal-title {
    font-size: 1.25rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
