/* ===== IMPORTS E RESET ===== */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  background-color: #000;
  color: #fff;
  font-family: "Poppins", sans-serif;
}

.toast-content .toast-title {
  color: #000;
}

/* ===== UTILITÁRIOS ===== */
.home-link {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s;
}

.home-link:hover {
  color: #686868;
}

/* ===== MAIN BLOCK ===== */
.main-block {
  width: 100%;
  height: 600px;
  background-image: url("../assets/images/login_bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-block:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: -1;
}

.barber-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 20px;
}

.barber-info h1 {
  font-weight: 800;
  text-transform: uppercase;
}

.barber-info img {
  width: 130px;
}

.barber-info p {
  max-width: 500px;
  font-weight: 200;
}

.barber-info button {
  box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 15px 40px;
  border-radius: 5px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  transition: all 0.3s ease;
  margin: 10px 0;
}

.barber-info button:hover {
  background-color: #333;
  color: #fff;
  transform: scale(1.05);
}

.ver-agendamentos {
  color: #a3a3a3;
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
}

.ver-agendamentos:hover {
  color: #fff;
}

/* ===== BARBER DETAILS ===== */
.barber-details {
  background-color: #0c0c0c;
  border-radius: 20px;
  max-width: 900px;
  margin: 100px auto;
  display: flex;
  padding: 20px 50px;
  gap: 10px;
  align-items: center;
}

.infos {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.infos-item {
  display: flex;
  gap: 15px;
  align-items: center;
  font-weight: 300;
  font-size: 0.9rem;
}

.infos-item i {
  color: #4a4a4a;
  min-width: 20px;
}

.map {
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
}

.map iframe {
  width: 100%;
  height: 200px;
  border: 0;
  border-radius: 20px;
}

/* ===== STATUS ===== */
.status-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-ponto {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.status-ponto.verde {
  background-color: #28a745;
  animation: pulse 2s infinite;
  box-shadow: 0 0 0 rgba(40, 167, 69, 0.4);
}

.status-ponto.vermelho {
  display: none;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}

.status-texto {
  font-weight: 600;
}

.status-texto.verde {
  color: #28a745;
}

.status-texto.vermelho {
  color: #dc3545;
}

/* ===== POPOVER ===== */
.schedule-popover {
  position: relative;
  cursor: help;
}

.popover-content {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 10px;
  background: linear-gradient(145deg, #1a1a1ac0, #222222c0);
  backdrop-filter: blur(5px);
  border: 2px solid #333;
  border-radius: 12px;
  padding: 15px;
  min-width: 250px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  z-index: 1000;
  pointer-events: none;
}

.schedule-popover:hover .popover-content {
  visibility: visible;
  opacity: 1;
}

.popover-content::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -8px;
  border-width: 8px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.popover-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 2px solid #333;
  text-align: center;
}

.popover-dias {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.popover-dia {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.popover-dia-nome {
  color: #888;
  font-weight: 500;
}

.popover-dia-horario {
  color: #fff;
  font-weight: 400;
  text-align: right;
}

.popover-dia.hoje {
  background-color: rgba(40, 167, 69, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  margin: 0 -8px;
}

.popover-dia.hoje .popover-dia-nome {
  color: #28a745;
  font-weight: 600;
}

/* ===== FOOTER ===== */
.footer {
  padding: 20px;
  border-top: 1px solid #1a1a1a;
  text-align: center;
  font-weight: 300;
  font-size: 0.9rem;
}

/* ===== MODALS GERAIS ===== */
#modalAgendamento,
#modalMeusAgendamentos {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

#modalAgendamento.active,
#modalMeusAgendamentos.active {
  display: flex;
}

.modal-wrapper {
  background: linear-gradient(145deg, #0e0e0e 0%, #1a1a1a 100%);
  padding: 30px;
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid #333;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #333;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}

.close-btn {
  background: none;
  border: none;
  color: #666;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-btn:hover {
  color: #fff;
  background-color: #333;
}

/* ===== PROGRESS STEPS ===== */
.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
  padding: 0 10px;
}

.progress-steps::before {
  content: "";
  position: absolute;
  top: 25%;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #333;
  transform: translateY(-50%);
  z-index: 1;
}

.step-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.step {
  background-color: #1a1a1a;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #666;
  border: 2px solid #333;
  transition: all 0.3s ease;
}

.step.active {
  background: linear-gradient(145deg, #333333, #222);
  border-color: #666;
  color: #fff;
  transform: scale(1.2);
}

.step.completed {
  background: #28a745;
  border-color: #28a745;
  color: #fff;
  box-shadow: 0 0 10px #28a745;
}

.step-label {
  font-size: 0.7rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  white-space: nowrap;
}

.step-wrapper.completed .step-label,
.step-wrapper.active .step-label {
  color: #fff;
}

/* ===== FORMULÁRIOS ===== */
.form-modal {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  position: relative;
}

.form-modal label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #888;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-modal input,
.categories-select,
.provider-select,
.date-input-group input[type="date"] {
  width: 100%;
  padding: 12px 15px;
  background-color: #222;
  border: 2px solid #333;
  border-radius: 10px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-modal input:focus,
.categories-select:focus,
.provider-select:focus,
.date-input-group input[type="date"]:focus {
  outline: none;
  border-color: #666;
  background-color: #2a2a2a;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.form-modal input.error {
  border-color: #dc3545;
  background-color: #2a1a1a;
}

.form-modal input.error:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.form-modal input.valid {
  border-color: #28a745;
}

.form-modal input::placeholder {
  color: #555;
  font-weight: 300;
}

.error-message {
  color: #dc3545;
  font-size: 0.75rem;
  margin-top: 5px;
  display: none;
  font-weight: 300;
  padding-left: 5px;
}

.error-message.show {
  display: block;
}

/* ===== STEP CONTENT ===== */
.step-content {
  display: none;
}

.step-content.active {
  display: block;
}

/* ===== SERVIÇOS ===== */
.services-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.categories-select {
  cursor: pointer;
  margin-bottom: 10px;
}

.category-group {
  margin-bottom: 25px;
}

.category-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 15px;
  padding-bottom: 5px;
  border-bottom: 2px solid #333;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-card {
  background-color: #1a1a1a;
  border: 2px solid #333;
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-card:hover {
  border-color: #666;
  transform: translateX(5px);
}

.service-card.selected {
  border-color: #28a745;
  background-color: #1e2a1e;
}

.service-info {
  flex: 1;
}

.service-name {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 5px;
}

.service-description {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 5px;
}

.service-details {
  display: flex;
  gap: 15px;
  font-size: 0.85rem;
}

.service-duration {
  color: #666;
}

.service-duration i {
  margin-right: 5px;
}

.service-price {
  font-weight: 600;
  color: #28a745;
}

.service-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #444;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 15px;
  color: #28a745;
  font-size: 0.9rem;
}

.service-card.selected .service-check {
  border-color: #28a745;
  background-color: #28a745;
  color: #fff;
}

.provider-select {
  cursor: pointer;
  margin-top: 20px;
}

.provider-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.provider-select option {
  background-color: #222;
  color: #fff;
}

/* ===== DATA/HORÁRIO ===== */
.datetime-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.date-input-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #888;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.date-input-group input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

.period-buttons {
  display: flex;
  gap: 15px;
  justify-content: space-between;
}

.period-btn {
  flex: 1;
  padding: 15px;
  background-color: #222;
  border: 2px solid #333;
  border-radius: 10px;
  color: #888;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.period-btn i {
  font-size: 1.1rem;
}

.period-btn.active {
  background: linear-gradient(145deg, #333, #222);
  border-color: #28a745;
  color: #fff;
}

.period-btn.active i {
  color: #28a745;
}

.period-btn:not(:disabled):hover {
  background-color: #333;
  border-color: #666;
  color: #fff;
}

.period-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  filter: grayscale(1);
}

.times-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.times-label {
  font-size: 0.9rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 10px;
}

.times-label i {
  color: #28a745;
}

.times-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-height: 200px;
  overflow-y: auto;
  padding: 5px;
  background-color: #1a1a1a;
  border-radius: 12px;
  border: 2px solid #333;
  min-height: 60px;
}

.times-grid::-webkit-scrollbar {
  width: 6px;
}

.times-grid::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 10px;
}

.times-grid::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 10px;
}

.times-grid::-webkit-scrollbar-thumb:hover {
  background: #444;
}

.time-card {
  min-width: 85px;
  padding: 12px 15px;
  background-color: #222;
  border: 2px solid #333;
  border-radius: 8px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.time-card:hover:not(.disabled) {
  border-color: #28a745;
  background-color: #2a2a2a;
  transform: translateY(-2px);
}

.time-card.selected {
  background-color: #28a745;
  border-color: #28a745;
  color: #fff;
}

.time-card.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background-color: #1a1a1a;
  border-color: #333;
  text-decoration: line-through;
}

.no-times {
  width: 100%;
  padding: 30px;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}

.no-times i {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #333;
}

/* ===== SERVICE SUMMARY ===== */
.service-summary {
  margin-top: 25px;
  padding: 20px;
  background: linear-gradient(145deg, #1a1a1a, #222);
  border: 2px solid #333;
  border-radius: 12px;
}

.service-summary h4 {
  margin: 0 0 15px 0;
  font-size: 1rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-summary h4 i {
  color: #28a745;
}

.summary-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.summary-info {
  flex: 1;
}

.summary-info h3 {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
}

.summary-description {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.summary-details {
  display: flex;
  gap: 20px;
}

.summary-detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a3a3a3;
  font-size: 0.9rem;
}

.summary-detail-item i {
  color: #28a745;
}

.summary-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #28a745;
  white-space: nowrap;
}

/* ===== MODAL FOOTER ===== */
.modal-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #333;
  display: flex;
  gap: 15px;
  justify-content: space-between;
}

.footer-left,
.footer-right {
  display: flex;
  gap: 10px;
}

.modal-footer button {
  padding: 12px 25px;
  border-radius: 8px;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-cancelar {
  background-color: transparent;
  border: 2px solid #333 !important;
  color: #888;
}

.btn-cancelar:hover {
  background-color: #333;
  color: #fff;
}

.btn-voltar {
  background-color: transparent;
  border: 2px solid #333 !important;
  color: #888;
}

.btn-voltar:hover {
  background-color: #333;
  color: #fff;
}

.btn-avancar,
.btn-reservar,
.btn-buscar,
.btn-nova-consulta {
  background: linear-gradient(145deg, #333, #222);
  border: 2px solid #444 !important;
  color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-avancar:hover,
.btn-reservar:hover,
.btn-buscar:hover,
.btn-nova-consulta:hover {
  background: linear-gradient(145deg, #444, #333);
  border-color: #666 !important;
  transform: translateY(-2px);
}

/* ===== SUCESSO ===== */
.success-container {
  text-align: center;
  padding: 30px 20px;
  animation: successFadeIn 0.5s ease;
}

@keyframes successFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.icon-success {
  font-size: 6rem;
  color: #28a745;
  margin-bottom: 20px;
  animation: successIcon 0.5s ease;
}

@keyframes successIcon {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.success-container h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #fff;
  font-weight: 600;
}

.success-container p {
  color: #888;
  margin-bottom: 30px;
  font-size: 1rem;
}

.success-container .buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-ver-reservas {
  background: linear-gradient(145deg, #28a745, #218838);
  border: 2px solid #34ce57 !important;
  color: #fff;
  padding: 15px 40px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 15px;
}

.btn-ver-reservas:hover {
  background: linear-gradient(145deg, #218838, #1e7e34);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
}

.btn-fechar {
  background-color: transparent;
  border: 2px solid #333 !important;
  color: #888;
  padding: 15px 40px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-fechar:hover {
  background-color: #333;
  color: #fff;
}

/* ===== MEUS AGENDAMENTOS ===== */
.cliente-info-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  color: white;
  background-color: #212121;
  border: 2px solid #333;
}

.cliente-dados .client-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  gap: 15px;
  align-items: center;
}

.cliente-dados .client-name i {
  color: #28a745;
}

.cliente-dados p {
  margin: 5px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  opacity: 0.9;
}

.agendamentos-section {
  margin-bottom: 30px;
}

.section-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title i {
  color: #5a5a5a;
}

.agendamentos-lista {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.agendamento-card {
  background: #212121;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #636363;
}

.agendamento-card.historico {
  border-left-color: #9ca3af;
  opacity: 0.9;
}

.agendamento-card.cancelado {
  border-left-color: #ef4444;
  opacity: 0.8;
}

.agendamento-card.cancelado .service-price {
  color: #6b7280;
  text-decoration: line-through;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.service-info h4 {
  margin: 0 0 5px 0;
  font-size: 16px;
}

.service-price {
  font-size: 18px;
  font-weight: 700;
  color: #10b981;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.status-agendado {
  background: #e0e7ff;
  color: #818cf8;
}

.status-confirmado {
  background: #dcfce7;
  color: #166534;
}

.status-finalizado {
  background: #f3f4f6;
  color: #4b5563;
}

.status-cancelado {
  background: #fee2e2;
  color: #991b1b;
}

.card-body {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 15px;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.info-row i {
  width: 16px;
  color: #4b4b4b;
}

.card-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border-top: 1px solid #2b2b2b;
  padding-top: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-cancelar-agendamento {
  background: #fee2e2;
  color: #991b1b;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s;
  white-space: nowrap;
}

.btn-cancelar-agendamento:hover:not(:disabled) {
  background: #fecaca;
}

.btn-cancelar-agendamento:disabled {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-cancelar-agendamento:disabled i {
  color: #9ca3af;
}

.cancel-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #ef4444;
  padding: 6px 12px;
  border-radius: 6px;
  flex: 1;
  min-width: 200px;
}

.cancel-info i {
  font-size: 14px;
  color: #ef4444;
}

.tempo-restante {
  font-size: 0.9rem;
  color: #28a745;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-right: 10px;
}

.tempo-restante i {
  color: #28a745;
}

.empty-state {
  text-align: center;
  padding: 30px;
  background: #212121;
  border-radius: 8px;
}

.empty-state i {
  font-size: 40px;
  margin-bottom: 10px;
  color: #9ca3af;
}

.empty-state p {
  margin: 0;
  font-size: 14px;
}

/* ===== HISTÓRICO TOGGLE ===== */
.btn-toggle-historico {
  background: transparent;
  border: 2px solid #333;
  color: #fff;
  padding: 8px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-toggle-historico:hover {
  background-color: #333;
  border-color: #28a745;
}

.btn-toggle-historico.active {
  background-color: #28a745;
  border-color: #28a745;
}

#historicoContainer {
  display: none;
  transition: all 0.3s ease;
}

#historicoContainer.show {
  display: flex !important;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fa-chevron-down {
  transition: transform 0.3s ease;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 768px) {
  .barber-details {
    flex-direction: column;
    padding: 20px;
  }

  .summary-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .summary-price {
    align-self: flex-end;
  }

  .period-buttons {
    flex-direction: column;
  }

  .card-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .cancel-info {
    width: 100%;
  }

  .btn-cancelar-agendamento {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .modal-wrapper {
    width: 100%;
    height: 100%;
    max-width: 100%;
    border-radius: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: modalFadeInMobile 0.3s ease;
  }

  @keyframes modalFadeInMobile {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  #modalAgendamento .modal-content,
  #modalMeusAgendamentos .modal-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
  }

  .form-modal {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .modal-header {
    padding-bottom: 15px;
    margin-bottom: 15px;
  }

  .modal-footer {
    margin-top: 15px;
    padding-top: 15px;
  }

  .step-label {
    font-size: 0.6rem;
  }

  .time-card {
    min-width: calc(50% - 6px);
  }

  .success-container .buttons {
    flex-direction: column;
    gap: 10px;
  }

  .btn-ver-reservas,
  .btn-fechar {
    width: 100%;
    margin-left: 0;
  }

  .service-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .service-check {
    align-self: flex-end;
  }

  .agendamento-detalhes {
    flex-direction: column;
  }

  .agendamento-actions {
    justify-content: center;
  }
}

@media (max-width: 320px) {
  .modal-wrapper {
    padding: 15px;
  }

  .form-modal {
    gap: 15px;
  }

  .form-modal input {
    padding: 10px 12px;
  }

  .modal-footer button {
    padding: 10px 20px;
  }

  .step-label {
    font-size: 0.5rem;
  }

  .summary-details {
    flex-direction: column;
    gap: 5px;
  }
}
