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

.loading-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  color: #6b7280;
} 

.extension-container {
  // xtension styling
  .env-cards-container {
    gap: 30px;
  }
  
  .env-cards-wrapper {
    gap: 20px;
  }
  
  .env-card-column {
    max-width: 400px;
    width: 400px;
  }
  
  .env-card {
    width: 400px;
  }

  .commit-info {
    padding: 40px 0;
  }

  .commit-group-header {
    margin-top: 10px;
    margin-bottom: 5px;
  }
  
  // Override for horizontal layout when 4+ environments
  .env-cards-wrapper.horizontal-layout {
    flex-direction: column;
    gap: 8px;
    justify-content: flex-start;
    align-items: flex-start;
    margin: 0;
    padding-left: 0;
    
    .env-card-column {
      width: 100%;
      max-width: 100%;
    }
    
    .env-card {
      width: 100%;
      max-width: 100%;
      min-width: 700px;
    }
  }
    .env-cards-container:has(.horizontal-layout) {
    justify-content: flex-start;
    align-items: flex-start;
    margin: 0;
    padding-left: 0;
  }
  
  // Responsive behavior for smaller screens
  @media (max-width: 1600px) {
    .env-cards-wrapper {
      flex-direction: column;
      align-items: center;
      padding: 0 5px;
      max-width: 100vw;
      max-width: 1000px;
      box-sizing: border-box;
      gap: 10px;
      
      .env-card-column {
        width: 100%;
        max-width: 100%;
        margin-bottom: 10px;
      }
      
      .env-card {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto 1fr;
        width: 100%;
        max-width: 100%;
        min-width: 700px;
        box-sizing: border-box;
        min-height: auto;
        
        &.single-commit-group {
          grid-template-columns: 1fr;
          max-width: 70%;
          margin: 0;
          min-width: 500px;
          min-height: 250px;
          height: auto;
        }
      }
      
      .env-card__title {
        grid-column: 1 / -1;
        grid-row: 1;
        margin-bottom: 20px;
      }
      
      .commit-group:not(.proposed) {
        grid-column: 1;
        grid-row: 2;
        min-width: 0;
        padding-right: 16px;
      }
      
      .commit-group.proposed {
        grid-column: 2;
        grid-row: 1 / -1;
        margin: 0;
        margin-top: -24px;
        margin-right: -24px;
        margin-bottom: -24px;
        padding: 12px;
        padding-top: 60px;
        border-radius: 8px 0 0 8px;
        border-left: 3px solid #0dadea;
        border-top: 0;
        background: linear-gradient(135deg, rgba(13, 173, 234, 0.06) 0%, rgba(13, 173, 234, 0.03) 100%);
        min-width: 0;
      }
    }
  }
  
  .history-navigation {
    width: 35px;
    
    .history-item-inner {
      width: 12px;
      height: 12px;
    }
  }
}

//Promotion status panel
.promotion-status-label {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: rgb(109, 127, 139) !important;
  margin-bottom: 5px !important;
  margin-top: 5px !important;
  text-transform: uppercase;
  position: relative !important;
  top: -3px !important;
}

// Status icon colors and text styling
.application-status-panel__item-value {
  .synced {
    color: $argo-success;
  }
  
  .pending {
    color: $argo-running;
  }
  
  .unknown {
    color: $argo-failed;
  }
  
  .default {
    color: $argo-color-gray-5;
  }
  
  // Spacing between icon and text
  i {
    margin-right: 8px !important;
  }
  
  .promotion-status-text {
    &.promoted {
      color: $argo-success !important;
    }
    
    &.pending {
      color: $argo-running !important;
    }
    
    &.unknown {
      color: $argo-failed !important;
    }
    
    &.default {
      color: $argo-color-gray-5 !important;
    }
  }
}

.extension-container .commit-group-header .status-icon {
  position: relative;
  top: -4px;
}

// Spacing between summary and button
.promotion-summary {
  margin-bottom: 8px !important;
}

.application-status-panel__item .status-icon {
  margin-right: 8px !important;
  font-size: 1em !important;
}

// Spacing between summary and button
.promotion-summary {
  margin-bottom: 8px !important;
}

.application-status-panel__item .status-icon {
  margin-right: 8px !important;
  font-size: 1em !important;
}


