/* Calendar Component Styles */
@layer components {
  /* Calendar Day Button Base */
  .calendar-day-button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2);
    min-height: 3.5rem;
    text-align: center;
    border-radius: var(--radius-md);
    border: var(--border-default);
    background: var(--color-semantic-background-light-100);
    cursor: pointer;
    transition: all var(--transition-duration-fast) var(--transition-easing);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
  }

  .calendar-day-button:hover {
    background: var(--color-semantic-background-light-200);
    border-color: var(--color-semantic-border-strong);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }

  .calendar-day-button:focus,
  .calendar-day-button:focus-visible {
    outline: 2px solid var(--color-primitive-blue-500);
    outline-offset: 2px;
    border-color: var(--color-primitive-blue-500);
  }

  .calendar-day-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  }

  /* Calendar Day Number */
  .calendar-day-number {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--color-semantic-text-primary);
    line-height: 1.2;
    margin-bottom: var(--spacing-1);
  }

  /* Calendar Day Data */
  .calendar-day-data {
    font-size: 0.6875rem; /* 11px */
    font-weight: var(--font-weight-normal);
    color: var(--color-semantic-text-secondary);
    line-height: 1;
  }

  /* Calendar Day States */
  .calendar-day-scheduled {
    background: var(--color-primitive-yellow-100);
    border-color: var(--color-primitive-yellow-500);
    border-width: var(--border-width-normal);
  }

  .calendar-day-scheduled .calendar-day-number {
    color: var(--color-primitive-yellow-900);
  }

  .calendar-day-scheduled .calendar-day-data {
    color: var(--color-primitive-yellow-700);
  }

  .calendar-day-scheduled:hover {
    background: var(--color-primitive-yellow-200);
    border-color: var(--color-primitive-yellow-600);
  }

  .calendar-day-no-data {
    border-color: var(--color-primitive-red-500);
    border-width: var(--border-width-normal);
    background: var(--color-semantic-background-light-100);
  }

  .calendar-day-no-data .calendar-day-number {
    color: var(--color-primitive-red-700);
  }

  .calendar-day-no-data .calendar-day-data {
    color: var(--color-primitive-red-600);
  }

  .calendar-day-no-data:hover {
    background: var(--color-primitive-red-50);
    border-color: var(--color-primitive-red-600);
  }

  .calendar-day-has-data {
    border-color: var(--color-primitive-green-500);
    border-width: var(--border-width-normal);
    background: var(--color-semantic-background-light-100);
  }

  .calendar-day-has-data .calendar-day-number {
    color: var(--color-primitive-green-700);
  }

  .calendar-day-has-data .calendar-day-data {
    color: var(--color-primitive-green-600);
  }

  .calendar-day-has-data:hover {
    background: var(--color-primitive-green-50);
    border-color: var(--color-primitive-green-600);
  }

  /* Calendar Container */
  .calendar-container {
    border-radius: var(--radius-lg);
    border: var(--border-light);
    background: var(--color-semantic-background-light-100);
    overflow: hidden;
  }

  /* Calendar Header */
  .calendar-header {
    padding: var(--spacing-4) var(--spacing-5);
    border-bottom: var(--border-light);
    background: var(--color-semantic-background-light-100);
  }

  /* Calendar Body */
  .calendar-body {
    padding: var(--spacing-4);
  }

  /* Calendar Grid */
  .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: var(--spacing-2);
  }
}

