.env-config-modal {
  .loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;

    .loading-spinner {
      width: 40px;
      height: 40px;
      border: 4px solid #f0f2f5;
      border-top-color: #165dff;
      border-radius: 50%;
      animation: spin 1s linear infinite;
      margin-bottom: 16px;
    }

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

    p {
      font-size: 14px;
      color: #4e5969;
    }
  }

  .command-section {
    margin-bottom: 24px;
    padding: 16px;
    background: #f7f8fa;
    border-radius: 4px;

    .command-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;

      span {
        font-size: 14px;
        font-weight: 600;
        color: #1d2129;
      }
    }

    .command-content {
      padding: 12px;
      background: #fff;
      border: 1px solid #e5e6eb;
      border-radius: 4px;
      font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
      font-size: 12px;
      color: #4e5969;
      line-height: 1.6;
      word-break: break-all;
      white-space: pre-wrap;
      max-height: 150px;
      overflow-y: auto;
    }

    .command-hint {
      margin-top: 8px;
      font-size: 12px;
      color: #86909c;
    }
  }

  .config-table {
    .table-header {
      display: flex;
      align-items: center;
      padding: 12px 8px;
      background: #f7f8fa;
      border-radius: 4px 4px 0 0;
      border: 1px solid #e5e6eb;
      font-size: 14px;
      font-weight: 600;
      color: #1d2129;

      > div {
        padding: 0 8px;
      }

      .required {
        color: #f53f3f;
        margin-right: 4px;
      }
    }

    .table-body {
      border: 1px solid #e5e6eb;
      border-top: none;

      .table-row {
        display: flex;
        align-items: center;
        padding: 12px 8px;
        border-bottom: 1px solid #e5e6eb;
        transition: background 0.2s;

        &:last-child {
          border-bottom: none;
        }

        &:hover {
          background: #f7f8fa;
        }

        > div {
          padding: 0 8px;
        }

        .required {
          color: #f53f3f;
          margin-right: 4px;
        }

        .desc-text {
          display: flex;
          align-items: center;
          font-size: 13px;
          color: #4e5969;
          cursor: help;
        }
      }
    }

    .col-index {
      width: 50px;
      flex-shrink: 0;
      text-align: center;
    }

    .col-name {
      width: 120px;
      flex-shrink: 0;
    }

    .col-key {
      width: 180px;
      flex-shrink: 0;
      font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
      font-size: 12px;
    }

    .col-value {
      flex: 1;
      min-width: 200px;
    }

    .col-desc {
      width: 150px;
      flex-shrink: 0;
      font-size: 12px;
      color: #86909c;
    }

    .col-action {
      width: 80px;
      flex-shrink: 0;
      text-align: center;
    }
  }

  .add-config-btn {
    margin-top: 12px;
    padding: 0 8px;
  }
}
