/* Custom Overrides */
:root {
  --sidebar-width: 260px;
}

#sidebar-wrapper {
  min-height: 100vh;
  width: var(--sidebar-width);
  margin-left: 0;
  transition: all .25s ease-out;
  flex-shrink: 0;
}

#wrapper.toggled #sidebar-wrapper {
  margin-left: calc(0 * var(--sidebar-width));
  width: 0;
  padding: 0 !important;
  overflow: hidden;
}

.card {
  border: none;
  border-radius: 12px;
}

/* Calendar Grid */
.clinic-col {
  min-width: 280px;
  background: white;
  border-radius: 12px;
  padding: 1rem;
  margin-right: 1rem;
  border: 1px solid #e9ecef;
}

.time-slot {
  padding: 0.5rem;
  border-bottom: 1px solid #f8f9fa;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
}

.time-slot:hover {
  background: #f0f9ff;
}

.slot-booked {
  background: #e3f2fd;
  border-left: 4px solid #0dcaf0;
  padding-left: 10px;
  font-size: 0.85rem;
}

.slot-empty {
  font-size: 0.8rem;
  color: #adb5bd;
  border: 1px dashed #dee2e6;
  transition: all 0.2s;
}

.slot-empty:hover {
  background: #f8f9fa;
  border-color: #0d6efd;
  color: #0d6efd;
  cursor: pointer;
}

.slots-container {
  max-height: 600px;
  overflow-y: auto;
  padding-right: 5px;
}

/* Custom Scrollbar for Slots */
.slots-container::-webkit-scrollbar {
  width: 4px;
}

.slots-container::-webkit-scrollbar-thumb {
  background: #ced4da;
  border-radius: 4px;
}

/* Animations */
.module-section {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.clinic-inactive {
  background-color: #f8f9fa;
  filter: grayscale(0.5);
  pointer-events: none;
  opacity: 0.6;
}

.slot-booked+.slot-booked {
  margin-top: -10px;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-xs {
  padding: 1px 5px;
  font-size: 0.75rem;
}
