@use "../../../styles/abstracts/variables" as *;
@use "../../../styles/abstracts/mixins" as *;

.attend {
  &__toolbar {
    padding-bottom: 1.5rem;

    h1{
        @include sectionTitle;;
    }

    p{
      @include sectionDescription; 
      border-bottom: none !important;
    }

    form {
      display: flex;
      align-items: center;
      justify-content: space-between;
      @media only screen and (max-width: 1000px){
        flex-direction: column;
        align-items: flex-start;
      }
    }

    &--search {
      display: flex;
      align-items: center;
      gap: 20px;
      width: 100%;
    }

    &--helpers {
      display: flex;
      gap: 10px;
      width: 100%;
      justify-content: flex-end;
      align-items: center;
      @media only screen and (max-width: 1000px){
        align-items: flex-start;
        align-items: center;
        margin-top: 1rem;
      }
    }
     
  }
}

/* ======================
   Skeleton Loader
====================== */
.skeleton__wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.5rem 1rem;
}

.skeleton__row {
  display: grid;
  grid-template-columns: 1.7fr 1.7fr 2.6fr 1fr 1fr;
  align-items: center;
  height: 2rem; // match line-height of real rows
  gap: 1rem;
  padding: 0 0.5rem;
}

.skeleton__cell {
  height: 1.2rem;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    #e0e0e0 25%,
    #f5f5f5 50%,
    #e0e0e0 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* ======================
   Fade Transitions
====================== */
.fadeIn {
  animation: fadeIn 0.4s ease forwards;
}

.fadeOut {
  animation: fadeOut 0.4s ease forwards;
}

/* ======================
   Keyframes
====================== */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
