@import "theme.min.css";

/* ---------- ---------- PRE LOADER ---------- ---------- */
#preloder {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 999999;
  background: rgb(0, 102, 89, 0.5);
}

.loader {
  position: absolute;
  transform: rotateZ(45deg);
  perspective: 1000px;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  color: #008072;
  top: 50%;
  left: 50%;
  margin-top: -25px;
  margin-left: -35px;
}

.loader:before,
.loader:after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: inherit;
  height: inherit;
  border-radius: 50%;
  transform: rotateX(70deg);
  animation: 1s spin linear infinite;
}

.loader:after {
  color: #ffd400;
  transform: rotateY(70deg);
  animation-delay: 0.4s;
}

@keyframes rotate {
  0% {
    transform: translate(-50%, -50%) rotateZ(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotateZ(360deg);
  }
}

@keyframes rotateccw {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

@keyframes spin {
  0%,
  100% {
    box-shadow: 0.2em 0px 0 0px currentcolor;
  }

  12% {
    box-shadow: 0.2em 0.2em 0 0 currentcolor;
  }

  25% {
    box-shadow: 0 0.2em 0 0px currentcolor;
  }

  37% {
    box-shadow: -0.2em 0.2em 0 0 currentcolor;
  }

  50% {
    box-shadow: -0.2em 0 0 0 currentcolor;
  }

  62% {
    box-shadow: -0.2em -0.2em 0 0 currentcolor;
  }

  75% {
    box-shadow: 0px -0.2em 0 0 currentcolor;
  }

  87% {
    box-shadow: 0.2em -0.2em 0 0 currentcolor;
  }
}

/** ---------- ---------- Dashboard ---------- ---------- */

.card-dashboard {
  border: none;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.card-dashboard:hover {
  transform: translateY(-5px);
}

.icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -10px;
}

.icon i {
  font-size: 1.5rem;
  color: white;
}

.bg-gradient-primary { background: linear-gradient(45deg, #5e72e4, #825ee4); }
.bg-gradient-success { background: linear-gradient(45deg, #2dce89, #2dcecc); }
.bg-gradient-warning { background: linear-gradient(45deg, #fb6340, #fbb140); }
.bg-gradient-danger { background: linear-gradient(45deg, #f5365c, #f56036); }

.counter {
  font-size: 1.75rem;
  font-weight: 600;
  color: #32325d;
  margin: 0;
  line-height: 1;
}

.text-sm {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-bottom: 0.25rem !important;
}

.link-dashboard {
  font-weight: bold;
  text-decoration: none;
}

.link-dashboard:hover {
  text-decoration: none;
}

/** ---------- ---------- Controles ---------- ---------- */

.letter-spacing {
  letter-spacing: 0.5rem;
}

.form-control {
  border-radius: 20px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5),
    -2px -2px 5px rgba(255, 255, 255, 0.02);
  padding: 10px 20px;
  width: 100%;
  font-size: 16px;
  border: none;
  outline: none;
  color: var(--falcon-input-color);
  background-color: var(--falcon-input-bg);
  background-clip: padding-box;
  border: 0.06rem solid var(--falcon-input-border-color);
  transition: border-color 0.15s ease-in-out,
    -webkit-box-shadow 0.15s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.form-select {
  border-radius: 20px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5),
    -2px -2px 5px rgba(255, 255, 255, 0.02);
  padding: 10px 10px;
  width: 100%;
  font-size: 16px;
  border: none;
  outline: none;
  color: var(--falcon-input-color);
  background-color: var(--falcon-input-bg);
  background-clip: padding-box;
  border: 0.06rem solid var(--falcon-input-border-color);
  transition: border-color 0.15s ease-in-out,
    -webkit-box-shadow 0.15s ease-in-out;
  transition: all 0.3s ease-in-out;
}

select {
  border-radius: 10px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5),
    -2px -2px 5px rgba(255, 255, 255, 0.02);
  padding: 10px 10px;
  font-size: 16px;
  border: none;
  outline: none;
  color: var(--falcon-input-color);
  background-color: var(--falcon-input-bg);
  background-clip: padding-box;
  border: 0.06rem solid var(--falcon-input-border-color);
  transition: border-color 0.15s ease-in-out,
    -webkit-box-shadow 0.15s ease-in-out;
  transition: all 0.3s ease-in-out;
}

input {
  border-radius: 20px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5),
    -2px -2px 5px rgba(255, 255, 255, 0.02);
  padding: 10px 30px;
  width: 100%;
  font-size: 16px;
  border: none;
  outline: none;
  color: var(--falcon-input-color);
  background-color: var(--falcon-input-bg);
  background-clip: padding-box;
  border: 0.06rem solid var(--falcon-input-border-color);
  transition: border-color 0.15s ease-in-out,
    -webkit-box-shadow 0.15s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.button {
  border-radius: 20px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4),
    -2px -2px 5px rgba(255, 255, 255, 0.03);
  padding: 10px 30px;
  font-size: 16px;
  border: none;
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.card {
  background-color: var(--falcon-card-bg);
  border-radius: 20px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4),
    -2px -2px 5px rgba(255, 255, 255, 0.02);
  border: 0;
}

.badge {
  border-radius: 20px;
}

/* ---------- ---------- FileUpload ---------- ---------- */
.image-container {
  display: inline-block;
  position: relative;
  margin: 5px;
}

.image-container img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 1px solid #ddd;
}

.delete-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: red;
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

#preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
