:root {
  --blue: #11d8f1;
  --purple: #b773e2;
  --white-purple: #eac8ff;
  --light-purple: #cd98ed;
  --dark-purple: #734690;
  --pink: #d96cb6;
  --red: #f57c7c;
  --dark-red: #d84f4f;
  --green: #549a43;
  --coal: #313236;
  --white: #fff;
}

body {
  background: var(--coal);
  font-family: sans-serif;
}

.hide {
  display: none;
}

.error-msg {
  color: #fff;
}

/* 'Component' styles */
label {
  font-size: 12px;
  display: flex;
  flex-direction: column;
  margin-bottom: 5px;
}
label input {
  margin-top: 2px;
}
label input + span {
  text-align: right;
  margin-right: 5px;
}
label .char-count + span {
  text-align: right;
  font-size: 10px;
}

input[type=text],
textarea,
input[type=date] {
  padding: 5px 10px;
  line-height: 1;
  border-radius: 10px;
  border: 1px solid var(--coal);
  width: 100%;
  font-size: initial;
}

input[type=date] {
  padding: 2px 10px;
}

.row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 5px;
}
.row .small-flex-child {
  flex: 1 1 175px;
}
.row .flex-child {
  flex: 2 1 175px;
}
.row.large-gap {
  gap: 10px;
}
.row.center {
  align-items: center;
}
.row.baseline {
  align-items: baseline;
}
.row.end {
  align-items: flex-end;
}
.row.apart {
  justify-content: space-between;
}

button:not(._simple-switch-track) {
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--purple);
  border-radius: 5px;
  border: none;
  padding: 5px 10px;
}
button:not(._simple-switch-track):hover {
  background: var(--dark-purple);
}
button:not(._simple-switch-track):active {
  background: var(--light-purple);
}
button:not(._simple-switch-track).delete {
  background: var(--red);
}
button:not(._simple-switch-track).delete:hover {
  background: var(--dark-red);
}
button:not(._simple-switch-track).delete:active {
  background: var(--dark-red);
}
button:not(._simple-switch-track) i:last-child {
  margin-left: 5px;
}

.col {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.info-box {
  display: none;
  padding: 5px 10px;
  margin: 5px;
  border-radius: 5px;
  background: #fbcbd1;
  border: 2px solid var(--red);
  font-size: 12px;
  transition: all 1s ease-in-out;
}
.info-box span {
  white-space: pre;
  margin-left: 5px;
}
.info-box.error {
  display: block;
  background: #fbcbd1;
  border-color: var(--red);
}
.info-box.success {
  display: block;
  background: #e4f0e4;
  border-color: var(--green);
  color: var(--green);
}
.info-box.success i::before {
  content: "\f058";
}

/* Resets */
/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  line-height: 1.15;
  /* 1 */
  margin: 0;
  /* 2 */
}

/**
  * Show the overflow in IE.
  * 1. Show the overflow in Edge.
  */
button,
input {
  /* 1 */
  overflow: visible;
}

/**
  * Remove the inheritance of text transform in Edge, Firefox, and IE.
  * 1. Remove the inheritance of text transform in Firefox.
  */
button,
select {
  /* 1 */
  text-transform: none;
}

/**
  * Correct the inability to style clickable types in iOS and Safari.
  */
button,
[type=button],
[type=reset],
[type=submit] {
  -webkit-appearance: button;
  cursor: pointer;
}

/* correct switch when inside label */
label [data-type=simple-switch] ~ button {
  max-width: fit-content;
}