@import "animate.css";


@tailwind base;
@tailwind components;
@tailwind utilities;

/* LiveView specific classes for your customizations */
.phx-no-feedback.invalid-feedback,
.phx-no-feedback .invalid-feedback {
  display: none;
}

.phx-click-loading {
  opacity: 0.5;
  transition: opacity 1s ease-out;

  font-size: initial;
}

.phx-disconnected{
  cursor: wait;
}
.phx-disconnected *{
  pointer-events: none;
}

.phx-modal {
  opacity: 1!important;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4);
}

.phx-modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}

.phx-modal-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.phx-modal-close:hover,
.phx-modal-close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}


/* Alerts and form errors */
.alert {
  @apply px-4 py-3 mb-5 rounded-lg text-white
}

.alert-info {
  @apply bg-blue-500
}

.alert-warning {
  @apply bg-yellow-500

}

.alert-danger {
  @apply bg-red-500
}

.invalid-feedback {
  color: #a94442;
  display: block;
  margin: -1rem 0 2rem;
}


.input {
  @apply appearance-none block px-3 py-2 border 
         border-gray-300 rounded-md 
         shadow-sm placeholder-gray-400 
          focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm w-full
}

label {
  @apply block text-sm font-medium text-gray-700
}

.btn-primary {
  @apply border border-transparent rounded-md shadow-sm text-sm font-medium 
  text-white bg-indigo-500 hover:bg-indigo-700 focus:outline-none focus:ring-2
  focus:ring-offset-2 focus:ring-indigo-500 py-2 px-4 inline-flex justify-center cursor-pointer
}

.btn-danger {
  @apply border border-transparent rounded-md shadow-sm text-sm font-medium 
  text-white bg-red-600 hover:bg-red-700 focus:outline-none focus:ring-2
  focus:ring-offset-2 focus:ring-red-500 py-2 px-4 inline-flex justify-center cursor-pointer
}

svg {
  .primary {
  fill: #A5B3BB
  }

  .secondary {
    fill: #0D2B3E
  }
}

div[data-phx-view] {
  height: 100%;
}
