/* EDIT MODAL ---------------------------------------------------------------*/

.edit-modal {
  display: flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease, visibility 0.5s;
  position: fixed;
  top: 140px;
  left: 0;
  width: 100%;
  height: 100%;
  align-items: center;
  flex-direction: column;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  align-items: center;
  gap: 0.5rem;
  z-index: 900;
}

.edit-modal.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Container for the form */
.edit-form {
  display: flex;
  flex-direction: column;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  align-items: center;
  gap: 0.5rem;
  width: 90%;
  margin: 0 auto;
}

/* Form Input and Textarea Styling */
.form-field {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
  margin-bottom: 0rem;
}

.form-field label {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.3);
  pointer-events: none;
  transition: none;
  font-style: italic;
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  padding: 1rem;
  font-size: 1rem;
  border: 0px;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
  background-color: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  outline: none;
}

/* Form Input and Textarea Styling for EN */
.form-field-en {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
  margin-bottom: 0rem;
}

.form-field-en label {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 0.875rem;
  color: rgba(175, 190, 255, 0.363);
  pointer-events: none;
  transition: none;
  font-style: italic;
}

.form-field-en input,
.form-field-en select,
.form-field-en textarea {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  padding: 1rem;
  font-size: 1rem;
  border: 0px;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
  background-color: rgba(0, 17, 131, 0.315);
  color: #a9b6e0;
  outline: none;
}

/* name + menu + active checkbox row */
.form-row-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  max-width: 600px;
}

/* make name input take all remaining space */
.form-row-name .form-field {
  flex: 1;
}

/* right side checkboxes container */
.form-row-name .checkbox-label {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 0;
  height: 100%;
}

/* checkboxes size */
.form-row-name input[type="checkbox"] {
  width: 1.5em;
  height: 1.5em;
  accent-color: #5ca0ff;
}


/* two-column row for quota + used */
.form-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  max-width: 600px;
  height: 53px;
  align-items: stretch;
}

.form-row .form-field {
  flex: 1;
}

/* Add padding to textarea so the label doesn't overlap */
textarea {
  min-height: 100px;
  resize: vertical;
}

.big-input {
  font-size: 2rem;
  font-weight: bold;
}

.normal-input {
  font-size: 2rem;
}

/* Button container */
.center {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 0rem;
}

/* Buttons */
.center button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Remove focus styles */
.center button:focus {
  -webkit-tap-highlight-color: transparent;
  outline: none; /* Remove outline on focus */
}