.header-cont {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 0;

  .button-wrapper {
    display: flex;
    gap: 1rem;

    .add-deployment-btn {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
  }
}

.filters-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid #dddddd;
  background-color: #f0f0f0;
  overflow: visible;
  max-height: 250px;
  opacity: 1;
  transition: max-height 0.3s linear, opacity 0.2s linear 0.05s, padding 0.3s linear, margin-bottom 0.3s linear, border-color 0.3s linear;

  .filter {
    flex-direction: column;
    flex: 1 0 48%;

    .env-container {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .date-filters {
      display: flex;
      align-items: center;
      margin-top: 1rem;
      gap: 1rem;
    }

    .resource {
      padding: 10px 20px;
      border-radius: 50px;
      border: 1px solid #dddddd;
      background-color: #ffffff;
    }

    .tags {
      text-align: start;
      width: 100%;
    }

    .status {
      text-align: start;
      width: calc(100% - 1rem);
    }
  }

  .filters-wrapper {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;

    .checkbox-container {
      width: 20%;
      padding: 1rem;
      border: 1px solid #dddddd;

      input {
        width: 18px;
        height: 18px;
      }

      .form-check-input:checked {
        background-color: #8040ed !important;
        border-color: #8040ed !important;
      }
    }
  }

  .filter-actions {
    display: flex;
    justify-content: space-between;
    flex: 1 0 100%;
  }
}

.filters-container.filters-hidden {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
  border-color: transparent;
  transition: max-height 0.25s linear, opacity 0.15s linear, padding 0.25s linear, margin-bottom 0.25s linear, border-color 0.15s linear;
}

.columns-filter {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 8px 16px;
  border: 1px solid #dddddd;
  background-color: #f0f0f0;
  overflow: hidden;
  font-family: Inter;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 20px;
  color: var(--text-primary, #000);
  max-height: 100px;
  opacity: 1;
  transition: max-height 0.3s linear, opacity 0.2s linear 0.05s, padding 0.3s linear, margin-bottom 0.3s linear, border-color 0.3s linear;

  input {
    width: 18px;
    height: 18px;
    margin: 0 !important;
    vertical-align: middle;
  }

  label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    line-height: 1;
  }

  .form-check-input:checked {
    background-color: #8040ed !important;
    border-color: #8040ed !important;
  }
}

.columns-filter.columns-hidden {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0 !important;
  border-color: transparent;
  transition: max-height 0.3s linear 0.05s, opacity 0.15s linear, padding 0.3s linear, margin-bottom 0.3s linear, border-color 0.15s linear;
}

.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;

  .arrow-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background-color: #dddddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    &:hover:not(:disabled) {
      background-color: rgb(177, 177, 177);
    }

    &:disabled {
      opacity: 0.4;
      cursor: not-allowed;
    }
  }
}

.settings-dropdown-wrapper {
  position: relative;
}

.settings-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  animation: dropdownFadeIn 0.2s ease;
}

.settings-dropdown-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  color: #000000;
  text-decoration: none;
  font-size: 0.95rem;

  &:hover {
    background-color: #f5f5f5;
  }
}

.table-wrapper {
  position: relative;

  .table-container {
    display: flex;
    flex-direction: column;
  }

  &.is-loading {
    pointer-events: none;

    > *:not(.loading-overlay) {
      opacity: 0.4;
    }
  }
}

.loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #dddddd;
  border-top-color: #8040ed;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.no-projects-message {
  max-width: 640px;
  padding: 1.25rem;
  border: 1px solid #dddddd;
  background-color: #f7f7f7;
}

.no-projects-message h4 {
  margin: 0 0 0.5rem 0;
  color: #1a1a2e;
  font-size: 1.1rem;
  font-weight: 700;
}

.no-projects-message p {
  margin: 0;
  color: #666666;
}
