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

/* ================= VARIABLES ================= */

$green: #7a4b20;

/* ================= CONTAINER ================= */

.trans {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;

  /* TOOLBAR */
  &__toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;

    @media (max-width: 1000px) {
      flex-direction: column;
      align-items: flex-start;
    }

    &--left {
      width: 100%;

      :global(.search) {
        width: 100%;
      }
    }

    &--right {
      display: flex;
      align-items: center;
      gap: 10px;

      @media (max-width: 1000px) {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
      }

      /* ================= BUTTONS (LIKE REFRESH) ================= */

     /* ================= BUTTON ================= */

    button {
    background: #ffffff;

    border: none;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);

    color: #1a1a1a;
    font-weight: 600;

    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;

    cursor: pointer;

    display: flex;
    align-items: center;
    gap: 6px;

    transition: all 0.2s ease;

    &:hover {
        background: rgba(122, 75, 32, 0.08); /* 🔥 brown soft */
    }

    /* 🔥 ACTIVE STATE */
    &.active {
        background: rgba(122, 75, 32, 0.08);
        color: #5e3817;

        box-shadow: inset 0 0 0 1px rgba(122, 75, 32, 0.2);
    }

    &:active {
        transform: scale(0.96);
    }
    }

    /* ================= SELECT ================= */

    select {
    border: none;

    padding: 0.5rem 1rem;
    border-radius: 8px;

    font-size: 0.85rem;
    font-weight: 500;

    background: #ffffff;
    color: #1a1a1a;

    cursor: pointer;

    transition: all 0.2s ease;

    /* subtle outline instead of hard border */
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);

    &:focus {
        outline: none;

        box-shadow:
        inset 0 0 0 1px rgba(122, 75, 32, 0.2),
        0 0 0 2px rgba(122, 75, 32, 0.08); /* 🔥 brown focus */
    }
    }
    }
  }

  /* TABLE WRAPPER */
  // &__table {
  //   border-radius: 10px;
  //   border: 1px solid #dcecf2;
  //   background: #ffffff;
  //   padding: 1rem;
  // }
}

/* ================= LOADER ================= */

.loader {
  padding: 2rem;
  text-align: center;
  font-weight: 500;
  color: rgba(0, 56, 69, 0.7);
}

/* ================= ANIMATIONS ================= */

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

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

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

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