@use '../../theme/ontimeColours' as *;
@use '../../theme/v2Styles' as *;

.eventEditorContainer {
  border-radius: 8px 8px 0 0;
  background-color: $bg-container-l2;
  box-shadow: $large-bottom-drawer-shadow;
  border-top: 1px solid $white-20;
  position: absolute;
  bottom: 0;
  width: 100vw;
  left: 0;
  z-index: 10;
  color: white;
  transition: bottom $transition-time-feedback;

  &.noEvent {
    bottom: -500px;
    transition: bottom 0.7s;
  }

  .eventEditorLayout {
    display: flex;
  }

  .header {
    background-color: $gray-1250;
    padding: 0.5rem;
    border-left: 1px solid $white-10;
    border-radius: 0 8px 0 0;
  }
}

.eventEditor {
  padding: 1rem 2rem 2rem 2rem;
  width: 100%;
  gap: max(1rem, 2vh);

  display: grid;
  grid-template-areas: 'time left right';
  grid-template-columns: auto 1fr 1fr;
}

.timeOptions {
  grid-area: time;
  display: flex;
  gap: 1.5rem;

  .timers,
  .timeSettings {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
}

.left,
.right {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.left {
  grid-area: left;
  padding: 0 1rem;
  border-left: 1px solid $border-color-ondark;
}

.right {
  padding-left: 1rem;
  grid-area: right;
  border-left: 1px solid $border-color-ondark;
}

@mixin input-label() {
  font-size: calc(1rem - 3px);
  color: $label-gray;
}

.countedInput {
  display: flex;
  justify-content: space-between;
  @include input-label;
}

.inputLabel {
  display: block;
  @include input-label;

  &.delayLabel {
    color: $ontime-delay-text;
  }

  &.publicToggle {
    height: 2rem;
    display: flex;
    align-items: center;
    justify-items: center;
    gap: 0.5rem;
  }
}

.eventActions {
  margin-left: auto;
  display: flex;
  gap: 0.5rem;
}

.spacer {
  height: 1.25rem;
}

.inline {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.splitTwo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.padTop {
  margin-top: 0.5rem;
}

.fullHeight {
  height: 100%
}
