.contentCalendar {
  padding: var(--base);

  &__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--base);
    flex-wrap: wrap;
    gap: var(--base);
  }

  &__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--theme-text);
    margin: 0;
  }

  &__filters {
    display: flex;
    gap: calc(var(--base) / 2);
    align-items: center;
  }

  &__select {
    padding: calc(var(--base) / 4) calc(var(--base) / 2);
    border: 1px solid var(--theme-elevation-150);
    border-radius: 4px;
    background: var(--theme-input-bg);
    color: var(--theme-text);
    font-size: 0.875rem;
  }

  &__calendar {
    background: var(--theme-bg);
    border-radius: 8px;
    padding: var(--base);
    border: 1px solid var(--theme-elevation-100);
  }

  &__conflict {
    border: 2px solid #e74c3c !important;
    animation: pulse 2s infinite;
  }

  &__legend {
    display: flex;
    gap: var(--base);
    margin-top: var(--base);
    flex-wrap: wrap;
  }

  &__legendItem {
    display: flex;
    align-items: center;
    gap: calc(var(--base) / 4);
    font-size: 0.8rem;
    color: var(--theme-text);
  }

  &__legendColor {
    width: 12px;
    height: 12px;
    border-radius: 2px;
  }

  &__conflicts {
    margin-top: var(--base);
    padding: var(--base);
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;

    h4 {
      margin: 0 0 calc(var(--base) / 2) 0;
    }

    ul {
      margin: 0;
      padding-left: 1.5rem;
    }
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}
