.form-container {
  width: 100%;

  background-color: #eee;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 30px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
}

.input-field {
  position: relative;
  margin: 20px 10px;
  max-width: 400px;
  flex-grow: 1;
  &.full {
    max-width: 820px;
    width: 100%;
  }

  & > input,
  & > select,
  & > textarea {
    outline: none;
    z-index: 1;
    position: relative;
    background: none;
    width: 100%;
    height: 45px;
    border: 0;
    color: #0a0909;
    font-size: 16px;
    font-weight: 300;
  }
  & input:focus ~ .bar:before,
  & input:focus ~ .bar:after,
  & select:focus ~ .bar:before,
  & select:focus ~ .bar:after,
  & textarea:focus ~ .bar:before,
  & textarea:focus ~ .bar:before {
    width: 50%;
    background-color: #000;
    height: 2px;
  }

  & input:focus ~ label,
  & input:not(:placeholder-shown) ~ label,
  & select:focus ~ label,
  & select:not(:placeholder-shown) ~ label,
  & textarea:focus ~ label,
  & textarea:not(:placeholder-shown) ~ label {
    color: #888;
    transform: translate(-12%, -40%) scale(0.75);
  }
  & > label {
    position: absolute;
    top: -5px;
    left: 0;
    color: #757575;
    font-size: 18px;
    font-weight: 300;
    line-height: 60px;
    transition: 0.2s ease;
  }
  & .bar {
    position: absolute;
    left: 0;
    bottom: 7px;
    background: #777;
    width: 100%;
    height: 1px;
  }
  & .bar:before,
  & .bar:after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    transition: 0.3s ease;
  }
  & .bar:before {
    left: 50%;
  }

  & .bar:after {
    right: 50%;
  }

  & input:invalid:not(:placeholder-shown) ~ .bar:before,
  & input:invalid:not(:placeholder-shown) ~ .bar:after {
    background-color: #d66;
    width: 50%;
  }

  & input:valid:not(:placeholder-shown) ~ .bar:before,
  & input:valid:not(:placeholder-shown) ~ .bar:after {
    background-color: #8d8;
    width: 50%;
  }
  & i {
    position: absolute;
    top: 18px;
    left: 0px;
  }

  &:has(> i) {
    /*çocuğu i elementi olan input-field*/
    padding-left: 20px;
    & > .bar {
      left: 0;
    }
    & > label {
      left: 18px;
    }
  }
} /*input-field*/

/* .input-field input:not(:valid)~.bar:before ,.input-field input:not(:valid)~.bar:after {
    background-color: #D88;
    width: 50%;

} */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.button-row {
  display: flex;
  flex-direction: row;
}

button {
  transition: 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  cursor: pointer;
  position: relative;
  min-height: 40px;
  background-color: #6bb0b6;
  border-radius: 5px;
  font-size: 14px;
  text-align: center;
  text-transform: uppercase;
  overflow: hidden;
  margin: 3px 3px;
  &:active,
  &:hover,
  &:focus {
    background-color: #41e97f;
  }

  & > span {
    position: relative;
    line-height: 30px;
    padding: 0 7px;
    z-index: 1;
    color: #111;
  }
  & > i {
    margin: 0 3px;
    font-size: 22px;
  }
  &.loading {
    background-color: #757575;
    pointer-events: none;
    & > i {
      animation: spin 1200ms linear infinite;
      font-size: 28px;
    }
  }
}

td:has(button) {
  display: flex;
}
td .input-field {
  margin: 0;
  border: 1px #777 solid;
}


.input-field input[type="file"] {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.input-field .preview {
  margin-top: 10px;
}

.input-field .preview img {
  max-width: 150px; /* Display image preview in smaller size */
  border-radius: 10%;
  border: 1px solid #ccc;
}

.big-checkbox {
  transform: scale(1.8);
  margin: 10px !important;
  padding: 10px;
}
