:root {
  --border-radius: 12px;
  --input-background: #f0f4fa;
  --font-size: 14px;
  --input-box-shadow: inset 0 0 8px 0px rgb(239, 239, 239);
  --boggler-brown: #522517;
  --boggler-blue: #20aec2;
  --boggler-orange: #fe9526;
}

form.form  {
  display: flex;
  flex-direction: column;
  border-radius: var(--border-radius);
  background: white;
  padding: 1rem 3rem 2rem;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.04);
}

form.form.login {
  min-width: 300px;
  max-width: fit-content;
  margin: auto;
  padding: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1em;
  flex-grow: 1;
  position: relative;
}

.form-group-row {
  display: flex;
  flex-direction: column;
}

.form-group-row.split .form-group {
  max-width: 50%;
}

.form-group-row div input {
    width: calc(100% - 1em - 15px);
}

.form-group-row div {
  display: flex;
}

.form-group.inline {
  flex-direction: row;
}

.form-group.obj-group .form-group {
  margin-bottom: 0.3rem;
}
.form-group.obj-group small { 
  margin-bottom: 0.5rem;
}

.form-group.obj-group .form-group:last-child {
  margin-left: 1rem;
}

form.form  input,
form.form  input:focus {
  background: var(--input-background);
  border-color: transparent;
  padding: 0.5em 1em;
  margin: 0.3em 0;
  outline: none;
  border-radius: var(--border-radius);
  font-size: var(--font-size);
  border-width: 0px;
  box-shadow: var(--input-box-shadow);
  text-align: left;
}

form.form  input.lg {
  font-size:16px;
  padding: 1rem;
}

form.form textarea,
form.form textarea:focus
{
  resize: none;
  border: none;
  outline: none;
  padding: 0.6em;
  min-height: 5rem;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: var(--font-size);
  line-height: 1.5em;
  overflow-wrap: break-word;
  background-color: var(--input-background);
  box-shadow: var(--input-box-shadow);
}

.form-group select {
  border: 0px;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  background-color: var(--input-background);
}

.country-select-drop {
  position: absolute;
  background: var(--input-background);
  border: 2px solid #e6e3e3;
  box-shadow: 0 0 7px 2px #e8e8e8;
  width: 100%;
  margin: 0px;
  padding: 0px;
  list-style: none;
  max-height: 200px;
  overflow-y: auto;
  bottom: 0;
  z-index: 10;
  transform: translateY(100%);
}
li.country-list-item {
  padding: 8px;
  cursor: pointer;
  background-color: white;
  transition: 0.3s;
}
li.country-list-item:hover {
  background-color: var(--input-background);
}

form.form label {
  margin-right: 0.5em;
  margin-bottom: 0.3em;
  color: #6f6e6e;
  font-size: 15px;
}

.form-group .badge {
  background-color: #d7a56e;
  border-radius: 20px;
  display: flex;
  max-width: fit-content;
  padding: 0.3rem 0.9rem;
  font-weight: bold;
  font-size: 13px;
  letter-spacing: 1.1px;
  color: white;
  box-shadow: inset 0 0 0px 2px rgb(244, 222, 179);
}

.form-group .badge.rejected {
  background-color: #e87373;
  box-shadow: inset 0 0 0px 2px rgb(240, 82, 156);
}

.form-group .badge.approved {
  background-color: var(--boggler-blue);
  box-shadow: inset 0 0 0px 2px #00e7ff;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 25px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: .3s ease-in;
  border-radius: 34px;
  -webkit-transition: .3s ease-in;
  background-color: var(--input-background);
  box-shadow: inset 0 0 5px 0px lightgray;
}

.slider:before {
  left: 3px;
  width: 17px;
  content: "";
  bottom: 4px;
  height: 17px;
  transition: .4s;
  position: absolute;
  border-radius: 50%;
  -webkit-transition: 0.4s;
  background-color: white;
}

input:checked + .slider {
  background-color: #4EBDCC;
}

input:focus + .slider {
  box-shadow: inset 0 0 5px 0px lightgray;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

div:has( > ul ) {
  display: flex;
  width: 100%;
  max-width: 500px;
}

.admin-ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 300px;
  padding: 1rem 5rem 3rem;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.04);
}

.admin-ul li {
  padding: 1rem 1.3rem;
  background-color: var(--input-background);
  border-bottom: 1px solid rgb(227, 227, 227);
  display: flex;
  justify-content: space-between;
  margin: 0;
}
.admin-ul li div:first-child {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.admin-ul li:first-of-type {
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
}

.admin-ul li.header {
  background-color: var(--boggler-orange);
  padding: 0 1rem;
}

.admin-ul li.header p {
  color: white;
  margin: 0.5rem;
  font-weight: bold;
  font-size: var(--font-size);
}

.admin-ul li:last-of-type {
  border-bottom-left-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
  border-bottom: none;
}

section.main-body-section .form-actions {
  display: flex;
  flex-direction: row;
  justify-content: end;
}

section.main-body-section .form-actions button:last-child {
  margin-right: 0;
}

section.main-body-section button.manage-item-action.add-input {
  margin: 0.3em 0.1em;
  justify-content: center;
  border: 1px solid #cbc9c9;
  padding: 0.2em 1em;

}

.btn.red,
section.main-body-section button.manage-item-action.red {
  color: lightcoral;
  transition: all 0.3s;
  box-shadow: inset 0 0 0px 3px lightcoral;
}

.btn.red:hover,
section.main-body-section button.manage-item-action.red:hover {
  color: lightcoral;
  box-shadow: inset 0 0 0px 1px lightcoral;
}

.btn,
section.main-body-section button.manage-item-action {
  display: flex;
  background-color: transparent;
  color: #afafaf;
  font-size: 18px;
  margin: 0 1em 0 0em;
  padding: 0.8em 1em;
  border-radius: var(--border-radius);
  outline: none;
  font-weight: bold;
  opacity: 0.8;
  border: none;
  transition: all 0.3s;
  box-shadow: inset 0 0 0px 3px #cccccc;
  z-index: 11;
}

.btn.wide {
  width: 100%;
}

.btn.sm {
  padding: 0.3em 0.8em;
  margin: 0;
  font-size: var(--font-size);
}

.btn:hover,
section.main-body-section button.manage-item-action:hover {
  color: #6a6a6a;
  cursor: pointer;
  box-shadow: inset 0 0 0px 1px #cccccc;
  opacity: 1;
}

.btn.boggler,
section.main-body-section button.boggler {
  background-image: linear-gradient(45deg, #fa785e 0%, #fb9526  40%, #23adc0  30%);
  background-size: 200% auto;
  background-position: right;
  box-shadow: inset 0 0 0px 5px #34d5ec;
  color: white;
  opacity: 1;
  }

.btn.boggler:hover,
section.main-body-section button.boggler:hover {
    background-position: left center;
    color: white;
    box-shadow: inset 0 0 0px 0px #34d5ec;
}

.boggler-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: "center";
  z-index: 1000;
}


.boggler-modal .container {
  background: rgb(255, 255, 255);
  border-radius: var(--border-radius);
  min-width: 300px;
  padding: 2rem 2rem 1.5rem;
}

.boggler-modal .container .actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding-top: 1rem;
}

.boggler-modal.flash {
  background: transparent;
  pointer-events: none;
}

.boggler-modal.flash .container {
  background-color: #93f7cc;
  min-width: calc(100% - 2rem - 20px);
  padding: 1rem;
  bottom: 10px;
  position: absolute;
  display: flex;
  justify-content: center;
  margin: auto;
  left: 0;
  right: 0;
  animation: fadeInOut 2s ease-in-out forwards;
}

.boggler-modal.flash.r .container {
    background-color: #f793bd;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  10% {
    opacity: 1;
    transform: translateY(0);
  }
  90% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(10px);
  }
}

@media screen and (min-width:751px) {
  .form-group-row {
    flex-direction: row;
  }

  .form-group-row > * {
    margin: 0 5px 0 5px;
  }
  .form-group-row > *:first-child {
    margin-left: 0px;
  }

}
@media screen and (max-width: 750px) {
  form.form  {
    width: calc(100% - 2rem);
    padding: 1rem 3rem 2rem;
  }

  .form-group.obj-group .form-group:last-child {
    margin-left: 0.5rem;
  }

  .form-group.obj-group .form-group.inline > .form-group {
    max-width: 50%;
  }
  .form-group.obj-group .form-group.inline .form-group input {
    max-width: calc(100% - 2.5rem)
  }
  
  .form-group-row.split .form-group {
    max-width: initial;
  }

  section.main-body-section .form-actions {
    display: flex;
    flex-direction: column-reverse;
  }

  section.main-body-section button.manage-item-action {
    margin-top: 10px;
    margin-right: 0;
  }

  section.main-body-section .form-actions button:nth-child(0) {
    margin-top: 0px;
  }

  .admin-ul {
    min-width: 0;
    padding: 2rem;
  }

  .boggler-modal .container {
    padding: 2rem 1.5rem 1.5rem;
  }
  .boggler-modal .container .actions {
    flex-direction: column-reverse;
  }

  .boggler-modal .container .actions .btn.sm {
    margin: 0;
    padding: 0.8em 1em;
  }  
}
