/* Simplified Appointment Block Component */

.appointment-block {
  display: block;
  height: 100%;
  padding: var(--rem-6) var(--rem-8);
  border-radius: var(--radius-xs);
  text-decoration: none;
  color: white;
  font-size: var(--rem-11);
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
}

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

/* Appointment Types */
.appointment-block--new-patient {
  background: var(--primary-500);
}

.appointment-block--new-patient:hover {
  background: var(--primary-600);
}

.appointment-block--follow-up {
  background: #3B82F6;
}

.appointment-block--follow-up:hover {
  background: #2563EB;
}

.appointment-block--default {
  background: var(--neutral-400);
}

.appointment-block--default:hover {
  background: var(--neutral-500);
}

/* Status Modifiers */
.appointment-block--completed {
  opacity: 0.7;
}

.appointment-block--no-show {
  opacity: 0.5;
  background: var(--neutral-300) !important;
}

.appointment-block--cancelled {
  opacity: 0.4;
  background: var(--neutral-200) !important;
  color: var(--neutral-600) !important;
}

/* Content */
.appointment-block--patient {
  font-weight: var(--text-semibold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: var(--rem-2);
}

.appointment-block--time {
  font-size: var(--rem-10);
  opacity: 0.9;
}

.appointment-block--physician {
  font-size: var(--rem-10);
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.appointment-block--room {
  font-size: var(--rem-10);
  opacity: 0.7;
}

.appointment-block--type-badge {
  width: 1rem;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  font-size: var(--rem-8);
  font-variation-settings: 'wght' var(--text-medium);
  line-height: var(--rem-10);
  letter-spacing: 0;

  &[data-type="NP"] {
    background-color: rgba(238, 180, 121, 0.5);
    color: #9B560E;
  }
  &[data-type="FU"] {
    background-color: rgba(98, 182, 203, 0.5);
    color: #1E6476;
  }
  &[data-type="PR"] {
    background-color: rgba(187, 98, 211, 0.5);
    color: #8A34A1;
  }
  &[data-type="empty"] {
    font-size: var(--rem-11);
    color: var(--text-label);
    white-space: nowrap;
    text-align: left;
    width: fit-content;
  }
}