/* ========================================
   VARIÁVEIS CSS E RESET
======================================== */
:root {
  --primary-color: #3bdda1;
  --accent-color: #3bdda1;
  --dark-bg: #1a1a1a;
  --bg-color: #ffffff;
  --card-bg: #ffffff8f;
  --card-hover: #f8f9fa;
  --text-primary: #333333;
  --text-secondary: #666666;
  --border-color: #e0e0e0;
  --confirmed-color: #4caf50;
  --pending-color: #ff9800;
  --canceled-color: #f44336;
  --warning-color: #ffc107;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========================================
   LAYOUT PRINCIPAL
======================================== */
.container-fluid {
  padding: 0;
  margin: 0;
  max-width: 100%;
  width: 100%;
}

.agendamentos-container {
  background-color: var(--bg-color);
  padding: 30px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 60px);
  transition: background-color 0.3s ease;
}

/* ========================================
   CABEÇALHO DA PÁGINA
======================================== */
.page-header {
  margin-bottom: 20px;
}

.page-title {
  color: var(--accent-color);
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 5px;
  transition: color 0.3s ease;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 5px;
  transition: color 0.3s ease;
}

/* ========================================
   BARRA DE PESQUISA E AÇÕES
======================================== */
.search-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
  gap: 15px;
}

.search-bar {
  flex-grow: 1;
  max-width: 600px;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 10px 15px 10px 35px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.3s ease;
  margin-bottom: 10px;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--accent-color);
}

.search-bar i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.action-buttons {
  display: flex;
  gap: 10px;
}

/* ========================================
   BOTÕES
======================================== */
.btn-filter {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-filter:hover {
  background-color: var(--card-hover);
}

.btn-primary {
  background-color: var(--accent-color);
  border: none;
  color: white;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  font-size: 14px;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-today {
  background-color: #6fc4d5;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-today:hover {
  background-color: #5fb3c4;
}

.btn-save {
  width: 100%;
  padding: 10px;
  background-color: var(--success-color);
  border: none;
  border-radius: 4px;
  color: white;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-save:hover {
  background-color: #218838;
}

.btn-reschedule {
  padding: 4px 12px;
  background-color: var(--card-bg);
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reschedule:hover {
  background-color: var(--accent-color);
  color: white;
}

.btn-cancel {
  padding: 4px 12px;
  background-color: var(--card-bg);
  border: 1px solid var(--danger-color);
  color: var(--danger-color);
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cancel:hover {
  background-color: var(--danger-color);
  color: white;
}

/* ========================================
   NAVEGAÇÃO POR ABAS
======================================== */
.nav-tabs {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 20px;
}

.nav-tabs > div:first-child {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 15px;
}

.nav-tab {
  padding: 12px 20px;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.nav-tab.active {
  color: var(--accent-color);
}

.nav-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: background-color 0.3s ease;
}

/* ========================================
   CARDS DE SERVIÇOS
======================================== */
.servicos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.servico-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.servico-card:hover {
  background-color: var(--card-hover);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.servico-image {
  height: 150px;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  margin-bottom: 15px;
  position: relative;
}

.servico-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5));
  border-radius: 6px;
}

.servico-name {
  position: absolute;
  bottom: 10px;
  left: 15px;
  color: white;
  font-size: 18px;
  font-weight: 600;
  z-index: 2;
}

.servico-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.servico-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 13px;
}

.servico-info-item i {
  color: var(--accent-color);
}

.servico-actions {
  display: flex;
  justify-content: flex-end;
}

.btn-agendar {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  transition: all 0.2s;
}

.btn-agendar:hover {
  opacity: 0.9;
}

/* ========================================
   CALENDÁRIO
======================================== */
.calendar-container {
  background-color: #e6e6e6;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.calendar-navigation {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.calendar-nav-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.calendar-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.calendar-nav-btn,
.btn-calendar-month {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: none;
  background-color: var(--dark-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.calendar-nav-btn:hover,
.btn-calendar-month:hover {
  background-color: #495057;
}

.calendar-view {
  display: flex;
  gap: 20px;
  background-color: var(--bg-color);
  border-radius: 10px;
  overflow: hidden;
}

.calendar-sidebar {
  width: 300px;
  padding: 15px;
  border-right: 1px solid #eee;
}

.calendar-main {
  flex: 1;
}

.modern-calendar {
  width: 100%;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #eaeaea;
}

.month-year,
.current-date {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.div-lbl-calendar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 20px;
}

.div-label-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background-color: #2b2a33;
}

.weekdays,
.weekday-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid #eaeaea;
  background-color: var(--bg-color);
}

.weekday {
  background-color: var(--bg-color);
  text-align: center;
  color: #6c757d;
  font-weight: 500;
  font-size: 14px;
  padding: 10px;
}

.days,
.days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background-color: var(--bg-color);
  min-height: 400px;
}

.day,
.calendar-day,
.calendar-day-cell {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #eaeaea;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  position: relative;
  transition: all 0.2s ease;
}

.calendar-day-cell:hover:not(.other-month) {
  background-color: #f8f9fa;
}

.day:hover,
.calendar-day:hover {
  background-color: #f0f0f0;
}

.day.selected,
.calendar-day.selected {
  background-color: #f8f8e8;
}

.day.today,
.calendar-day.today,
.calendar-day-cell.today {
  font-weight: bold;
  color: #6fc4d5;
  border-radius: 3px;
}

.day.other-month,
.calendar-day.other-month {
  color: #adb5bd;
  opacity: 0.5;
}

.day.has-events::after,
.calendar-day.has-appointment::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-color);
}

.calendar-day.has-appointment {
  background-color: rgba(76, 175, 80, 0.1);
  color: var(--confirmed-color);
  font-weight: 600;
}

.appointment-count {
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 9px;
  background-color: var(--accent-color);
  color: var(--card-bg);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-row {
  color: rgb(148, 147, 147);
  justify-content: center;
  align-items: center;
  font-size: 14px;
  display: flex;
  height: 60px;
}

.monthly-calendar {
  width: 40%;
  padding: 15px;
  border-right: 1px solid var(--border-color);
  transition: border-color 0.3s ease;
}

/* ========================================
   CARDS DE AGENDAMENTOS
======================================== */
.appointments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  width: 100%;
}

.appointment-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.appointment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.appointment-cancel {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.appointment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background-color: var(--card-bg);
  border-bottom: 1px solid #e0e0e0;
}

.appointment-service {
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-icon-small {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--card-bg);
  border-radius: 4px;
}

.appointment-status {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.status-confirmed {
  background-color: var(--success-color);
  color: white;
}

.status-pending {
  background-color: rgba(255, 152, 0, 0.2);
  color: var(--pending-color);
}

.status-canceled {
  background-color: rgba(244, 67, 54, 0.2);
  color: var(--canceled-color);
}

.appointment-body {
  padding: 15px;
}

.appointment-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.appointment-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.appointment-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
}

.appointment-action {
  color: var(--accent-color);
  cursor: pointer;
  font-weight: 500;
}

/* ========================================
   FORMULÁRIOS
======================================== */
.appointment-form {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-title {
  color: var(--accent-color);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 15px;
}

.form-group label,
.lbl-schedule {
  display: block;
  margin-bottom: 6px;
  color: var(--text-secondary);
  font-size: 13px;
}

.form-control,
.form-schedule {
  width: 100%;
  padding: 8px 12px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-control:focus,
.form-schedule:focus {
  outline: none;
  border-color: var(--accent-color);
}

.form-row {
  display: flex;
  gap: 15px;
}

.form-row .form-group {
  flex: 1;
}

.lbl-required {
  color: var(--danger-color);
  font-size: 12px;
}

.lbl-warning {
  justify-content: center;
  color: #aca7a7;
  font-size: 10pt;
  display: flex;
}

select:disabled {
  background-color: #e9ecef;
}

/* ========================================
   HORÁRIOS DISPONÍVEIS
======================================== */
.time-slots-container {
  margin-top: 15px;
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
}

.time-slots-header {
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  display: flex;
}

.time-slots-title {
  font-weight: 400;
}

.time-slots-date {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 18px;
}

.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  width: 100%;
}

.time-slot {
  padding: 8px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
  box-sizing: border-box;
}

.time-slot:hover:not(.time-slot-disabled) {
  border-color: var(--accent-color);
  background-color: rgba(60, 189, 161, 0.05);
}

.time-slot-selected {
  background-color: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

.time-slot-disabled {
  background-color: #f5f5f5;
  color: #aaa;
  cursor: default;
}

.box-times {
  border: 3px #eee solid;
  overflow-x: hidden;
  overflow-y: auto;
  height: 168px;
  padding: 8px;
  width: 100%;
}

.card-hour {
  padding: 10px;
  display: flex;
  float: left;
  width: 20%;
}

.selected-datetime {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 12px;
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.selected-datetime-info {
  display: flex;
  align-items: center;
}

.selected-datetime-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}

.selected-datetime-text {
  font-size: 13px;
}

.selected-datetime-text strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.selected-datetime-change {
  color: var(--accent-color);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
}

.selected-datetime-change i {
  margin-right: 5px;
}

/* ========================================
   ESTADOS VAZIOS
======================================== */
.empty-state-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px;
  padding: 40px 20px;
  text-align: center;
  background: var(--bg-color);
  border-radius: 12px;
  margin: 20px 0;
}

.empty-state-content {
  max-width: 520px;
  width: 100%;
}

.empty-state-icon {
  position: relative;
  margin-bottom: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.icon-background {
  width: 130px;
  height: 130px;
  background: linear-gradient(135deg, var(--warning-color) 0%, var(--warning-color) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 35px rgba(74, 144, 226, 0.3);
  animation: pulse-schedule 2.5s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.icon-background::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shine 3s ease-in-out infinite;
}

.icon-background i {
  font-size: 52px;
  color: white;
  z-index: 2;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-align: center;
  line-height: 1;
  margin: 0;
  padding: 0;
  transform: translateY(0);
}

.floating-elements {
  position: absolute;
  top: -20px;
  left: -20px;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  pointer-events: none;
}

.floating-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #4a90e2;
  border-radius: 50%;
  opacity: 0.7;
}

.dot-1 {
  top: 15%;
  left: 8%;
  animation: float-schedule-1 4s ease-in-out infinite;
}

.dot-2 {
  top: 25%;
  right: 12%;
  animation: float-schedule-2 4s ease-in-out infinite 0.7s;
}

.dot-3 {
  bottom: 20%;
  left: 15%;
  animation: float-schedule-3 4s ease-in-out infinite 1.4s;
}

.floating-clock {
  position: absolute;
  top: 10%;
  right: 5%;
  font-size: 16px;
  color: #4a90e2;
  opacity: 0.6;
  animation: rotate-clock 8s linear infinite;
}

.empty-state-text {
  margin-bottom: 35px;
}

.empty-title {
  font-size: 26px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 15px;
  line-height: 1.2;
}

.empty-description {
  font-size: 17px;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 0;
}

.empty-state-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.btn-primary-empty {
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary-empty::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-primary-empty:hover::before {
  left: 100%;
}

.btn-primary-empty:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
  color: white;
  text-decoration: none;
}

.btn-secondary-empty {
  background: transparent;
  color: #4a90e2;
  border: 2px solid #4a90e2;
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-secondary-empty::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: #4a90e2;
  transition: width 0.3s ease;
  z-index: -1;
}

.btn-secondary-empty:hover::before {
  width: 100%;
}

.btn-secondary-empty:hover {
  color: white;
  transform: translateY(-3px);
  text-decoration: none;
}

.empty-state-tips {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid #e9ecef;
}

.tip-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6c757d;
  font-size: 14px;
  font-style: italic;
}

.tip-item i {
  color: var(--warning-color);
  font-size: 16px;
}

/* ========================================
   SEÇÕES DE CONTEÚDO
======================================== */
.content-section {
  display: none;
}

.content-section.active {
  display: block;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.section-title {
  color: var(--accent-color);
  font-size: 18px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.view-all {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: color 0.3s ease;
}

.view-all:hover {
  color: var(--accent-color);
}

.date-appointments {
  margin-top: 20px;
}

.no-appointments {
  text-align: center;
  padding: 20px;
  color: var(--text-secondary);
  background-color: var(--card-bg);
  border-radius: 8px;
}

/* ========================================
   CLASSES UTILITÁRIAS
======================================== */
.none,
.d-none {
  display: none;
}

.rescheduled {
  padding: 10px;
  background-color: var(--success-color);
  border: none;
  border-radius: 4px;
  color: white;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.card-appointment > h6 {
  margin-top: 32px;
}

.card-appointment > span {
  font-size: 8pt;
}

/* ========================================
   FULLCALENDAR CUSTOMIZATIONS
======================================== */
.fc-disabled-date {
  background-color: #b1afaf;
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.5;
}

.fc-daygrid-day-events {
  display: none;
}

.fc-daygrid-day-frame {
  cursor: pointer;
}

.fc-daygrid-day-number,
.fc .fc-col-header-cell-cushion {
  text-decoration: none;
  color: #333;
}

/* ========================================
   RODAPÉ MÓVEL
======================================== */
#show-navbar-footer {
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

#show-navbar-footer a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
}

#show-navbar-footer i {
  margin-bottom: 4px;
}

/* ========================================
   MODAIS
======================================== */
.modal-content {
  border-radius: 8px;
  overflow: hidden;
}

.modal-header {
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  margin: 0;
  font-weight: 500;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 15px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ========================================
   ANIMAÇÕES
======================================== */
@keyframes pulse-schedule {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 15px 35px rgba(74, 144, 226, 0.3);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 20px 40px rgba(74, 144, 226, 0.4);
  }
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  50% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
  100% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
}

@keyframes float-schedule-1 {
  0%,
  100% {
    transform: translateY(0px) translateX(0px);
  }
  25% {
    transform: translateY(-12px) translateX(6px);
  }
  50% {
    transform: translateY(8px) translateX(-4px);
  }
  75% {
    transform: translateY(-6px) translateX(8px);
  }
}

@keyframes float-schedule-2 {
  0%,
  100% {
    transform: translateY(0px) translateX(0px);
  }
  25% {
    transform: translateY(10px) translateX(-6px);
  }
  50% {
    transform: translateY(-8px) translateX(4px);
  }
  75% {
    transform: translateY(6px) translateX(-8px);
  }
}

@keyframes float-schedule-3 {
  0%,
  100% {
    transform: translateY(0px) translateX(0px);
  }
  25% {
    transform: translateY(-10px) translateX(4px);
  }
  50% {
    transform: translateY(8px) translateX(-6px);
  }
  75% {
    transform: translateY(-4px) translateX(10px);
  }
}

@keyframes rotate-clock {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ========================================
   RESPONSIVIDADE
======================================== */
@media (min-width: 769px) and (max-width: 1024px) {
  .agendamentos-container {
    max-width: 100%;
    padding: 25px 20px;
  }
}

@media (max-width: 992px) {
  .servicos-grid,
  .appointments-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .calendar-view {
    flex-direction: column;
  }

  .calendar-sidebar {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .agendamentos-container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 20px 15px;
    min-height: 100vh;
  }

  .container-fluid {
    padding: 0;
    margin: 0;
    max-width: 100%;
    width: 100%;
  }

  .servicos-grid,
  .appointments-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .search-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .search-bar {
    max-width: none;
    width: 100%;
  }

  .search-bar input {
    width: 100%;
    box-sizing: border-box;
  }

  .action-buttons {
    justify-content: space-between;
    width: 100%;
  }

  .time-slots-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .appointment-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .appointment-actions > div {
    display: flex;
    gap: 10px;
    width: 100%;
  }

  .appointment-actions > div button {
    flex: 1;
  }

  .nav-tab {
    font-size: 14px;
    padding: 8px 12px;
  }

  .nav-tabs > div:first-child {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .servico-card,
  .appointment-card {
    padding: 18px 15px;
  }

  .calendar-container {
    margin-left: 0;
    margin-right: 0;
    border-radius: 8px;
  }

  .appointment-form {
    margin-left: 0;
    margin-right: 0;
  }

  .form-control {
    width: 100%;
    box-sizing: border-box;
  }

  .empty-state-container {
    min-height: 350px;
    padding: 30px 15px;
    margin: 15px 0;
  }

  .icon-background {
    width: 110px;
    height: 110px;
  }

  .icon-background i {
    font-size: 44px;
  }

  .empty-title {
    font-size: 22px;
  }

  .empty-description {
    font-size: 15px;
  }

  .empty-state-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .btn-primary-empty,
  .btn-secondary-empty {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .floating-clock {
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .time-slots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .agendamentos-container {
    padding: 15px 10px;
  }

  .servico-card,
  .appointment-card {
    padding: 15px 12px;
  }

  .empty-state-container {
    min-height: 320px;
    padding: 25px 10px;
  }

  .empty-title {
    font-size: 20px;
  }

  .empty-description {
    font-size: 14px;
  }

  .tip-item {
    font-size: 13px;
  }
}

/* ========================================
   ESPAÇAMENTO FINAL PARA MOBILE
======================================== */
@media (max-width: 768px) {
  /* Adicionar padding-bottom aos containers principais */
  .agendamentos-container {
    padding-bottom: 40px; /* Aumentado de 20px para 40px */
  }

  /* Espaçamento adicional para os últimos elementos */
  .servicos-grid:last-child,
  .appointments-grid:last-child,
  .calendar-container:last-child,
  .appointment-form:last-child,
  .empty-state-container:last-child {
    margin-bottom: 30px;
  }

  /* Espaçamento específico para o final da página */
  .content-section:last-child {
    padding-bottom: 20px;
  }

  /* Garantir espaço no final do body */
  body {
    padding-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .agendamentos-container {
    padding-bottom: 50px; /* Ainda mais espaço para telas muito pequenas */
  }

  /* Espaçamento adicional para elementos finais em telas pequenas */
  .servicos-grid:last-child,
  .appointments-grid:last-child,
  .calendar-container:last-child,
  .appointment-form:last-child,
  .empty-state-container:last-child {
    margin-bottom: 40px;
  }
}
