ui/components-lib/src/components/Card.scss
@use '../styles/colors' as *;
@use './Card/layouts';

@include layouts.vertical-layout;

.env-card {
  background: white;
  padding: 24px;
  flex-direction: column;
  border-radius: 8px;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  border: 1px solid $argo-color-gray-4;
  min-height: 400px;
  transition: min-height 0.3s ease;
  display: flex;
  flex-direction: column;
  
  &.single-commit-group {
    min-height: 250px;
    height: auto;
  }
}



.env-card__title {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 15px;
  color: $argo-color-gray-7;
}

.env-card__icon {
  font-size: 18px;
  color: $argo-color-gray-7;
  margin-right: 12px;
}

.env-card__env-name {
  font-weight: 600;
  font-size: 18px;
  color: $argo-color-gray-7;
}

.history-indicator {
  font-size: 9px;
  color: $argo-color-gray-6;
  font-weight: 400;
  opacity: 0.8;
}


.history-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  color: $argo-color-gray-5;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  
  &:hover {
    color: $argo-color-gray-7;
    background: rgba(108, 117, 125, 0.08);
  }
  
  &:active {
    background: rgba(108, 117, 125, 0.15);
  }
  
  &.active {
    color: $argo-running;
    background: rgba(13, 173, 234, 0.1);
    
    &:hover {
      background: rgba(13, 173, 234, 0.15);
    }
  }
}

.history-controls {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
}



@media (max-width: 1600px) {
  @include layouts.horizontal-layout;
}

.env-cards-wrapper:has(.env-card-column:nth-child(n+4)) {
  @include layouts.horizontal-layout;
}

.env-cards-wrapper.horizontal-layout {
  @include layouts.horizontal-layout;
}
